From ccfaeee8af4f3142c3e3c506760d0f277f5c1e78 Mon Sep 17 00:00:00 2001 From: wukuan405 Date: Fri, 18 Oct 2019 12:56:33 +0900 Subject: [PATCH 1/2] add ? to display keyboard shortcuts ?: display keyboard shortcuts ``` sage right: go to child dir j: scroll down f: new file k: scroll up n: new dir h: go to parent dir r: rename l: go to child dir X: toggle executable enter: go to child dir y: mark copy backspace: go to parent dir m: mark move -: Go to previous dir. d: mark trash (~/.local/share/fff/trash/) g: go to top s: mark symbolic link G: go to bottom b: mark bulk rename :: go to a directory by typing. Y: mark all for copy /: search M: mark all for move t: go to trash D: mark all for trash (~/.local/share/fff/trash/) ~: go to home S: mark all for symbolic link e: refresh current dir B: mark all for bulk rename !: open shell in current dir p: paste/move/delete/bulk_rename x: view file/dir attributes c: clear file selections i: display image with w3m-img [1-9]: favourites/bookmarks (see customization) down: scroll down q: exit with 'cd' (if enabled). up: scroll up Ctrl+C: exit without 'cd'. left: go to parent dir ``` --- fff | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fff b/fff index 817042c..5f90f8d 100755 --- a/fff +++ b/fff @@ -1047,6 +1047,13 @@ key() { open "$favourite" ;; + "?") + clear_screen + man fff | grep -A 54 "^Usage" | column + read -ern 1 + open "$PWD" + ;; +? # Quit and store current directory in a file for CD on exit. # Don't allow user to redefine 'q' so a bad keybinding doesn't # remove the option to quit. From a8e83978b2e5f6d6a127525351132291047360de Mon Sep 17 00:00:00 2001 From: wukuan405 Date: Fri, 18 Oct 2019 13:01:02 +0900 Subject: [PATCH 2/2] Update fff --- fff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fff b/fff index 5f90f8d..49ccc27 100755 --- a/fff +++ b/fff @@ -1053,7 +1053,7 @@ key() { read -ern 1 open "$PWD" ;; -? + # Quit and store current directory in a file for CD on exit. # Don't allow user to redefine 'q' so a bad keybinding doesn't # remove the option to quit.