lazycli icon indicating copy to clipboard operation
lazycli copied to clipboard

fzf

Open hydrargyrum opened this issue 1 year ago • 0 comments

Q: Isn't this what fzf does? A: Not quite: fzf requires you to know the command ahead of time whereas lazycli lets you run commands after presenting you the data, and the content is refreshed after you run the command rather than the program closing (admittedly I haven't used fzf but I'm pretty sure that's all correct).

Actually this can now be done ;)

To take an example from the video:

FZF_DEFAULT_COMMAND='git log --format=oneline' fzf --bind 'ctrl-o:execute-silent(xdg-open https://github.com/jesseduffield/lazycli/commit/{1})+reload(sh -c "$FZF_DEFAULT_COMMAND")'

(sorry too lazy to port the git remote part)

hydrargyrum avatar Mar 12 '24 22:03 hydrargyrum