I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.
Various grepalike tools like ack, ag and rg have been mentioned. Most comments seem to be based on which tool runs simple searches faster, but note that their feature sets vary widely.
Since no one's mentioned it yet: I don't necessarily think nano is great, but it's always there and it opens immediately. Almost all small, quick edits I make (where opening VSCode/Emacs/whatever doesn't make sense) are done in nano. Pretty useful.
* fish - essential prerequisite in order to live in the command line
* autojump (aka j) - for changing directories quickly * open - required to interact with the non-cli world, ships by default on macOS and here's one for Windows/WSL: https://github.com/neosmart/open * imgpaste - for pasting screenshots into a PNG or JPEG directly (https://github.com/neosmart/imgpaste) * pbpaste - for pasting into the shell (or if you're on Linux or Windows: https://github.com/mqudsi/fish-config/blob/master/functions/...) * fzf - a general-purpose "selector" ui for choosing "things" from a list based off, such as your history (bound to ctrl+r) or files in a directory (bound to ctrl+p with input generated by bfs or fd) * neovim - my configuration here: https://github.com/mqudsi/nvim-config * ripgrep - for finding strings in files * fd - for finding files quickly * sed (with -r) - insanely powerful for common string operations * tr - lets you deal with line endings, which sed can't * youtube-dl - download youtube videos from the CLI * curl/httpie - (scriptable) network requests * aria2c - high-speed (multi-threaded) downloads and torrent downloads, it just works * jq - for manipulating json in shell scripts * ncdu - find space taken up by directories/files, but it's aging and in need of a dire rewrite like fd/rg did for find/grep * pbedit - edit the contents of the clipboard in your favorite editor https://github.com/mqudsi/fish-config/blob/master/functions/... * weechat - irc in your command line * ffmpeg - except I am much more likely to use it via one of the wrapper fish scripts I've written such as ffencode, fftrim, ffconcat, ffmute, etc. because it is (necessarily) so damn verbose and infinitely tunable. * tmux - if I'm working remotely or on a headless machine where I can't just ctrl+shift+n to open a new terminal window (which I prefer)
Comments (385) 158 threads
Earlier commentsHere's a handy chart that compares the features of each of these tools, along with git grep and plain ol' GNU grep.
https://beyondgrep.com/feature-comparison/
Nano Vim Xdg youtube-dl wttr git curl top watch
* autojump (aka j) - for changing directories quickly
* open - required to interact with the non-cli world, ships by default on macOS and here's one for Windows/WSL: https://github.com/neosmart/open
* imgpaste - for pasting screenshots into a PNG or JPEG directly (https://github.com/neosmart/imgpaste)
* pbpaste - for pasting into the shell (or if you're on Linux or Windows: https://github.com/mqudsi/fish-config/blob/master/functions/...)
* fzf - a general-purpose "selector" ui for choosing "things" from a list based off, such as your history (bound to ctrl+r) or files in a directory (bound to ctrl+p with input generated by bfs or fd)
* neovim - my configuration here: https://github.com/mqudsi/nvim-config
* ripgrep - for finding strings in files
* fd - for finding files quickly
* sed (with -r) - insanely powerful for common string operations
* tr - lets you deal with line endings, which sed can't
* youtube-dl - download youtube videos from the CLI
* curl/httpie - (scriptable) network requests
* aria2c - high-speed (multi-threaded) downloads and torrent downloads, it just works
* jq - for manipulating json in shell scripts
* ncdu - find space taken up by directories/files, but it's aging and in need of a dire rewrite like fd/rg did for find/grep
* pbedit - edit the contents of the clipboard in your favorite editor https://github.com/mqudsi/fish-config/blob/master/functions/...
* weechat - irc in your command line
* ffmpeg - except I am much more likely to use it via one of the wrapper fish scripts I've written such as ffencode, fftrim, ffconcat, ffmute, etc. because it is (necessarily) so damn verbose and infinitely tunable.
* tmux - if I'm working remotely or on a headless machine where I can't just ctrl+shift+n to open a new terminal window (which I prefer)
I'm not sure what you mean by "deal with line endings", but sed can operate across multiple lines.
https://www.gnu.org/software/sed/manual/html_node/Text-searc...
Continue this thread — 3 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.