Git Product home page Git Product logo

Comments (4)

asheidan avatar asheidan commented on August 18, 2024

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.

PlasmaHH avatar PlasmaHH commented on August 18, 2024

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.

junegunn avatar junegunn commented on August 18, 2024

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.

PlasmaHH avatar PlasmaHH commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.