Ah nice! Thanks for the suggestion. Yeah --preview
is a great feature that is good to remember.
And true, it's better to use find -executable
than ls. Although in my case I would use -type f -o -type l
since I want to include symlinks (often I will cd into my local bin folder and ln -s $(which )
to add it to my launcher). I'm using ls since I only put executables in there and using relative file paths so that it's nicer to look at. But cd or sed would work as well
Yeah the xargs + i3-msg part is a bit clunky but I'm not sure what else to do, since the terminal window needs to close immediately, which prevents the application from running. I tried a few variations with nohup and launching in the background, but haven't found another solution. But I'm sure there's a way
As others have suggested, getting more familiar with the terminal and using a tiling window manager will help a lot. And yeah it's a great idea to learn Vim or other advanced terminal editors. I use Helix+Zellij for development, Vim for system configuration, and i3 or Sway for GUI stuff. Also check out w3m for simple web searches.
If you want to get rid of the mouse entirely, you can also try using a programmable keyboard with mouse support. I don't use a physical mouse anymore because I do most things in the terminal, and when I do need a mouse I just use my keyboard to move the cursor. For super mouse-heavy tasks like image editing it's good to keep one around or use a Wacom tablet