Sometimes I start writing a command, only to realize that I forgot the name of something I need to specify.

When it’s file names or variables (or the other things it supports, if I happen to remember the keyboard shortcut), fzf.fish does a great job, but sometimes it’s something else (eg: a git branch name) and often something that I use so sporadically (eg: enp4s0, the name of my network device) that, even if I was willing to write an fzf.fish plugin for it, I would never learn its keyboard shortcut.

I’m looking for something that would allow me to:

  • get a new prompt, abandoning the current command
  • execute some other command
  • get the old (unfinished) command back and finish editing it.

Do you know of any plugin that does that?