techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#ripgrep

0 posts0 participants0 posts today

#ripgrep replacement in #bash with #GNU #grep.

forgejo.mueller.network/Zenton

ripgrepgeneric: da, wo es kein ripgrep gibt ☝️

zum beispiel auf alten, zu migrierenden, servern. auf denen es wohl noch alte configs zu durchforsten, aber keine attraktive möglichkeit ripgrep nachzuinstallieren, gibt.

da sucht man, in welcher datei das suchwort drinsteht und wenn ja, an welcher stelle.

dieser zweizeiler mit variablenübernahme wird durch das script komftebel™ vertreten.

Summary card of repository Zentonic/ripgrepgeneric
forgejo.mueller.network: Beyond coding. We Forge.ripgrepgenericrgn [PATH] [EXPRESSION] -> ripgrep Ersatz mit GNU grep
Replied in thread

@ike ... and this stuff has been done with an approach to kanban boards (as part of an NLNet funded project, Icebreaker).

So for instance, I can use #ripgrep to search `rqr` for available tasks (or a more complex annotation featuring that as a subsets).

Because Ive been diligent regarding spacing things out and cross linking like a zettlekasten the location of a document can provide an additional context in supplement to the line(s) identified.

There are other forms like `ìq` for policies.

Here’s something that puts your readline edit-mode into your prompt. I probably didn’t need to do this. I’m a #Vim user (really #NeoVim) and so I have a `.inputrc` that makes my #commandline edit-mode (because of #readline) always be #vi. This is for #bash. It may work in other shells, I don’t know. I use #starship. The actual command I wrote uses #ripgrep. At least twenty other ways you could do it. I put all the changes into a gist: gist.github.com/wolf/e2bd12615

Most people never change from the default edit-mode. If they do, they probably don’t switch back and forth. Starship narrows the field further. Almost certainly this is of no use to you unless you want to learn a little about some of the pieces. Enjoy anyway.

Show your current readline edit-mode in your Starship prompt - readline-edit-mode-changes.txt
GistShow your current readline edit-mode in your Starship promptShow your current readline edit-mode in your Starship prompt - readline-edit-mode-changes.txt

Acabo de descubir #ripgrep y es UNA FANTASÍA de comando ❤️

Básicamente, te permite buscar un texto en todos los archivos que haya en el directorio en el que te encuentres, y te muestra en qué archivo está y en qué línea resaltando dicho texto. Lo mejor de todo es que me lo he encontrado ya instalado, no sé si era alguna dependencia o viene de serie. Qué gran serendipia ✨
github.com/BurntSushi/ripgrep/

GitHubripgrep/GUIDE.md at master · BurntSushi/ripgrepripgrep recursively searches directories for a regex pattern while respecting your gitignore - BurntSushi/ripgrep

Hm. Is there a #CLI #Markdown renderer that can do "display foo.md beautifully in the terminal, and highlight whatever source line 123 contained (which is almost certainly not _output_ line 123)"?

I have a collection of Markdown documents and would like to run full-text search on them, e.g. using #ripgrep, but I don't want the results to be displayed as raw Markdown, but instead be rendered in the terminal, but still see where the result is. Any ideas?

Hot tip for #ripgrep `rg.el` users in #Emacs who don't know anything about default keyboard shortcuts:

You know that n/p go to next/previous item?

The key binding reveals that this is a normal compilation mode binding for `next-error`.

You can use it from the *other* buffer, the one with the content, via <C-x `>

Had an obvious realization to use #ripgrep and #fzf in #vim to limit matches to text in the file and exclude file names matches. Just start with a colon (:) since it separates the filename from what follows. So simple I missed it.

And if I want to search by file type: .ext:<search>