Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewing through output window #15

Open
ghost opened this issue Oct 29, 2017 · 2 comments
Open

Viewing through output window #15

ghost opened this issue Oct 29, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 29, 2017

Like tagbar plugin that we can press p key to jump to definition but keep stay on tagbar window.
It'd be great if we can add this feature to vim-ripgrep.

@jremmen
Copy link
Owner

jremmen commented Mar 12, 2018

I'm not sure I understand the suggestion. Could you expand a bit more on the idea?

@craigjb
Copy link
Contributor

craigjb commented Mar 22, 2018

If you add this to your .vimrc, you should get the behavior you're looking for:
nnoremap <expr> p (&buftype is# "quickfix" ? "<CR>\|:copen<CR>" : "p")

When in the quick fix window, this will display the selected item and then change focus back to the quick fix window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants