

I don’t know whether this is a bug in command-not-found (don’t recommend things that don’t actually provide the command I typed), the snap ecosystem overall (there are multiple things which all provide the same command), or what.
RIPGREP COMMAND NOT FOUND INSTALL
So the experience here is: I try to run a command, command-not-found tells me to install something to get it, I install that thing, and I still don’t have that command. I was pretty baffled by all this, and I’m more knowledgeable than most users about snaps I don’t think most people would have known to run it as ripgrep.rg, for example. I always do: grep -C 9999 pattern file neo at 12:38 Try sed. (This seems to have been asked about already and then decided not to.) And there are multiple versions of ripgrep in the store, at different versions, and the one with the “canonical” binary name isn’t the most recent version. 3 You can use -C 9999 in place of -A 9999 -B 9999. None of the individual parts here are wrong, but they’re all fitting together in a way that makes the whole experience confusing and unpleasant and less credible, which is a problem.Ĭommand-not-found recommends installing the ripgrep snap to get the rg command, but then doesn’t give me the rg command. So, this is, in my opinion, a fairly terrible experience, so I thought I’d give some feedback about that in the hope that someone can think about it. Also known as: rg License: Unlicense Formula JSON API: /api/formula/ripgrep.json Formula code: ripgrep. The following required arguments were not provided: Ripgrep 0.10.0 from Chris MacNaughton (icey) installedĬommand 'ripgrep' not found, did you mean:Įrror: cannot find app "ripgrep" in "ripgrep"Įrror: cannot find current revision for snap rg: readlink /snap/rg/current: no such file or directory Obviously I would want the newest version, so: $ snap install ripgrep -classic # we need -classic, apparently, don't know why See 'snap info ' for additional versions.

Note, however, that cargo is not installed by the.
RIPGREP COMMAND NOT FOUND SOFTWARE
Enable default key bindings: (rg-enable-default-bindings) The above will enable the default key map rg-menu under the default prefix key C-c s. Ripgrep is software written in Rust and is installable with the cargo utility. From within Emacs, run M-x package-install RET rg RET to install from those sources. And it comes with some great options -hidden to show hidden files -s for case sensitive searches -l to just show the files that contain the result without showing the context and -g to include or exclude files or. Sudo snap install ripgrep # version 0.10.0 MELPA Packages are published on MELPA Stable and MELPA. On the command line you can use ripgrep as simple as rg mysearch and it will recursively find your results in a flash.

$ rgĬommand 'rg' not found, but can be installed with:

RIPGREP COMMAND NOT FOUND CODE
