Often I find myself in the shell, wanting to insert a filename into a lengthy command.
I'd like to hit a shortcut, and use Netrw or Nerdtree to browse for a file or directory, and have it pasted in place into the command I’m building.
So if I was in a folder, and wanted to compare 2 files:
then I'd like to hit my shortcut, and visually browse using Netrw or Nerdtree, and select a file.
That filename is now added to my diff command... e.g.
I hit the shortcut again, and browse for the second file,
this then adds the second file to my
diffcommand, so I now have:
diff /tmp/file1.txt /super/ez/another/file/somewhere/else/compare.txt
Is this possible using any tool? I like Netrw in Vim, but am willing to try new things!
Note that I'm not interested in Tab completion of filenames using globbing. That works sometimes, but not all the time. I like Netrw and would love to figure out how to use it to select a filename by browsing.