-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Add prev/next panel item actions. Fix #44625 #44796
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
Conversation
@octref only the |
I also wanted to suggest having Ctrl-Tab and Ctrl-Shift-Tab bound to them using Just want to know if you are pro or against adding those two shortcuts behind the when clause and if I should look deeper into this. |
Against since it will break muscle memory of users. Currently ctrl-tab changes the editor no matter the focus. I would not just change this. |
@isidorn How about cmd + |
@octref let's start without a default shortcut and if we see that this action is popular we can easily add one later. This is a better strategy than adding first since it is later hard to remove |
6dbac1a
to
9ece20e
Compare
@isidorn I'm not sure if I understood your suggested approach, but this seems to work fine. |
@octref thanks for your PR. However this week we are in endgame and on Thu I go on vacation so I will review this next milestone. Hope that makes sense. |
Sure, see you next month :) |
@octref thanks again for your PR. However I find it strange that we add fyi @sandy081 since he is tackling various views this milestone |
30e0514
to
204653f
Compare
I think it's better to do that as another PR. I can do it too.
I never used it. I believe that action serves a different purpose than this one. Ideally in each group (editor, viewlets, panels) I just want an action to go to the prev/next thing visually, not to recall names of each parts of VS Code and jump to it. What I asked for in #15262 (UI part aside) is contextual ctrl+tab. Ideally I hope we can have these commands / when clauses Ctrl-Shift-Tab:
Ctrl-Tab:
I addressed that. |
I think having similar action to navigate viewlets is good. How about navigating views inside viewlet? |
@isidorn if you want to merge for April, feel free to review. otherwise running out of time, moving to May. |
@bpasero I reviewed this and the code is good. I just need your blessing to add the "Next Panel" / "Previosu Panel" actions. You do not have to look at the code |
@isidorn oh OK. We can have the actions but I am with @sandy081 and think for consistency we could have the same actions for viewlets as well. I am not sure about navigating within viewlets to other views, for that you could probably just "Tab". @octref I think commands like "Previous Panel item" should user uppercase all the way (e.g. Previous Panel Item) |
7b34089
to
e8f6c02
Compare
@isidorn @bpasero I've cleaned up the API a bit, including
I have a question though. In private getVisibleComposites(): string[] {
return Object.keys(this.compositeIdToActions);
}
public getPinnedComposites() {
return this.pinnedComposites;
} They seem to be doing the same thing.
|
@octref sorry for not responding I was on vacation when you asked the question. |
d8dcd03
to
cf7cc92
Compare
A lot has changed on master.. I'll open a new PR. |
@isidorn Not done yet. I found
panelService
is not returning the panels in correct order when some of them were hidden / move-around.Any idea how can I retrieve the order and visibility of the panels?
IPanel
andIPanelIdentifier
don't seem to have it.