Comments (12)
Okay, it's from the use of switchbuf.
I've committed the fix, so try it with the latest code.
from qfenter.
I've noticed there was a discrepancy between the 'prev win / tab' behavior of new win commands (such as vopen) and new tab commands (such as topen).
Prior to the new version 2.4.1, the previous window is the window focused before the quickfix window for new win commands, whereas the previous window and tab are set to the quickfix window from which the QFEnter open command is invoked and the tab the window belongs to for new tab commands.
To match these two behavior, I've add a new option g:qfenter_prevtabwin_policy
.
The default value is 'qf', which makes the previous window and tab be set to the quickfix window from which the QFEnter open command is invoked and the tab the window belongs to, because I believe this is more desirable.
You can just use let g:qfenter_prevtabwin_policy = 'qf'
to get the result you want.
from qfenter.
Thank you!
from qfenter.
Albeit, it only works on the first invocation of g:qfenter_keymap.hopen
. The second time it jumps back to the other window instead of the quickfix window. That is, after two invocations of g:qfenter_keymap.hopen
on two different quickfix entries the alternate window is not the quickfix window. Expected: It is the quickfix window.
from qfenter.
Could you give me more details about your test settings?
When I tested "two invocations of g:qfenter_keymap.hopen on two different quickfix entries" it works fine.
Executing wincmd p
both on the first and second splitted window moves the cursor back to the quickfix window.
from qfenter.
In a tab with two windows,
- a window of the quickfix list with two entries 1 and 2 from different files,
- a window of the file of entry 1,
hopen
on entry 2 and windcmd p
returns to the quickfix list, but then hopen
on entry 1 and wincmd p
jumps to the window of entry 1 instead of the quickfix list.
from qfenter.
I've just pushed a commit that fix a bug with 'open' command, not 'hopen' command.
I'm not sure why 'hopen' makes such a result, but anyway could you try it with the latest code again?
And is it right that your 'hopen' means <Leader><Space>
key input (by default)?
from qfenter.
Yes, hopen
means hitting the mapping bound to g:qfenter_keymap.hopen
, by default <Leader><Space>
.
Thank you fixing the bug but this specific issue persists. On the second wincmd p
the focus is on the window of the other file instead of the quickfix list.
from qfenter.
I've tested the scenario with a freshly installed vim 8.1.2269 on freshly installed Ubuntu 20.04 which is installed as a singularity container from https://cloud.sylabs.io/library/_container/5baba99394feb900016ea433, but cannot reproduce the reported behavior. The qf
option works correctly in that system as well.
There are no initial settings and plugins except vim-plug and this QFEnter in the test system.
I'm wondering whether some of your plugins or settings might affect this behavior..? Could you test the scenario with a "fresher" system?
from qfenter.
I can reproduce on Vim 8.1568 and the vimrc
reading
let &rtp = '~/.vim/plugged/QFEnter/' . ',' . &rtp
filetype plugin indent on
syntax on
set switchbuf=useopen
from qfenter.
I am sorry, I missed mentioning in the initial post that set switchbuf=useopen
is used.
from qfenter.
Thank you! It's working now.
from qfenter.
Related Issues (17)
- Alternatives to :cnext and :cprev HOT 8
- Separate mappings for open with quickfix focused HOT 4
- Latest QFEnter update broken HOT 4
- The location list should be open when open an item under cursor in a new tab HOT 2
- No such event on vim's starup HOT 2
- "No location list error" when using topen HOT 3
- Is it possible to integrate with choosewin.vim? HOT 3
- Open in visible window, if present HOT 7
- exclude nerdtree windowใ HOT 1
- open_keep mapping doesn't appear to work HOT 1
- Auto-close quickfix list after an item has been selected HOT 2
- QFEnter raises error when using quickfix list with vim-bookmarks plugin HOT 2
- Needs a license HOT 1
- E154 HOT 1
- Support Location List HOT 2
- QFEnter creates new buffers named: ""[No Name]" HOT 7
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 qfenter.