Comments (9)
- People choose
ag
because it is faster thanack
. - People choose
rg
because it is faster thanag
.
Basically all of them have similar feature sets. Some of the option names are different, but they all basically have the same options (discoverable through --help
).
from ferret.
I've done a couple of things now:
- Add
--no-config
to the default args list forrg
. - Add
g:FerretExecutableArguments
to allow people to set whatever default arguments they want to any or all of the executables that Ferret supports. - Add
ferret#get_default_arguments()
so that you can query the current defaults (useful if you just want to grab the current defaults and tack something additional on the end).
from ferret.
Hm, not sure. I'm not using Ack anymore myself, preferring either ag
or rg
. I would have thought that Ack would consult the config file if found.
There is a place in the plugin where you could hard-code your preferred options:
ferret/autoload/ferret/private.vim
Lines 587 to 592 in b1ef0cf
Obviously, this might be the kind of thing that would be useful to offer customizability via an option.
from ferret.
Could you please convince me with 2-3 reasons why most people've recently prefered rg and ag ?
and If it's that good, could you suggest me basic configurations for ripgrep ?
Thanks!
from ferret.
I've tried rg
here is my config.
let s:executables={
\ 'rg': 'rg --vimgrep --no-heading -g "\!tags"'
\ }
I tried to exclude filename 'tags'
When I ran rg Customization -g "\!tags"
, the result is correct.
But using rg inside Ferret caused me error No results for search pattern
Customization: press ENTER to continue
NOTE, I tried
let s:executables={
\ 'rg': 'rg --vimgrep --no-heading -g "!tags"'
\ }
too
from ferret.
I think you want to drop the quotes around !tags
. ie. just do:
let s:executables={
\ 'rg': 'rg --vimgrep --no-heading -g !tags'
\ }
There is no shell involved, so no need to escape for the shell.
from ferret.
Thanks alot!
from ferret.
Hi! Great plugin, I really appreciate all the work you put in.
I was also hoping for an override of the default options as I have a .ripgreprc
file which breaks ferret's use of rg:
--max-columns=160
--smart-case
Default Ack usage doesn't work now, e.g. :Ack map
. But adding --no-config
solves this: :Ack --no-config map
.
I can image this option differs per search programming. Can you add --no-config
to the ripgrep call or maybe allow people to override this option?
Many thx in advance!
from ferret.
I can image this option differs per search programming. Can you add --no-config to the ripgrep call or maybe allow people to override this option?
Both of those are probably good ideas.
from ferret.
Related Issues (20)
- Implement :Lacks, analogous to :Acks but applying to the location-list HOT 3
- ferret make <cword> not working. HOT 4
- allow umap key as feature HOT 1
- FerretAckWord should pass -w option by default HOT 2
- Add a binding to reload the quickfix window
- Autocompleting a directory does not include trailing slash HOT 2
- how to show full path ? HOT 4
- Add a function that prompts for a search query HOT 2
- Port to Lua HOT 3
- Individual overrides HOT 2
- :Black command shadows vim-black :Black (main command) HOT 2
- Case insensitvie search HOT 4
- ripgrep 13.0.0 breaks search in neovim HOT 2
- key mapping HOT 7
- Ferret fails to search string using non ascii character HOT 3
- Ripgrep 13 search stuck when using options in neovim HOT 4
- Delete quickfix/loclist to empty will cause ferret#private#qf_delete error HOT 3
- nvim v0.7.0 error HOT 4
- Tons of duplicate results that don't show up in `rg` HOT 6
- Async not used in Vim HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferret.