summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-03 12:55:26 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-03 12:55:26 -0500
commitef2ceb8139ce467a2a1891318b2e46c92b5fc50d (patch)
tree5c5acb1242613a47af185e2f0aabe4f3b9e99c18 /config
parentb64ae15139c6ce3a426643fa8a1a44a3117d6667 (diff)
update config files
Diffstat (limited to 'config')
-rw-r--r--config/joshuto.toml2
-rw-r--r--config/keymap.conf50
-rw-r--r--config/mimetype.toml33
3 files changed, 59 insertions, 26 deletions
diff --git a/config/joshuto.toml b/config/joshuto.toml
index 6b13b61..9cd7c1a 100644
--- a/config/joshuto.toml
+++ b/config/joshuto.toml
@@ -14,4 +14,4 @@ show_prerview = true
column_ratio = [1, 3, 4]
# does nothing so far
-scroll_offset = 8
+scroll_offset = 6
diff --git a/config/keymap.conf b/config/keymap.conf
index fbae578..8a71afc 100644
--- a/config/keymap.conf
+++ b/config/keymap.conf
@@ -1,31 +1,41 @@
# Joshuto Keymap config file
-map q Quit
+map q quit
-map UP CursorMove -1
-map DOWN CursorMove 1
-map LEFT ParentDirectory
-map RIGHT Open
-map ENTER Open
+map UP cursor_move -1
+map DOWN cursor_move 1
+map LEFT parent_directory
+map RIGHT open_file
+map ENTER open_file
-map HOME CursorMoveHome
-map END CursorMoveEnd
+map HOME cursor_move_home
+map END cursor_move_end
-map PPAGE CursorMovePageUp
-map NPAGE CursorMovePageDown
+map PPAGE cursor_move_page_up
+map NPAGE cursor_move_page_down
-map d,D DeleteFiles
-map DELETE DeleteFiles
+map SPACE mark_files
-map r OpenWith
+map r open_file_with
-map d,d CutFiles
-map y,y CopyFiles
-map a RenameFile
+map R reload_dir_list
-map z,h ToggleHiddenFiles
+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 g,g ChangeDirectory
-map g,r ChangeDirectory /
+map d,D delete_files
+map DELETE delete_files
-# map bb BulkRename
+map z,h toggle_hidden
+
+map g,r change_directory '/'
+map g,r change_directory '/etc'
+
+# map CTRL,t new_tab
+
+# map bb bulk_rename
diff --git a/config/mimetype.toml b/config/mimetype.toml
index 9a28df7..23404b0 100644
--- a/config/mimetype.toml
+++ b/config/mimetype.toml
@@ -1,15 +1,18 @@
# specify which applications to use to open certain file types
[mimetypes]
-"audio/mpeg" = [
- ["mpv"]
-]
-"application/x-matroska" = [
- ["mpv"]
+"application/x-7z-compressed" = [
+ ["file-roller"]
]
+
"application/x-shellscript" = [
["nano"],
["gedit"]
]
+
+"audio/mpeg" = [
+ ["mpv"]
+]
+
"image/jpeg" = [
["qimgv"],
["feh"]
@@ -21,12 +24,32 @@
"text/plain" = [
["nano"]
]
+
+"text/x-rust" = [
+ ["nano"]
+]
+
"text/x-csrc" = [
["nano"]
]
+
+"text/x-markdown" = [
+ ["nano"]
+]
+
+"text/x-toml" = [
+ ["nano"]
+]
+
"audio/x-wav" = [
[ "mpv" ]
]
"video/mp4" = [
["mpv"]
]
+"video/webm" = [
+ ["mpv"]
+]
+"video/x-matroska" = [
+ ["mpv"]
+]