summaryrefslogtreecommitdiffstats
path: root/lf/lfrc
diff options
context:
space:
mode:
Diffstat (limited to 'lf/lfrc')
-rw-r--r--lf/lfrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lf/lfrc b/lf/lfrc
index 4d9c306..199e7ff 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -124,7 +124,7 @@ cmd paste-overwrite %{{
}}
cmd fzf_jump ${{
- res="$(find . -maxdepth 2 | sed "s|^\./||" | fzf --reverse --header='Jump to location' | sed 's/\\/\\\\/g;s/"/\\"/g')"
+ res="$(find . -maxdepth 2 | sed "s|^\./||" | fzy -- | sed 's/\\/\\\\/g;s/"/\\"/g')"
if [ -d "$res" ]; then
cmd="cd"
else
@@ -176,13 +176,13 @@ cmd yes_preview :{{
map ~ no_preview
}}
-cmd yank-dirname $dirname -- "$f" | head -c-1 | xclip -i -selection clipboard
+cmd yank-dirname $dirname -- "$f" | head -1 | xclip -i -selection clipboard
cmd yank-path $printf '%s' "$fx" | xclip -i -selection clipboard
-cmd yank-basename $basename -a -- $fx | head -c-1 | xclip -i -selection clipboard
+cmd yank-basename $basename -- $fx | head -1 | xclip -i -selection clipboard
cmd yank-basename-without-extension ${{
echo "$fx" |
- xargs -r -d '\n' basename -a |
+ xargs -r -d '\n' basename |
awk -e '{
for (i=length($0); i > 0; i--) {
if (substr($0, i, 1) == ".") {
@@ -222,7 +222,7 @@ map <f-3> cut
map <f-4> copy
map <f-5> reload
map <f-6> push $touch<space>
-map <f-7> push :mkdir<space>
+map <f-7> push $mkdir<space>
map <f-8> delete
map <f-9> paste
Un proyecto texto-plano.xyz