mirror of
https://github.com/Ascyii/dotfiles.git
synced 2026-01-01 15:04:24 -05:00
New software
This commit is contained in:
@@ -3,8 +3,7 @@ theme = "jonas"
|
||||
|
||||
[keys.normal]
|
||||
# Quick iteration on config changes
|
||||
C-o = ":config-open"
|
||||
C-r = ":config-reload"
|
||||
C-o = "jump_backward"
|
||||
|
||||
# Some nice Helix stuff
|
||||
C-h = "select_prev_sibling"
|
||||
@@ -15,6 +14,7 @@ C-l = "select_next_sibling"
|
||||
# Personal preference
|
||||
o = ["open_below", "normal_mode"]
|
||||
O = ["open_above", "normal_mode"]
|
||||
s = ["select_all", "select_regex"]
|
||||
|
||||
# Muscle memory
|
||||
"{" = ["goto_prev_paragraph", "collapse_selection"]
|
||||
@@ -25,30 +25,16 @@ O = ["open_above", "normal_mode"]
|
||||
|
||||
"^" = "goto_first_nonwhitespace"
|
||||
G = "goto_file_end"
|
||||
"%" = "match_brackets"
|
||||
V = ["select_mode", "extend_to_line_bounds"]
|
||||
C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"]
|
||||
D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"]
|
||||
S = "surround_add" # Would be nice to be able to do something after this but it isn't chainable
|
||||
|
||||
# Clipboards over registers ye ye
|
||||
# Clipboards over registers
|
||||
x = "delete_selection"
|
||||
p = ["paste_clipboard_after", "collapse_selection"]
|
||||
P = ["paste_clipboard_before", "collapse_selection"]
|
||||
# Would be nice to add ya and yi, but the surround commands can't be chained
|
||||
Y = ["extend_to_line_end", "yank_main_selection_to_clipboard", "collapse_selection"]
|
||||
|
||||
# Uncanny valley stuff, this makes w and b behave as they do Vim
|
||||
w = ["move_next_word_start", "move_char_right", "collapse_selection"]
|
||||
W = ["move_next_long_word_start", "move_char_right", "collapse_selection"]
|
||||
e = ["move_next_word_end", "collapse_selection"]
|
||||
E = ["move_next_long_word_end", "collapse_selection"]
|
||||
b = ["move_prev_word_start", "collapse_selection"]
|
||||
B = ["move_prev_long_word_start", "collapse_selection"]
|
||||
|
||||
# If you want to keep the selection-while-moving behaviour of Helix, this two lines will help a lot,
|
||||
# especially if you find having text remain selected while you have switched to insert or append mode
|
||||
#
|
||||
# There is no real difference if you have overridden the commands bound to 'w', 'e' and 'b' like above
|
||||
# But if you really want to get familiar with the Helix way of selecting-while-moving, comment the
|
||||
# bindings for 'w', 'e', and 'b' out and leave the bindings for 'i' and 'a' active below. A world of difference!
|
||||
@@ -61,6 +47,7 @@ u = ["undo", "collapse_selection"]
|
||||
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
|
||||
esc = ["collapse_selection", "keep_primary_selection"]
|
||||
|
||||
|
||||
# Search for word under cursor
|
||||
"*" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_next"]
|
||||
"#" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_prev"]
|
||||
@@ -102,6 +89,15 @@ g = { g = ["select_mode", "extend_to_line_bounds", "goto_file_start", "extend_to
|
||||
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
|
||||
esc = ["collapse_selection", "normal_mode"]
|
||||
|
||||
[keys.normal.space.space]
|
||||
o = ":config-open"
|
||||
r = ":config-reload"
|
||||
s = ":write-all"
|
||||
|
||||
[keys.normal.space]
|
||||
q = ":q"
|
||||
F = "file_picker_in_current_buffer_directory"
|
||||
|
||||
[keys.select]
|
||||
# Muscle memory
|
||||
"{" = ["extend_to_line_bounds", "goto_prev_paragraph"]
|
||||
@@ -111,9 +107,8 @@ esc = ["collapse_selection", "normal_mode"]
|
||||
"^" = "goto_first_nonwhitespace"
|
||||
G = "goto_file_end"
|
||||
D = ["extend_to_line_bounds", "delete_selection", "normal_mode"]
|
||||
C = ["goto_line_start", "extend_to_line_bounds", "change_selection"]
|
||||
"%" = "match_brackets"
|
||||
S = "surround_add" # Basically 99% of what I use vim-surround for
|
||||
S = "surround_add"
|
||||
u = ["switch_to_lowercase", "collapse_selection", "normal_mode"]
|
||||
U = ["switch_to_uppercase", "collapse_selection", "normal_mode"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user