Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Commander::ViewerConfig
Inherits
Struct
<
Value
<
Object
Constants
DEFAULT_TAB_WIDTH = 4
Constructors
from_env
(env :
ENV
.class =
ENV
) :
ViewerConfig
Source
new
(external_viewer :
String
|
Nil
= nil, external_editor :
String
|
Nil
= nil, max_buffer_size :
Int64
=
FilePreview::MAX_BYTES
.to_i64, tab_width :
Int32
=
DEFAULT_TAB_WIDTH
, show_line_numbers :
Bool
= false, word_wrap :
Bool
= false)
Source
Instance methods
external_editor
Source
external_viewer
Source
max_buffer_size
Source
preview_max_bytes
Source
show_line_numbers
Source
tab_width
Source
to_snapshot
Source
word_wrap
Source