-
Notifications
You must be signed in to change notification settings - Fork 395
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
Quickfix window displaces NERDTree #66
Comments
Could you check if this still happening with master version!? I'll close it for now, but feel free to reopen it if necessary. |
@kassio this seems to be happening again. Though it is replacing the nerdtree split now instead of going next to it. Any thoughts? |
Sorry, but I don't contribute for this project anymore. I hope the new contributors can help you. 😄 |
Are you able to reproduce consistently, and provide exact steps (key sequence, etc.) to do so? |
3 years later, I am still scared every time I type |
@ches |
same problem |
Aha! Well at last… I realized I couldn't reproduce because I use Here's a workaround for now, set this in your " Split rightward so as not to displace a left NERDTree
let g:ack_mappings = {
\ 'v': '<C-W><CR><C-W>L<C-W>p<C-W>J<C-W>p',
\ 'gv': '<C-W><CR><C-W>L<C-W>p<C-W>J' } The plugin's defaults get merged with yours if you've set |
@ches Thanks for this. I think using |
Odd, I'm not seeing this.
This one is just going to be a wontfix for the core plugin I'm afraid, after all NERDTree is just a window and introducing special cases for detecting it and who knows what else would become a total mess. Plain I should mention another possibility for anyone following: it sort of sucks to say "use another plugin", but I increasingly feel that something like QFEnter is the right way instead of ack.vim duplicating this functionality and having it not work in other quickfix windows or even when re-opening the same one. See my mini-rant on #170, you might try installing QFEnter, disabling ack.vim's quickfix mappings, and see if that works out better for you. You still might need some tweaking for the NERDTree-was-last-focused case though… |
Ah, yes, I am already trained to not start searches with NERDTree focused. Learned that one a long time ago :) So here's what I actually want enter to do... leave my current tab alone, put the first result open in a new tab with the quickfix window below so I can
|
Hmm, you might shorten the jumping around slightly with But what I think I'd do in this case is just define a mapping to start the whole thing off in a new tab: nnoremap <Leader>a :tabnew <Bar> Ack<Space>
" And/or abbreviation
abbr TAck tabnew <Bar> Ack |
Things get weird when I search with NERDTree open and then open one of the results in a split:
The text was updated successfully, but these errors were encountered: