diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-01-05 23:04:58 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-01-05 23:04:58 -0500 |
commit | f95f1c4e4ced3ca7d387c9489339d315f7292e8b (patch) | |
tree | 1057644bb269d9b668958a175e03881c4e1f521c /config | |
parent | 9bababf24d2dad7a8d5478cda8f181864d0c3f30 (diff) |
replace keymap.conf with keymap.toml
Diffstat (limited to 'config')
-rw-r--r-- | config/keymap.conf | 43 | ||||
-rw-r--r-- | config/keymap.toml | 137 |
2 files changed, 137 insertions, 43 deletions
diff --git a/config/keymap.conf b/config/keymap.conf deleted file mode 100644 index f1eb60a..0000000 --- a/config/keymap.conf +++ /dev/null @@ -1,43 +0,0 @@ -# Joshuto Keymap config file - -map q quit - -map Up cursor_move -1 -map Down cursor_move 1 -map Left parent_directory -map Right open_file -map Enter open_file - -map Home cursor_move_home -map End cursor_move_end - -map PageUp cursor_move_page_up -map PageDown cursor_move_page_down - -map r open_file_with - -map z,h toggle_hidden - -map d,d cut_files -map y,y copy_files -map p,p paste_files -map p,o paste_files overwrite=true -map a rename_file append -map A rename_file prepend -map c,w rename_file overwrite - -map d,D delete_files -map Delete delete_files - -map Space select_files toggle=true - -map m,k mkdir - -map g,r cd '/' -map g,e cd '/etc' - -## Features not yet implemented -map / search -map R reload_dir_list -map Ctrl,t new_tab -map b,b bulk_rename diff --git a/config/keymap.toml b/config/keymap.toml new file mode 100644 index 0000000..4bc64da --- /dev/null +++ b/config/keymap.toml @@ -0,0 +1,137 @@ +[[mapcommand]] +keys = [ "q" ] +command = "quit" + +[[mapcommand]] +keys = [ "Up" ] +command = "cursor_move" +args = [ "-1" ] + +[[mapcommand]] +keys = [ "Down" ] +command = "cursor_move" +args = [ "1" ] + + +[[mapcommand]] +keys = [ "Left" ] +command = "parent_directory" + +[[mapcommand]] +keys = [ "Right" ] +command = "open_file" + +[[mapcommand]] +keys = [ "Enter" ] +command = "open_file" + + +[[mapcommand]] +keys = [ "Home" ] +command = "cursor_move_home" + +[[mapcommand]] +keys = [ "End" ] +command = "cursor_move_end" + + +[[mapcommand]] +keys = [ "PageUp" ] +command = "cursor_move_page_up" + +[[mapcommand]] +keys = [ "PageDown" ] +command = "cursor_move_page_down" + + +[[mapcommand]] +keys = [ "r" ] +command = "open_file_with" + + +[[mapcommand]] +keys = [ "z", "h" ] +command = "toggle_hidden" + + +[[mapcommand]] +keys = [ "d", "d" ] +command = "cut_files" + +[[mapcommand]] +keys = [ "y", "y" ] +command = "copy_files" + +[[mapcommand]] +keys = [ "p", "p" ] +command = "paste_files" + +[[mapcommand]] +keys = [ "p", "o" ] +command = "paste_files" +args = [ "overwrite=true" ] + +[[mapcommand]] +keys = [ "a" ] +command = "rename_file" +args = [ "append" ] + +[[mapcommand]] +keys = [ "A" ] +command = "rename_file" +args = [ "prepend" ] + +[[mapcommand]] +keys = [ "c", "w" ] +command = "rename_file" +args = [ "overwrite" ] + +[[mapcommand]] +keys = [ "d", "D" ] +command = "delete_files" + +[[mapcommand]] +keys = [ "Delete" ] +command = "delete_files" + + +[[mapcommand]] +keys = [ "Space" ] +command = "select_files" +args = [ "toggle=true" ] + +[[mapcommand]] +keys = [ "m", "k" ] +command = "mkdir" + + +[[mapcommand]] +keys = [ "g", "r" ] +command = "cd" +args = [ "/" ] + +[[mapcommand]] +keys = [ "g", "e" ] +command = "cd" +args = [ "/etc" ] + +[[mapcommand]] +keys = [ "/" ] +command = "search" + + + +## Features not yet implemented + +[[mapcommand]] +keys = [ "R" ] +command = "reload_dir_list" + +[[mapcommand]] +keys = [ "Ctrl", "t" ] +command = "new_tab" + +[[mapcommand]] +keys = [ "b", "b" ] +command = "bulk_rename" + |