Live data from Hacker News

Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

phiresky.github.io

121–130 of 144 posts

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#121
post #80
post #51

Earlier quoted context omitted.

FZF + ripgrep is really killer for me. I don't even bother organizing my notes anymore, I just throw everything markdown files in a flat directory and then I have a script that uses FZF + ripgrep to search through it when I need it. I search by "last modified first" so unless I'm digging for something very old the results are instant. Code snippets, finances, TODO lists, cake recipes... It's all in there. I use the s…

About a year ago, I discovered it was very helpful for me to have git branches ordered by "recently modified first": From my `~/.gitconfig`: [alias] brt = "!git for-each-ref refs/heads --color=always --sort -committerdate --format='%(HEAD)%(color:reset);%(color:yellow)%(refname:short)%(color:reset);%(contents:subject);%(color:green)(%(committerdate:relative))%(color:blue); ' | column -t -s ';'" I always spent a lot o…

Amazing. This should be the default!

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#122

Developer of the tool here :) Glad to see it posted here, I still actively use it myself. Also check out the fzf integration in the README: https://github.com/phiresky/ripgrep-all/blob/master/doc/rga-... Currently the main branch is undergoing a refactor to add support for having custom extractors (calling out to other tools), and more flexible chains of extractors. Ripgrep itself has functionality integrated to call…

The integration with fzf seems nice. Any plans to integrate with skim, a Rust implementation of fzf? https://github.com/lotabout/skim

I also hope for that :-)

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#123

thanks but it's way faster to have my stuff in G drive that way I can open a browser tab, wait 5 seconds for it to load, locate the new screen location of the search bar, click it, wait for javascript to finish loading so I can click the search bar, click it for real this time, mistype because there's some kind of contenteditable event jank, wait 5 seconds for my results to come up, fix the typo, and just have my res…

I'm not sure on how many level this statement is off. Sure, if its file where you don't care about your privacy, the kind of files you don't mind posting on facebook, then sure put in G Drive. But don't think for a second that those files in the cloud is yours. It is NOT! Especially when we are talking about FANNG here. You will have NO legal protection! Stop using cloud, usb is fine.

[deleted]

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#124
If anyone is interested gron [0], I have an open PR [1] to add it as an adapter to ripgrep-all. The patch was based on the most recent release, since master is currently not functional.

0: https://github.com/TomNomNom/gron

1: https://github.com/phiresky/ripgrep-all/pull/77

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#125

Earlier quoted context omitted.

AUR has both a ripgrep-all [1] and ripgrep-all-bin [2] package. Both were addded by you. The bin package has a newer version. What is the difference between the two? 1. https://aur.archlinux.org/packages/ripgrep-all/ 2. https://aur.archlinux.org/packages/ripgrep-all-bin

You can (and should!) read the PKGBUILDs, they're very small and should always be manually inspected before install. The -bin suffix is an AUR convention to let you know that it's downloading a precompiled binary rather than building from source.

If we're talking about conventions, it's also an AUR convention to use -vcs suffix for source builds (like -git), for example:

https://aur.archlinux.org/packages/?O=0&SeB=nd&K=-git&outdat...

https://aur.archlinux.org/packages/?O=0&SeB=nd&K=-hg&outdate...

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#126
post #69

One a related note there is one program that I absolutely miss on Linux called everything (on windows). The closest I can find is mlocate but it does not have a GUI but more importantly it does not index my Windows or NTFS drives. Would appreciate any suggestions if someone knows something like 'everything' for Ubuntu.

For mlocate you can edit /etc/updatedb.conf to specify what to index. One trick I use is "locate -Ai" that lets you search for multiple patterns and makes it case insensitive. So you can use "locate -Ai linux .pdf" to search for all pdf files related to Linux. Also for gnome there is tracker which does search and indexing built into the system. I think by default its set for minimal use but it can be configured by th…

Great tip.. thanks! I've kinda of mounted all my drives including Windows/NTFS/etc using fstab now. Do you reckon this will have any negative impact performancewise?

Just wondering since Linux knows about these drives but doesn't mount them automatically at startup.. so if this is out of a reason or just convention?

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#128

Earlier quoted context omitted.

You can (and should!) read the PKGBUILDs, they're very small and should always be manually inspected before install. The -bin suffix is an AUR convention to let you know that it's downloading a precompiled binary rather than building from source.

If we're talking about conventions, it's also an AUR convention to use -vcs suffix for source builds (like -git), for example: https://aur.archlinux.org/packages/?O=0&SeB=nd&K=-git&outdat... https://aur.archlinux.org/packages/?O=0&SeB=nd&K=-hg&outdate...

And the version of VCS AUR entries is just from the last time the PKGBUILD author ran it before uploading.

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#129

Earlier quoted context omitted.

This means it's good sarcasm! The best sarcasm lies on a ridge, you cannot tell if it's sarcasm or not.

Good in what sense? A sarcastic endorsement of A that is indistinguishable from an earnest one is a poor argument for ~A. This is in fact what's happened with Schrodinger's Cat: it was meant as an argument from absurdity against the Copenhagen Interpretation of quantum mechanics, but it's presented seriously and so people take it in that way.

> A sarcastic endorsement of A that is indistinguishable from an earnest one is a poor argument for ~A.

The purpose of sarcasm is not to make an argument, it's to have fun. The best fun is had when exactly half of the audience does not get the joke (as the other half makes fun of them).

Re: Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz

#130

Earlier quoted context omitted.

not being sarcastic if god wanted me to access my files in less than 15 seconds, they wouldn't have commanded google to package the search bar as a separate JS bundle that only gets downloaded when you focus the search bar I'm no frontend dev but I know a thing or two about HTML + there's no built-in way to input text into a box -- this is the best we can do and we'll just have to wait for 5G + moore's law to solve t…

Laugh all you want but try looking for a Fullstack/Frontend role in today's job market. What do they want? AnGuLaRr with oBsErVaBlEs! Why do they want it? Because Google can't be wrong.

> Why do they want it?

Because every obersable event you trigger has to go into an add machinery

Post reply on HN