-
Notifications
You must be signed in to change notification settings - Fork 299
Closing tabs from command-line (ex) mode #602
Comments
Yikes, that is atrocious! I think this is related to #593 - by default we just show the buffers , unless My goal with showing buffers by default is it more closely maps to how other editors work, but it sounds like this default is really confusing to both you and @bert88sta who have a tab-based workflow, and expect the tabs in Oni to map to Vim tabs. So a couple questions:
|
One thing I realized too, if we change that default to |
Setting |
I think this is the bug that I bump into the most when using Oni. A few other related issues (or at least issues where tabs fall behind where they should be) is using Save As is not reflected in the tab line until you swap back and forth to a different tab. Similarly if I open multiple tabs (with These all feel somewhat related, but I can't be sure. Is there anything that makes sense to look into for this? |
@CrossR - Just curious, do you use
I think @Akin909 had looked into this for an investigation, and IIRC he mentioned there were some oddities in the timing of getting the buffer events back.
This one seems to work better for me in
In
It's possible that we're missing an event, potentially - |
I use It does seem like a timing issue and I couldn't remember where the discussion about this had gone on. I'll try and have a look at some point and see if there is any other event we could hook into. It would make sense, since we get updates on buf enter and unload, they may not capture a new buffer and a buffer write. Then when starting editing and swapping away and back, the buf enter autocmd is being kicked off, at which point we do capture it. Perhaps linking up the |
@CrossR yeah its been a bug bear of mine specifically renaming buffers etc. and we've had to resort to a EDIT: Re. vim events I've read through autocommands docs more than I could ever have wanted/or dreamed and seems there are loads we are not responding to, not that we need to respond to all but definitely there are a few that we definitely should be but what not clear is how or which exactly (till a bug creeps up) |
I'm pretty sure this is fixed for me now we've swapped to Does anyone who uses |
If I have multiple tabs open and I type
:q
or:close
, the focus will change to a previous tab as if the active tab had closed but the tab itself still remains.gt
will correctly skip the "closed" tab but clicking on the tab will still display the file. It seems the only way to close a tab is by clicking theX
button... with your mouse. 😱The text was updated successfully, but these errors were encountered: