Skip to content
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

Adding a commandID for navigation in the command palette so that it can be changed, #4676

Open
InsigMath opened this issue Dec 5, 2024 · 4 comments

Comments

@InsigMath
Copy link

InsigMath commented Dec 5, 2024

Is your feature request related to a problem? Please describe.
When I open up the command palette I have to use the arrow keys to scroll up and down the list of commands (or tabs and history) and I have no way of changing the navigation controls of the palette.

Describe the solution you'd like
I would like some command that I can override that allows me to change the control from the arrow keys to something like Tab/Shift+Tab, this would emulate my workflow I would use for code completion used in different IDEs.

Additional context
I am using the Pre-release version of the tool (3.6.16779 64-bit) on windows 10.

If this is already possible please let me know as I have not been able to find a corresponding command ID to make the change, thank you!

@InsigMath
Copy link
Author

I just did a bit more investigated and there is actually a way to change the navigation controls for the palette, its CmdNextTabSmart and CmdPrevTabSmart. I am going to close this ticket!

@InsigMath
Copy link
Author

I apologize this is actually still not working. When I change the command for CmdNext(Prev)Tab it launches the tab menu but I still require either using the arrow keys or Ctrl+Tab/Ctrl+Shift+Tab whereas I want to be able to just use Tab/Shift+Tab. I looked at the code and it seems that these controls ard hardcoded into the Command Palette, I wonder if it would be trivial to expose a command that allows users to change those navigation controls.

@InsigMath InsigMath reopened this Dec 5, 2024
@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Dec 5, 2024

hmm most commands can be custom reassigned so currently.

Tabs #

Command IDs Keyboard shortcuts Command Palette Notes
CmdNextTabSmart Ctrl + Tab Smart tab Switch ver 3.6+
CmdPrevTabSmart Ctrl + Shift + Tab Smart tab Switch ver 3.6+


Tab in Windows is normally go from field to field thus flips between find box and page entry field hence the need for CTRL as different.

I was going to suggest the following but due to the dialog popping up it does not work in current pre-release
@kjk I think in a previous version the CTRL K @ listing was not automatically invoked ? Using the Icons requires an extra "Return"

Shortcuts [
	[
		Cmd = CmdPrevTabSmart
		Key = Shift + Tab
		ToolbarText = <Tab
	]
	[
		Cmd = CmdNextTabSmart
		Key = Tab
		ToolbarText = Tab>
	]

]

@InsigMath
Copy link
Author

Yeah I haven't really continued exploring this issue and will simply use the controls that are available. If the contributers to sumatra feel there really isn't any real way to provide that command exposure without some major changes then I am alright closing the ticket. In any case thank you @GitHubRulesOK for the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants