1
0
Fork 0

change lf binds

This commit is contained in:
Luca Bilke 2024-03-20 12:53:33 +01:00
parent 2e802a95a9
commit 7d7e0d83f5
1 changed files with 6 additions and 6 deletions

View File

@ -137,14 +137,14 @@ cmd fzf ${{
clear
file="$(eval "$input" | fzf \
--expect=' ' \
--query "$query" \
--delimiter "$delimiter" \
--select-1 \
--cycle \
--nth="$field" \
--with-nth="$field" \
--preview-window="right,$width" \
--bind="one:accept,focus:transform-preview-label(echo {} | cut -d '$delimiter' -f '$path_field')" \
--bind="focus:transform-preview-label(echo {} | cut -d '$delimiter' -f '$path_field')" \
--scheme='history' \
--history="$histfile" \
--header="$name" \
@ -245,10 +245,10 @@ map <space> :toggle; down
map <enter> shell
map <a-enter> shell-wait
map <tab> fzf 'Shortcuts' 'cat $XDG_DATA_HOME/lf/shortcuts 2>/dev/null' ':' '1' '2' '85%' '^'
map -t fzf 'Tags' 'cat $XDG_DATA_HOME/lf/tags 2>/dev/null' ':' '1' '1' '50%'
map -m fzf 'Marks' 'cat $XDG_DATA_HOME/lf/marks 2>/dev/null' ':' '1' '2' '85%' '^'
map -f fzf 'Files' 'find -L $PWD' ':' '1' '1' '50%'
map -g find_word
map <backtab>t fzf 'Tags' 'cat $XDG_DATA_HOME/lf/tags 2>/dev/null' ':' '1' '1' '50%'
map <backtab>m fzf 'Marks' 'cat $XDG_DATA_HOME/lf/marks 2>/dev/null' ':' '1' '2' '85%' '^'
map <backtab>f fzf 'Files' 'find -L $PWD' ':' '1' '1' '50%'
map <backtab>g find_word
map "'" mark-load
map '"' mark-remove
map "$" shell