Open ofirgall opened 2 years ago
I really like this :+1: Maybe I will add some functions that can be used for personal mappings.
Lets start simple: #23 (will add the others soon)
Is that something you would expect? I don't want to set up mappings by default. That should be done by the user.
Could it also search for visual selection?
@weeman1337 It looks good, its up to you what to do this I just shared my config.
@gegoune You can look at the 3rd feature.
https://github.com/nvim-telescope/telescope-live-grep-args.nvim/pull/23 is ready to be merged. It provides shortcuts for grep word under cursor and grep with visual selection. Would be great is someone can test the branch.
@weeman1337 I have tested both shortcuts (and with postfix) - all works great so far. Thank you so much, it simplifies my config. :)
Description
Hey, first I want to thank thanks for developing this plugin I'm a daily-heavy user of it.
I have create some "features" with/for
telescope-rg
that the community might like to use. I was wondering if you would like to add those features as part of the plugin or as advanced configuration or something like that.Feature overview
live_grep
with current word under cursorlive_grep
with text captured with move operatorlive_grep
from visual mode with selected textlive_grep
with filter to search files in the directory of the bufferlive_grep
fromnvim-tree
, search in the directory that was selectedHow I Implemented the Features
Helper functions
Open
live_grep
with current word under cursorOpen
live_grep
with text captured with move operatorOpen
live_grep
from visual mode with selected textOpen
live_grep
with filter to search files in the directory of the bufferOpen
live_grep
fromnvim-tree
, search in the directory that was selected