struct

Commander::ViewerSessionSnapshot

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(id : String, panel_index : Int32 | Nil, path : String, title : String, mode : String = "text", scroll_offset : Int32 = 0, cursor_line : Int32 = 0, cursor_col : Int32 = 0, search_term : String | Nil = nil, dirty : Bool = false, readonly : Bool = true, truncated : Bool = false, error : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cursor_col
Source
cursor_line
Source
dirty
Source
error
Source
mode
Source
panel_index
Source
path
Source
readonly
Source
scroll_offset
Source
search_term
Source
title
Source
truncated
Source
with_scroll_offset(value : Int32) : ViewerSessionSnapshot
Source
with_search(term : String | Nil, line : Int32, col : Int32 = 0) : ViewerSessionSnapshot
Source