From e422a727294f441b12fb2414f579fd1394b0edd6 Mon Sep 17 00:00:00 2001 From: committer Date: Wed, 26 Jun 2024 13:48:07 -0500 Subject: [PATCH] u --- dots/helix/config.toml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/dots/helix/config.toml b/dots/helix/config.toml index 572969e..b878abb 100644 --- a/dots/helix/config.toml +++ b/dots/helix/config.toml @@ -1,8 +1,6 @@ # https://docs.helix-editor.com/configuration.html -# https://docs.helix-editor.com/remapping.html # https://theari.dev/blog/enhanced-helix-config/ -# https://github.com/helix-editor/helix/discussions/5764 [editor] # Show currently open buffers, only when more than one exists. @@ -41,10 +39,27 @@ display-messages = true "A-/" = "repeat_last_motion" [keys.insert] + +# https://docs.helix-editor.com/remapping.html C-s = ":w" # Maps Ctrl-s to the typable command :w which is an alias for :write (save file) + #A-down = ["extend_to_line_bounds", "delete_selection", "paste_after"] #A-up = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"] #"A-down" = [ "extend_to_line_bounds", "extend_line_below", "split_selection_on_newline", "rotate_selection_contents_forward", "rotate_selections_backward", "keep_primary_selection" ] #"A-up" = [ "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "rotate_selection_contents_forward", "keep_primary_selection" ] -"A-down" = [ "keep_primary_selection", "move_line_down", "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "select_mode", "goto_line_end_newline", "normal_mode", "rotate_selection_contents_forward", "keep_primary_selection", "move_line_down", "insert_mode" ] -"A-up" = [ "keep_primary_selection", "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "select_mode", "goto_line_end_newline", "normal_mode", "rotate_selection_contents_forward", "keep_primary_selection", "insert_mode" ] + +# https://github.com/helix-editor/helix/discussions/5764 +A-down = [ "keep_primary_selection", "move_line_down", "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "select_mode", "goto_line_end_newline", "normal_mode", "rotate_selection_contents_forward", "keep_primary_selection", "move_line_down", "insert_mode" ] +A-up = [ "keep_primary_selection", "extend_to_line_bounds", "extend_line_above", "split_selection_on_newline", "select_mode", "goto_line_end_newline", "normal_mode", "rotate_selection_contents_forward", "keep_primary_selection", "insert_mode" ] + +A-right = [ "move_next_word_start" ] +A-left = [ "move_prev_word_start" ] + + +#w Move next word start move_next_word_start +#b Move previous word start move_prev_word_start +#e Move next word end move_next_word_end +#W Move next WORD start move_next_long_word_start +#B Move previous WORD start move_prev_long_word_start +#E Move next WORD end move_next_long_word_end +