Skip to content

Add when context: isLastGroup / isFirstGroup / editorGroupIndex #22755

Closed
@joshfrench

Description

@joshfrench
  • VSCode Version: 1.10.2
  • OS Version: 10.11.6

I've remapped a shortcut to View: Focus Next Group. This command will open an additional group if I'm on the last group and have fewer than 3 groups currently open.

It would be great to have a when clause to prevent this. A clause like editor.isLastGroup (or perhaps a combination of editor.openGroupCount and editor.currentGroupIndex) would allow me to prevent extraneous group opening. A similar check for editor.isFirstGroup would let me re-use the same shortcut to jump back and forth between the first group and the sidebar.

Thanks for your consideration!

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitykeybindingsVS Code keybinding issuesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-editorsManaging of editor widgets in workbench window

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions