Oh I know about fzf, I use it extensively inside vim (I would be lost without it). Sadly I don't have many use cases for it in my day to day.
But this reminds me of yet another thing you can do with bind. One can bind key sequence with a "macro", it's like simulating keystrokes.
I have these two.
# Alt + f bind'"\ef": "\C-e | fzf"'# Alt + pbind'"\ep": "\C-e | less"'
Alt + f will append | fzf at the end of a command and Alt + p does the same but with less. This works by using the sequence \C-e (ctrl + e) which makes the cursor go to the end of the line and basically typing the rest for you.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey! Would you like to add this sorcery at github.com/aashutoshrathi/awesome-...?
Sure. I'll do that.
I would like to mention that I got this from the oh-my-bash repo. They have a ton of interesting things there.
You should really have a look at github.com/junegunn/fzf
This changed my life and how I work with the command line forever.
Oh I know about
fzf
, I use it extensively inside vim (I would be lost without it). Sadly I don't have many use cases for it in my day to day.But this reminds me of yet another thing you can do with
bind
. One can bind key sequence with a "macro", it's like simulating keystrokes.I have these two.
Alt + f
will append| fzf
at the end of a command andAlt + p
does the same but withless
. This works by using the sequence\C-e
(ctrl + e
) which makes the cursor go to the end of the line and basically typing the rest for you.