aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-08 14:16:29 +0800
committerAaron LI <aly@aaronly.me>2018-12-08 14:16:29 +0800
commita22412faa3a5cc7edb41bc72e9fb35322eb9c19e (patch)
tree678dbac5d98df607ca6d12547c8129e0121fe55e
parent354ef323fc6c684e85520af53385056fdd58b24a (diff)
downloaddotfiles-a22412faa3a5cc7edb41bc72e9fb35322eb9c19e.tar.bz2
ranger: Add several keybindings
-rw-r--r--_config/ranger/rc.conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/_config/ranger/rc.conf b/_config/ranger/rc.conf
index d8209ef..de4a708 100644
--- a/_config/ranger/rc.conf
+++ b/_config/ranger/rc.conf
@@ -42,6 +42,8 @@ set preview_max_size 10000000
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
set tilde_in_titlebar true
+set update_title true
+
# Additional sorting options
set sort_case_insensitive false
set sort_directories_first true
@@ -49,7 +51,7 @@ set sort_unicode false
# ===================================================================
-# == Command Aliases in the Console
+# == Command Aliases in the console
# ===================================================================
@@ -57,6 +59,17 @@ set sort_unicode false
# == Define keys for the browser
# ===================================================================
+# Filter as you type "f"
+map f console scout -aefts%space
+
+# Add fork flag when using "open_with" (add double space before "f")
+map r chain draw_possible_programs; console -p10 open_with f
+
+# Recursive search for files
+map gf console chain flat -1; filter%space
+
+# Clear flat and filter
+map zz chain flat 0; filter
# ===================================================================
# == Define keys for the console