This commit is contained in:
Lukas Wurzinger 2024-12-04 17:26:14 +00:00
parent 45e2a579d8
commit 8904c3c38a
2 changed files with 68 additions and 1 deletions

View file

@ -1,4 +1,4 @@
theme = "github_dark" theme = "github_dark_high_contrast_transparent"
[editor] [editor]
line-number = "relative" line-number = "relative"
@ -20,4 +20,69 @@ tabpad = "·"
nbsp = "⍽" nbsp = "⍽"
[keys.normal] [keys.normal]
# Nicities
esc = ["collapse_selection", "keep_primary_selection"] esc = ["collapse_selection", "keep_primary_selection"]
C-h = "select_prev_sibling"
C-j = "shrink_selection"
C-k = "expand_selection"
C-l = "select_next_sibling"
o = ["open_below", "normal_mode"]
O = ["open_above", "normal_mode"]
C-r = "redo"
x = "extend_line"
# Vim-like
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"]
G = "goto_last_line"
# Vim-like but also generally useful
"{" = ["goto_prev_paragraph", "collapse_selection"]
"}" = ["goto_next_paragraph", "collapse_selection"]
i = ["insert_mode", "collapse_selection"]
a = ["append_mode", "collapse_selection"]
0 = "goto_first_nonwhitespace"
"^" = "goto_line_start"
"$" = "goto_line_end"
u = ["undo", "collapse_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"]
[keys.insert]
# Nicities
esc = ["collapse_selection", "normal_mode"]
[keys.select]
# Nicities
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]
";" = ["collapse_selection", "normal_mode"]
x = "extend_line"
# Vim-like
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"]
G = "goto_last_line"
# Vim-like but also generally useful
"{" = ["goto_prev_paragraph", "collapse_selection"]
"}" = ["goto_next_paragraph", "collapse_selection"]
i = "select_textobject_inner"
a = "select_textobject_around"
0 = "goto_first_nonwhitespace"
"^" = "goto_line_start"
"$" = "goto_line_end"

View file

@ -0,0 +1,2 @@
inherits = "github_dark_high_contrast"
"ui.background" = { }