Fuzzy search in text files

Fuzzy search in text files

There are tools like agrep and faster one called glimpse.

apt install agrep glimpse

agrep je isto kao grep, samo fuzzy https://man.cx/agrep

glimpse je agrep, ali traži ceo disk kao “locate” https://man.cx/glimpse pravljenje index-a: glimpseindex -o ~/mydocs onda search AND i slično

da bi tražio jebeno po file pattern, moraš kombinaciju find i agrep. Zato mi je glimpse nekako lakši… a valjda i brži

postoji i https://github.com/schollz/goagrep što je otprilike isto što i glimpse

glimpseindex -o /c/Storage/Dropbox/Treasury

[glimpse manual pages](https://man.cx/glimpse)



---

tražio sam: vscode fuzzy "find in files"

Woow:

[How FZF and ripgrep improved my workflow](https://sidneyliebrand.io/blog/how-fzf-and-ripgrep-improved-my-workflow)
https://news.ycombinator.com/item?id=20360204

[BurntSushi/ripgrep: ripgrep recursively searches directories for a regex pattern](https://github.com/BurntSushi/ripgrep)
[junegunn/fzf: A command-line fuzzy finder](https://github.com/junegunn/fzf)

scoop install ripgrep
scoop install fzf

Probaj:
rg --files | fzf

---






[kelleyma49/PSFzf: A PowerShell wrapper around the fuzzy finder fzf](https://github.com/kelleyma49/PSFzf)
a interesantno je PSReadline Integration odnosno Ctrl-R, Ctrl-T, Alt-C, pa to istraži



---


`fzf` za Windows može da se instalira sa `scoop install fzf`
ali pošto želim da odmah zameni `Ctrl-R`, lakše je da instaliram odmah wrapper: `scoop install psfzf`
Nisam siguran šta je uopšte: `scoop install psreadline` - [PowerShell/PSReadLine: A bash inspired readline implementation for PowerShell](https://github.com/PowerShell/PSReadLine)
[GNU Readline](https://en.wikipedia.org/wiki/GNU_Readline)
nego da nešto palamudim.
I onda podesi 

Set-PsFzfOption -PSReadlineChordProvider ‘Ctrl+t’ -PSReadlineChordReverseHistory ‘Ctrl+r’


must add that line to `$profile` file

I probaj `Alt-C`, `Ctrl-R`, `Ctrl-T`

Pažljivo pročitaj i komentare i tekst:
[So you've installed `fzf` – now what?](https://news.ycombinator.com/item?id=35248098)
[Fzf might be my most used command line utility. That and autojump (alias to j). | Hacker News](https://news.ycombinator.com/item?id=26032919)
date 01. Jan 0001 | modified 10. Jun 2024
filename: Command Line » Fuzzy Search inside Text Files
Article Content