Closed jesseleite closed 2 years ago
As far as I understood the idea was building it specifically for rg
:
See https://github.com/nvim-telescope/telescope-rg.nvim/issues/5
The README is not up to date. I am going to change this later with #7 .
Ah sorry, didn't see that convo. Commented over there too!
Let's carry the discussion over here: Should it be renamed once again?
Is it possible naming it live_grep
at all? Because that collides with live_grep
in Telescope βcoreβ.
@Conni2461 @tjdevries
Whoops, it moved again lol. I just commented over there again, sorry!
We can name it live_grep
and move it out with an announcement here nvim-telescope/telescope.nvim#1470 .
hmmm, I don't know if we need to move live_grep out. This could change to rg_live
or live_rg
or something.
I particularly don't want this plugin (telescope-rg) to even consider what would work for other grep services. It complicates everything, obscures easy names, etc. It has been quite annoying to maintain three or more "grep-like" alternatives for various aspects. So don't worry about that in this plugin.
I don't know if we need to move live_grep out
Are all the builtins eventually getting moved out, as per this discussion?
This could change to
rg_live
orlive_rg
or something
@tjdevries Two quick thoughts on this...
1) This extension isn't coupled to rg
; It's coupled to whatever the user's vimgrep_arguments
happen to be.
2) What if we rename this repo/extension to live_grep_args
?
- If this extension allows the user to `live_grep` with their own `args`, why not `live_grep_args` ? π
- This would address my concern above about coupling the name to `rg`; Again, both `live_grep` and `live_grep_args` happen to use `rg` by default, but only because of what's in the default `vimgrep_arguments`.
Don't want to die on the hill though. Just my two cents β€οΈ
If vimgrep_arguments are set to something like rg --files
, it also means this can be used as a find_files
replacement, adding support to rg
flags.
Taking that into account, I feel that having live_grep
in the name would not necessarily make sense neither?
That is just a thought, but effectively the native live_grep
in telescope can also be configured with rg --files
. I am wondering what is the technical difference behind the scenes between live_grep
and find_files
then (apart from setting the default rg
flags).
Coming back to this @Conni2461 should we rename it one last time to live_grep
? Alternatively live_grep_args
to avoid confusion with the builtin.
I would then update the code and docs.
He's alive! ^ My vote is live_grep_args
, since it's basically live_grep
with ability to pass args
π
Please not live_grep
this will be a name clash with current live_grep
. Off the top of my head i don't know what will prioritized extension or builtin when using :Telescope
live_grep_args
works for me.
Go live_grep_args
! :partying_face:
Do i have to do something?
Want to prep a PR that changes the references inside the repo and i merge and rename at the same time, if you dont have the permissions to rename
Something i am not sure about is that telescope.load(" ... ")
will change if we change the dir name. This is a breaking change
I am going to prepare a PR. I am planning to display a notice to the users if they are using one of the previous names.
π
I see this repo was renamed from
telescope-live-grep-raw.nvim
totelescope-rg.nvim
...Technically,
live_grep_raw
should work with other search tools likeag
instead ofrg
if the user sets their vimgrep options to suit, right?Also, if the extension is loaded via
load_extension('live_grep_raw')
, doesn't it make more sense to use that terminology in the repo name as well?