Comments (4)
Isn't it possible to do this already by including <C-r><C-w>
(insert the word under the cursor) in your mapping?
Since I'm not sure how you invoke the command you might have to tweak this a little bit.
from fzf.vim.
I usually dislike re-creating commands from plugins with my own changes as then when it updates in the plugin I will miss those changes usually... also thought that it might be intresting as a feature in general for others...
from fzf.vim.
No, what @asheidan is saying is that you can define your own mappings that do that in your Vim configuration file.
nnoremap <silent> <Leader>rg :Rg <C-R><C-W><CR>
nnoremap <silent> <Leader>RG :Rg <C-R><C-A><CR>
xnoremap <silent> <Leader>rg y:Rg <C-R>"<CR>
You should be able to define similar commands that call :Rg
in a similar fashion.
from fzf.vim.
You should be able to define similar commands that call
:Rg
in a similar fashion.
And my point was to add a feature to:Rg
to use it as:Rg
the way I have been from another plugin as I thought it would be useful for others too.
from fzf.vim.
Related Issues (20)
- [Feature Request] functional, blocking version of `fzf#run` for neovim HOT 4
- custom fzf_action behaviour have been broken by recent commit HOT 2
- :Helptags perl command failing HOT 11
- "Tab drop" no longer works as fzf action for jumping to existing tab HOT 2
- FZF Preview and Light themes colors not looking ok HOT 7
- Errors when running 'History:' and 'History/' commands HOT 1
- preview.sh not previewing files with nested path on Windows HOT 5
- Ctrl+T/Ctrl+X/Ctrl+V actions don't work correctly in some cases when a swap file exists HOT 4
- How to get fzf.vim to index files at startup? HOT 1
- cursor shape changed from underscore to block in iTerm2 HOT 4
- how to grep through a passed filelist
- Regression/error when running :Tags HOT 9
- override fzf_history_dir option CTRL-P and CTRL-N mappings HOT 1
- [Feature] universal fzf: use one command to `fzf` sources of many different categories HOT 1
- `:Tags` is very slow on large tags file HOT 1
- Provide ability to add own log command HOT 2
- Let FZF_PREVIEW_COMMAND take over for binary files too HOT 1
- Search text in files of certain type HOT 1
- vim.ui.select wrapper for fzf.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 fzf.vim.