2 ms·
I tried a similar thing to replicate Eclipse's 'Open Resource' search functionality while I was coding in Vim. https://github.com/hollingsworthd/POSIXplorer ht
by logn 14y ago
I tried a similar thing to replicate Eclipse's 'Open Resource' search functionality while I was coding in Vim.
https://github.com/hollingsworthd/POSIXplorer https://github.com/hollingsworthd/POSIXplorer
You basically enter a search term or regex and it will search recursively down from your current directory to find the file. If >1 results are found it displays a navigable list of files to open, otherwise it immediately loads the file in your $EDITOR (or defaults to vim).
It also can search file contents in addition to a path regex, with all the same functionality to browse and open files.
OP's script looks neat. I think there are all sorts of things we could do to improve cmdline usability.