diff options
author | Dylan Araps <dylan.araps@gmail.com> | 2019-01-14 15:11:50 +0200 |
---|---|---|
committer | Dylan Araps <dylan.araps@gmail.com> | 2019-01-14 15:11:50 +0200 |
commit | 58e6262be707868f77a01cf0d22bcef1e3b21606 (patch) | |
tree | e2cbf584544a1eee928f1046f19b906ec92bd9f1 | |
parent | 4a2bf9406ecb94764dcc8f5ccec315e198186d3b (diff) |
general: Added favourites/bookmarks.
-rw-r--r-- | README.md | 13 | ||||
-rwxr-xr-x | fff | 9 | ||||
-rw-r--r-- | fff.1 | 13 |
3 files changed, 35 insertions, 0 deletions
@@ -95,6 +95,8 @@ d: mark trash (~/.cache/fff/trash/) p: paste/move/delete c: clear file selections +[1-9]: favourites/bookmarks (see customization) + q: exit ``` @@ -133,6 +135,17 @@ export FFF_CD_FILE=~/.fff_d # Default: '${XDG_CACHE_HOME}/fff/trash' # If not using XDG, '${HOME}/.cache/fff/trash' is used. export FFF_TRASH=~/.cache/fff/trash + +# Favourites (Bookmarks) (keys 1-9) (dir or file) +export FFF_FAV1=~/projects +export FFF_FAV2=~/.bashrc +export FFF_FAV3=~/Pictures/Wallpapers/ +export FFF_FAV4=/usr/share +export FFF_FAV5=/ +export FFF_FAV6= +export FFF_FAV7= +export FFF_FAV8= +export FFF_FAV9= ``` ## Why? @@ -631,6 +631,15 @@ key() { open "$previous_dir" ;; + # Directory favourites. + [1-9]) + favourite="FFF_FAV${1}" + favourite="${!favourite}" + + [[ $favourite ]] && + open "$favourite" + ;; + # Quit and store current directory in a file for CD on exit. q) : "${FFF_CD_FILE:=${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d}" @@ -46,6 +46,8 @@ d: mark trash (~/\.cache/fff/trash/) p: paste/move/delete c: clear file selections +[1-9]: favourites/bookmarks (see customization) + q: exit . .fi @@ -86,5 +88,16 @@ export FFF_CD_FILE=~/.fff_d # Default: '${XDG_CACHE_HOME}/fff/trash' # If not using XDG, '${HOME}/.cache/fff/trash' is used. export FFF_TRASH=~/.cache/fff/trash + +# Favourites (Bookmarks) (keys 1-9) (dir or file) +export FFF_FAV1=~/projects +export FFF_FAV2=~/.bashrc +export FFF_FAV3=~/Pictures/Wallpapers/ +export FFF_FAV4=/usr/share +export FFF_FAV5=/ +export FFF_FAV6= +export FFF_FAV7= +export FFF_FAV8= +export FFF_FAV9= . .fi |