flutter_ecommerce_app icon indicating copy to clipboard operation
flutter_ecommerce_app copied to clipboard

[ENHANCED] keybinding for delete selected directory

Open GladioFeng opened this issue 7 months ago • 3 comments

Awesome plugin 👍, I love this plugin and use everyday almost. Can you add a keybinding for delete path from fzf interface directly? It would be useful to delete some sample path.

GladioFeng avatar May 19 '25 06:05 GladioFeng

use:

z -x path_to_remove

for that

skywind3000 avatar May 19 '25 06:05 skywind3000

I have a custom function with z.lua, but the fzf keybinding isn't working. How can I fix this issue?

function zhh() {
    local dir="$(_zlua -l -t | awk '{print $2}' | sed -e "s,^$HOME,~," | fzf --exact --bind 'ctrl-u:execute-silent(_zlua -x {})+abort,ctrl-y:execute-silent(echo -E {} | osc-copy -n)+abort,tab:accept,ctrl-r:toggle-sort' --reverse --inline-info --tac --height 50%)"
    local dir="$(echo $dir | sed -e "s,^~,$HOME,")"
    [ -n "$dir" ] && cd "$dir"
    echo "$dir"
}

GladioFeng avatar May 28 '25 02:05 GladioFeng

I am not a pro user of fzf, the fzf code was written by other contributors. Can't answer your question.

skywind3000 avatar May 28 '25 05:05 skywind3000