config toml is now fully split between command mode, read only mode and edit mode

This commit is contained in:
filipriec
2025-02-28 20:51:42 +01:00
parent 55895cd4c5
commit cd3c6fd71f
3 changed files with 223 additions and 91 deletions

View File

@@ -1,12 +1,13 @@
# config.toml
[keybindings]
# GENERAL
[keybindings.common]
save = [":w", "ctrl+s"]
quit = [":q", "ctrl+q"]
force_quit = [":q!", "ctrl+shift+q"]
save_and_quit = [":wq", "ctrl+shift+s"]
# [keybindings.common]
move_up = ["Up"]
move_down = ["Down"]
# MODE SPECIFIC
# READ ONLY MODE
@@ -18,8 +19,8 @@ next_entry = ["right","1"]
move_left = ["h"]
move_right = ["l"]
move_up = ["k", "Up"]
move_down = ["j", "Down"]
move_up = ["k"]
move_down = ["j"]
move_word_next = ["w"]
move_word_end = ["e"]
move_word_prev = ["b"]
@@ -35,12 +36,14 @@ delete_char_forward = ["delete"]
delete_char_backward = ["backspace"]
next_field = ["tab", "enter"]
prev_field = ["shift+tab", "backtab"]
move_left = ["left"]
move_right = ["right"]
[keybindings.command]
enter_command_mode = [":", "ctrl+;"]
exit_command_mode = ["ctrl+g", "esc"]
command_execute = ["enter"]
command_backspace = ["backspace"]
enter_command_mode = [":", "ctrl+;"]
[colors]
theme = "dark"