summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-12-07 15:46:42 +0100
committerqkzk <qu3nt1n@gmail.com>2023-12-07 22:12:07 +0100
commitbc0bf4b9f8643de14c81249a8fe1e954ce57c970 (patch)
treef6eb2b52a902718d6244444a2f024aacddaa6bdc
parent634de7a27be48c2bab9b16c5cd8b368589ccba8f (diff)
updated default config file to reflect uniform keybindings
-rw-r--r--config_files/fm/config.yaml18
-rw-r--r--development.md2
-rw-r--r--src/config/keybindings.rs2
3 files changed, 12 insertions, 10 deletions
diff --git a/config_files/fm/config.yaml b/config_files/fm/config.yaml
index 45fdc6e..05d0957 100644
--- a/config_files/fm/config.yaml
+++ b/config_files/fm/config.yaml
@@ -64,7 +64,6 @@ keys:
'j': MoveDown
'k': MoveUp
'l': MoveRight
- 'm': Chmod
'n': NewFile
'o': OpenFile
'p': CutPaste
@@ -74,21 +73,22 @@ keys:
't': Tree
'u': ClearFlags
'v': ReverseFlags
- 'w': RegexMatch
'x': DeleteFile
- 'alt-e': ToggleDisplayFull
- 'alt-f': ToggleDualPane
+ 'w': RegexMatch
+ 'alt-b': Bulk
+ 'alt-d': ToggleDualPane
+ 'alt-e': EncryptedDrive
+ 'alt-f': Filter
'alt-g': Goto
+ 'alt-m': Chmod
'alt-p': TogglePreviewSecond
'ctrl-c': CopyFilename
- 'ctrl-e': EncryptedDrive
'ctrl-f': FuzzyFind
'ctrl-g': Shortcut
'ctrl-p': CopyFilepath
'ctrl-q': ResetMode
'ctrl-r': RefreshView
- 'shift-b': Bulk
- 'shift-f': Filter
+ 'shift-e': ToggleDisplayFull
'shift-g': End
'shift-h': Help
'shift-L': Symlink
@@ -125,4 +125,6 @@ settings:
custom:
# open the selected file with chrome
'alt-u': "/usr/bin/google-chrome-stable %s"
- 'alt-d': "/usr/bin/dragon-drop %d"
+ 'shift-d': "/usr/bin/dragon-drop %d"
+
+
diff --git a/development.md b/development.md
index 98d64d0..9e7d911 100644
--- a/development.md
+++ b/development.md
@@ -683,7 +683,7 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
- [ ] ensure diff only use first 2 files (???)
- [x] don't store as much info while parsing tree content. Be as lazy as possible.
- [x] Context menu (right click, alt+t) with most common actions
-- [ ] unify keybindings: alt+char should be reserved to menus starting with same letter
+- [x] unify keybindings: alt+char should be reserved to menus starting with same letter
## TODO
diff --git a/src/config/keybindings.rs b/src/config/keybindings.rs
index bb3e53a..b121254 100644
--- a/src/config/keybindings.rs
+++ b/src/config/keybindings.rs
@@ -115,7 +115,7 @@ impl Bindings {
(Key::Ctrl('d'), ActionMap::PageDown),
(Key::Ctrl('f'), ActionMap::FuzzyFind),
(Key::Ctrl('g'), ActionMap::Shortcut),
- (Key::Ctrl('H'), ActionMap::Help),
+ (Key::Ctrl('h'), ActionMap::Help),
(Key::Ctrl('k'), ActionMap::Delete),
(Key::Ctrl('s'), ActionMap::FuzzyFindLine),
(Key::Ctrl('u'), ActionMap::PageUp),