3 ms·
Is it possible to register new file formats in ripgrep though (say for example slim files so that I could do rg -tslim PATTERN)? Last time I checked it was some
by VeejayRampay 9y ago
Is it possible to register new file formats in ripgrep though (say for example slim files so that I could do rg -tslim PATTERN)? Last time I checked it was somehow possible but way too complicated for so common a task.
- kaushalmodi 9y agoFrom its README: rg --type-add 'foo:*.{foo,foobar}' -tfoo bar --- You simply make the below into an alias: rg --type-add 'foo:*.{foo,foobar}' Or, if the type you need is generic that other users can also use, submit a PR. The developer was kind to except mine.. https://github.com/BurntSushi/ripgrep/pull/107/files https://github.com/BurntSushi/ripgrep/pull/107/files .. it's a trivial 1-line PR.