A simple trick I only figured recently is following logs with fuzzy search: tail -f /var/log/foo.log | fzf +s Or something similar for output from a dev server: make serve | fzf --ansi +s
New(ish) command line tools
81–90 of 252 posts
Re: New(ish) command line tools
#82I could really use a better workflow to refine grep matches. Has anyone made a tool that combines grep (regex search) with fzf (multiple positive/negative patterns)? What I really want is something like: grep pattern1 **/* | grep pattern2 | grep -v exclude_these | grep -v also_exclude The problem is this loses filenames and context lines in the output. I want to apply several positive and negative regexes, and only a…
Just posting this without trying it out...grep -nH gives you line numbers and full filepath context, and as another commenter said, -ve allows you to string multiple excludes, so grep -inH -ve not_this -ve nor_this -ve nor_that.
grep -inHv -e foo -e bar -e bazRe: New(ish) command line tools
#83Re: New(ish) command line tools
#84Has anyone made an installer/GNU type thing for the "common" ones like delta and rg? Could be a fun weekend project: Select what tooling you want, it will be installed using your package manager [ ] delta [ ] bat ...
asdf is another good option with most of them.
Re: New(ish) command line tools
#85Any terminal based solutions for Postman/Insomnia/Nightingale? I am just using curl and text files for api testing.
No affiliation... just happy user relieved at deleting Postman :)
Re: New(ish) command line tools
#86A simple trick I only figured recently is following logs with fuzzy search: tail -f /var/log/foo.log | fzf +s Or something similar for output from a dev server: make serve | fzf --ansi +s
Re: New(ish) command line tools
#87I’m a fan of nnn for a terminal file manager, so I’m keen to try out broot. Does anyone have other recommendations I should try? https://github.com/jarun/nnn
How does nnn compare to ranger https://github.com/ranger/ranger ?
Re: New(ish) command line tools
#88Any terminal based solutions for Postman/Insomnia/Nightingale? I am just using curl and text files for api testing.
Re: New(ish) command line tools
#89Couple ones there that I’m keen to try out. bat in particular seems like such an easy win
One (very) minor issue I have with it is that when the file is very small - a couple words or lines at most - then the "decorations" it prints around the content get distracting and make the content slightly harder to read. Maybe I should just write a wrapper around it that does a `wc` first and decides whether to do a `bat` or a `cat`.
Re: New(ish) command line tools
#90I could really use a better workflow to refine grep matches. Has anyone made a tool that combines grep (regex search) with fzf (multiple positive/negative patterns)? What I really want is something like: grep pattern1 **/* | grep pattern2 | grep -v exclude_these | grep -v also_exclude The problem is this loses filenames and context lines in the output. I want to apply several positive and negative regexes, and only a…
- Interactivity: the results are updated live as you type, so you catch typos sooner and can tweak the search terms as you go.
- The buffer of search results you collect with Embark is not dead text like it would be in the terminal, instead, each line is a link to the corresponding file taking you to the line that matched.
- Wgrep lets you edit all the matching lines in place!
Packages referenced:
1. Consult: https://github.com/minad/consult/
2. Orderless: https://github.com/oantolin/orderless
3. Embark: https://github.com/oantolin/embark
4. Wgrep: http://github.com/mhayashi1120/Emacs-wgrep/raw/master/wgrep....