-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Switch Window #25145
Comments
I think our current "Open Recent" is coming very close to this? |
You might be right, I'll try working with that for a bit. |
/cc @dbaeumer |
@bpasero Thanks. As discussed would be cool to cycle through them as we can cycle with Ctrl+P through files. |
@chrmarti @dbaeumer now I just realized that we do have a picker for windows: This is a good start, can you let me know how it works for you? Meanwhile I am pushing the following changes to this picker:
I am not 100% convinced this list should be MRU, rather I think it should be stable and you should always start from the top to find your window. But I am open to change this if we think it does not work. |
Quick navigation works except for rare cases where it immediately navigates before I release the modifiers. (Using Ctrl+Shift+R for next, Ctrl+R for previous.) It would be great if the labels would show the folder first and then its path, similar to Open Recent. The current list is hard to read. |
What I like about Ctrl+R is that I don't have to think about whether the windows is open or not. With switch window I do :-). I am already a heavy user of Ctrl+R now. |
Just tried it out. LOVE IT. ❤️ |
What I miss with Open Recent (Ctrl+R) is the quick navigation (repeated Ctrl+R), maybe that can be added? Having a list of only the open windows/folders like with Switch Window can be helpful because it represents my "working set". I'm using Ctrl+R and Cmd+ |
@chrmarti there is a bug with quick navigation that should be fixed in my new implementation, can you give it a try via "running out of sources"? As for the labels, I chose to pick the exact same label that the window actually has and since the window title is configurable (via settings), maybe you can get it to a state where the label works for you? For example:
Produces: @jens1o cool @chrmarti @dbaeumer yes, we can add quick navigation to |
Could only be the once sorted to the top. Or. Since it is LRU. I am fine without that info. |
@dbaeumer it is worth mentioning that the "open recent" MRU sorting order is not influenced by you switching windows via Alt+Tab on Windows, it is only influenced by actually picking an entry from the list. As long as you stick to that, you are probably fine. |
Open Recent:Having quick navigation and an indicator for which ones are already open would be great. While I'm not entirely sure about the indicator, I think it might help navigate in the "working set". It would also help in knowing when to press Cmd (or Ctrl) to open the folder in a new window. Not sure what a good indicator would be, maybe the background color plus something? Switch Window:
The issue with quick nav in Switch Window shows when running the latest from master. I agree we might not need Switch Window if Open Recent can cover it. |
@chrmarti what is your keybinding config for this when running out of master and what is your OS and what are your steps so that quick nav fails? |
@bpasero the only thing I could think of having two groups like Ctrl+P has. One open and one recently open. |
@bpasero This is on Mac. Steps are:
This doesn't always happen and I can currently not reproduce. (If that sounds like the problem you fixed, maybe I was running from an old build state, although I thought I had updated that.) [
{
"key": "ctrl+shift+r",
"command": "workbench.action.switchWindow"
},
{
"key": "ctrl+shift+r",
"command": "workbench.action.quickOpenNavigateNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+r",
"command": "workbench.action.quickOpenNavigatePrevious",
"when": "inQuickOpen"
}
] |
I have pushed additional changes:
Quick Switch Recent {
"key": "ctrl+r",
"command": "workbench.action.quickOpenRecent"
},
{
"key": "ctrl+r",
"command": "workbench.action.quickOpenNavigateNext",
"when": "inQuickOpen"
} Quick Switch Window {
"key": "ctrl+r",
"command": "workbench.action.quickSwitchWindow"
},
{
"key": "ctrl+r",
"command": "workbench.action.quickOpenNavigateNext",
"when": "inQuickOpen"
} |
See #25145 (comment) for verification. |
The text was updated successfully, but these errors were encountered: