diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 19:22:27 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 19:22:27 -0500 |
commit | 29824f8bef3dde9b091185be295de3ae07ee17fd (patch) | |
tree | 189661946119fd960cb9fd04e13fa335dfcbeb5a /ted.h | |
parent | c04562a24e7fbee0839d00a8bfd5253426a98f20 (diff) |
:up-blank-line, etc.
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -650,8 +650,6 @@ void buffer_scroll_to_pos(TextBuffer *buffer, BufferPos pos); void buffer_scroll_center_pos(TextBuffer *buffer, BufferPos pos); void buffer_scroll_to_cursor(TextBuffer *buffer); void buffer_center_cursor(TextBuffer *buffer); -i64 buffer_pos_move_horizontally(TextBuffer *buffer, BufferPos *p, i64 by); -i64 buffer_pos_move_vertically(TextBuffer *buffer, BufferPos *pos, i64 by); i64 buffer_pos_move_left(TextBuffer *buffer, BufferPos *pos, i64 by); i64 buffer_pos_move_right(TextBuffer *buffer, BufferPos *pos, i64 by); i64 buffer_pos_move_up(TextBuffer *buffer, BufferPos *pos, i64 by); @@ -661,6 +659,10 @@ i64 buffer_cursor_move_left(TextBuffer *buffer, i64 by); i64 buffer_cursor_move_right(TextBuffer *buffer, i64 by); i64 buffer_cursor_move_up(TextBuffer *buffer, i64 by); i64 buffer_cursor_move_down(TextBuffer *buffer, i64 by); +i64 buffer_pos_move_up_blank_lines(TextBuffer *buffer, BufferPos *pos, i64 by); +i64 buffer_pos_move_down_blank_lines(TextBuffer *buffer, BufferPos *pos, i64 by); +i64 buffer_cursor_move_up_blank_lines(TextBuffer *buffer, i64 by); +i64 buffer_cursor_move_down_blank_lines(TextBuffer *buffer, i64 by); i64 buffer_pos_move_words(TextBuffer *buffer, BufferPos *pos, i64 nwords); i64 buffer_pos_move_left_words(TextBuffer *buffer, BufferPos *pos, i64 nwords); i64 buffer_pos_move_right_words(TextBuffer *buffer, BufferPos *pos, i64 nwords); @@ -684,10 +686,13 @@ LSPDocumentPosition buffer_cursor_pos_as_lsp_document_position(TextBuffer *buffe BufferPos buffer_insert_text_at_pos(TextBuffer *buffer, BufferPos pos, String32 str); void buffer_insert_char_at_pos(TextBuffer *buffer, BufferPos pos, char32_t c); void buffer_select_to_pos(TextBuffer *buffer, BufferPos pos); +// Like shift+left in most editors, move cursor nchars chars to the left, selecting everything in between void buffer_select_left(TextBuffer *buffer, i64 nchars); void buffer_select_right(TextBuffer *buffer, i64 nchars); void buffer_select_down(TextBuffer *buffer, i64 nchars); void buffer_select_up(TextBuffer *buffer, i64 nchars); +void buffer_select_down_blank_lines(TextBuffer *buffer, i64 by); +void buffer_select_up_blank_lines(TextBuffer *buffer, i64 by); void buffer_select_left_words(TextBuffer *buffer, i64 nwords); void buffer_select_right_words(TextBuffer *buffer, i64 nwords); void buffer_select_to_start_of_line(TextBuffer *buffer); |