When comparing tmux vs ripgrep, the Slant community recommends tmux for most people. In the question“What are the best shell powertools?” tmux is ranked 1st while ripgrep is ranked 3rd. The most important reason people chose tmux is:
There is a keyboard shortcut that makes it easy to split a window and create more panes.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Easily split panes
There is a keyboard shortcut that makes it easy to split a window and create more panes.
Pro Windows linked to sessions
tmux calls the individual shell instances windows. They are displayed like tabs in the status line. These windows can be shared between different sessions, so that any given shell instance can be in any number of tmux sessions used for different purposes or by different users. This allows configurations like the following example: User A: wAB, wA1, wA2; User B: wB1, wAB, wB2
Pro Preserve the state
As long as you don't close your session, you may even lose your SSH connection, it'll keep your state just as it was. So you can resume where you left off (via tmux attach
).
Pro Maximize screen space
As a tiling window manager, it'll make use of all the space. As you have multiple workspaces and you can resize, etc. you can adjust to see what matters most.
Pro Frequently updated
Tmux is in a state of constant development. Updates are frequent and bug reports usually get an answer within days.
Pro Customizable
Open ~/.tmux.conf to get started. You can customize keybindings, the bottom status bar, color schemes, the clock screen, your time zone, and more.
Pro Mouse support
Mouse support can optionally be enabled, allowing e.g. scrolling with the mouse wheel, or switching panes with mouse clicks.
Pro Only need to learn a few keyboard shortcuts and commands to make much headway
Pro Fast
ripgrep has performance similar to raw grep but provides similar level of usability as The Silver Searcher or ACK.
Pro Supports VCS ignore files
ripgrep can speed up by ignoring files matched by pattern in ".rgignore" (deprecated), ".ignore" (since rg-v0.2.0), and VCS ignore files (e.g., currently only ".gitignore").
Pro Speedy even with Unicode (UTF-8) searches
Pro Lock-free parallel recursive directory search
Pro ripgrep lets you only search certain types of files via file type whitelist
Cons
Con Poorly designed key binding
Counter-intuitive keyboard shortcuts make tmux very hard to use and learn.
Con Bad scrolling support
Con No builtin telnet or serial support
It's considered bloat by the maintainers and for this reason there's no builtin support for them.
Con Does not support encodings other than UTF-8
If you need to search files with text encodings other than UTF-8 (like UTF-16), then ripgrep won’t work. ripgrep will still work on ASCII compatible encodings like latin1 or otherwise partially valid UTF-8. ripgrep may grow support for additional text encodings over time.
Con Does not support decompression
If you need to search compressed files, ripgrep doesn’t try to do any decompression before searching.
Con Does not support arbitrary lookahead/lookbehind assertions
However, it's supported since ripgrep v0.10.0 (2018-09-07)
https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#0100-2018-09-07
Con Does not support backreferences
However, it's supported since ripgrep v0.10.0 (2018-09-07)
https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#0100-2018-09-07