From a22412faa3a5cc7edb41bc72e9fb35322eb9c19e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 8 Dec 2018 14:16:29 +0800 Subject: ranger: Add several keybindings --- _config/ranger/rc.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '_config/ranger') 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 -- cgit v1.2.2