class Cride::Editor

Defined in:

editor.cr
editor/add.cr
editor/delete.cr
editor/move.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file : FileHandler) #

[View source]

Instance Method Detail

def absolute_x : Int32 #

[View source]
def absolute_y : Int32 #

[View source]
def add_char(char : Char) #

[View source]
def add_duplicated_line #

[View source]
def add_line #

[View source]
def additional_tab_spaces_before_absolute_x(line : String) : Int32 #

Count tabs before the cursor


[View source]
def additional_tab_width(line : String) : Int32 #

[View source]
def clear_line #

[View source]
def cursor_x : Int32 #

[View source]
def cursor_x_with_tabs : Int32 #

[View source]
def cursor_y : Int32 #

[View source]
def delete_line #

[View source]
def delete_next_char #

[View source]
def delete_previous_char #

[View source]
def empty_row?(row : String) #

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


[View source]
def file : FileHandler #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def insert : Bool #

[View source]
def insert=(insert : Bool) #

[View source]
def move_down #

[View source]
def move_end_of_line #

[View source]
def move_left #

[View source]
def move_next_block #

Used for CTRL arrow down.


[View source]
def move_next_word #

Used for CTRL arrow right.


[View source]
def move_page_down #

[View source]
def move_page_up #

[View source]
def move_previous_block #

Used for CTRL arrow up.


[View source]
def move_previous_word #

Used for CTRL arrow left.


[View source]
def move_right #

[View source]
def move_up #

[View source]
def page_x : Int32 #

[View source]
def page_y : Int32 #

[View source]
def reset_x : Nil #

[View source]
def reset_y : Nil #

[View source]
def set_char(char : Char) #

[View source]
def tab_spaces : Int32 #

[View source]
def tab_spaces=(tab_spaces : Int32) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]