Live data from Hacker News

New(ish) command line tools

jvns.ca

31–40 of 252 posts

Re: New(ish) command line tools

#32
I 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 at the very end annotate with filenames and context. Anyone have a good workflow for this?

Re: New(ish) command line tools

#33
post #22

Earlier quoted context omitted.

I recently found out about mdp too, a way to display markdown in the terminal as slides. https://github.com/visit1985/mdp

> I recently found out about mdp too, a way to display markdown in the terminal as slides. > https://github.com/visit1985/mdp I use pandoc to convert markdown to powerpoint decks, it's a great workflow as you can preview and tweak the content and then apply the firm theme before the presentation.

Yeah, I just like the terminal aesthetic. And I've had a problem in the past with sales bros taking internal only presentations that aren't supposed to be consumed externally for a lot of reasons and showing them to customers. Markdown seems to be enough of a barrier to keep that from happening.

Re: New(ish) command line tools

#34
post #4

As a maintainer, I hoped to see Hurl [1], a tool for testing HTTP with plain text and curl, but alas it isn’t here! [1] https://hurl.dev

This doesn't quite appear to be the type of tool that fits the theme of the list (coreutil replacements).

Re: New(ish) command line tools

#36

Has 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 ...

If you're on arch, most if not all these tools are in the official repos. Note that delta is named "git-delta".

  pacman -Syu git-delta bat ripgrep fd
Saved you a weekend ;)

Re: New(ish) command line tools

#37
post #6
post #3

direnv is such a godsend that I shill for it on every team and in every company now, it's such a great tool.

direnv should have been part of unix/linux/posix environments from the start. Whenever something's install steps tell you "go add this export statement to your .bashrc" or similar, it never sat well. That sort of thing should be scoped by path, and shell independent -- exactly the thing direnv enables.

I never understood why people were so enamored with direnv, but this makes me understand it a bit. I don't think I need it right now, but I'll keep it in mind for this use case.

Re: New(ish) command line tools

#38
post #3

direnv is such a godsend that I shill for it on every team and in every company now, it's such a great tool.

Could not agree more. I've shilled it three times in the past week alone. And I've also taken to mentioning it in any README involving env vars. Awesome tool.

Re: New(ish) command line tools

#40
post #22

Earlier quoted context omitted.

I recently found out about mdp too, a way to display markdown in the terminal as slides. https://github.com/visit1985/mdp

> I recently found out about mdp too, a way to display markdown in the terminal as slides. > https://github.com/visit1985/mdp I use pandoc to convert markdown to powerpoint decks, it's a great workflow as you can preview and tweak the content and then apply the firm theme before the presentation.

Do you mean actual PowerPoint or just creating a (presumably HTML based) presentation?
Post reply on HN