class

Cride::Editor

Inherits Reference / Object

Constructors

new(file : FileHandler)
Source

Instance methods

absolute_x
Source
absolute_y
Source
add_char(char : Char)
Source
add_duplicated_line
Source
add_line
Source
additional_tab_spaces_before_absolute_x(line : String) : Int32

Count tabs before the cursor

Source
additional_tab_width(line : String) : Int32
Source
clear_line
Source
cursor_x
Source
cursor_x_with_tabs
Source
cursor_y
Source
delete_line
Source
delete_next_char
Source
delete_previous_char
Source
empty_row?(row : String)

An 'empty' row consists of only spaces and/or tabs, or no chars.

Source
file
Source
height
Source
height=(height : Int32)
Source
insert
Source
insert=(insert : Bool)
Source
move_down
Source
move_end_of_line
Source
move_left
Source
move_next_block

Used for CTRL arrow down.

Source
move_next_word

Used for CTRL arrow right.

Source
move_page_down
Source
move_page_up
Source
move_previous_block

Used for CTRL arrow up.

Source
move_previous_word

Used for CTRL arrow left.

Source
move_right
Source
move_up
Source
page_x
Source
page_y
Source
reset_x
Source
reset_y
Source
set_char(char : Char)
Source
tab_spaces
Source
tab_spaces=(tab_spaces : Int32)
Source
width
Source
width=(width : Int32)
Source