flutter_ecommerce_app
flutter_ecommerce_app copied to clipboard
[ENHANCED] keybinding for delete selected directory
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.
use:
z -x path_to_remove
for that
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"
}
I am not a pro user of fzf, the fzf code was written by other contributors. Can't answer your question.