-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Close a single panel instead of the entire stack. #8753
Conversation
Currently you can close a single panel by middle-clicking its tab, and you can also close the entire stack by clicking the Close button. The expected behavior of clicking the Close button is indeed closing the current panel only. Thank you. |
I would never have known this, but it's true. I expect the MS VS behavior here, and I expect it to be similar to the small close button at the far right in the menu line, which closes the current document only. This expectation is fortified by the fact, that the close button for the docked window is beside the headline of the docked window. And this headline is content-dependent. It doesn't say: "Left Docking Area" or "Right Docking Area", it says "Function List", "Document Map", and so on. So I expect to close exactly what the headline says, and not everything docked at the same place.
It would be easy to do that, but I wouldn't expect this function there neither. And I find multiple clicks to the close button not too hindering, the mouse stays at the same position while doing it. |
You're absolutely right.
I agree. |
Just found out that |
OK, I see. There is no way to get around it :-). I would prefer Shift + clicking Close then. In MS VS, it is even configurable, whether the close button affects only the active panel or the entire stack : "Close button affects active tool window only" is the option. Must have been checked all the time I used it. And this setting is (in MS VS) negated by the Shift key:
So, I see some white space left in the MISC. page of preferences ... |
In MS VS you can't see the forest for the trees.
If you think it's important. :) Thank you. |
I think it's more convenient to press ctrl+w and close a single panel . (I have a mouse button bound to ctrl+w, and I am using it every where ) |
Started Notepad++, pressed Ctrl+W. While in text windows, it inserts a control character ETB, while in docking windows, nothing happens. Is this a kind of hidden function that already exists? Or is it just a kind of feature request or another way in which it could be done? |
Default behavior of Ctrl+w should be to close the tab. If it is intended to be hidden, it isn't hidden very well: But, historically, in Windows, Ctrl+w has been a "close tab" command. I think it has fallen out of favor and Ctrl+F4 is now the favorite for this. Why F4 I have no idea. |
OK, but this cannot be applied here, because the "Close" keyboard shortcut is for documents only. So, if we would want to use it for side windows too, we would have to make the "Close" keyboard shortcut dependent on in which window it is pressed. If it is pressed in the edit window, then the current document would be closed, if it is pressed in a side window, the current tab of the side window would be closed. That's actually not what I intent here. The question still lingering from my side is, in which degree the click to the "Close" icon of a side window should be configurable. Is it enough to provide a Shift-Click for closing all tabs in the side window, or would a configuration be acceptable, so that all users, who got used to it, can continue to close the entire stack instead of the current tab only. |
Correct, I was NOT suggesting it, just relaying some history. |
Clicking the "Close" icon in docked windows closes the current panel now instead of the entire stack.
This implements the last part of #8471.