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

Add keybindings/similar to navigate 'forward' / 'backward' through the code #82

Open
0xdevalias opened this issue May 18, 2024 · 2 comments
Labels
enhancement New feature or request playground

Comments

@0xdevalias
Copy link

0xdevalias commented May 18, 2024

It's awesome that we can use Cmd+click to jump to a symbol in the code, but it would be great if there was an easy way to go back again afterwards too:

I'm not sure if those functions are handled within monaco already (and just need key bindings), but if not, it looks like they might be able to be implemented with something like this (or similar):

Being predominantly a jetbrains user myself, I am used to Cmd+B and Cmd+Opt+B:

The current references I see when searching keybinding are:

@0xdevalias 0xdevalias added the enhancement New feature or request label May 18, 2024
@j4k0xb
Copy link
Owner

j4k0xb commented May 18, 2024

It's workbench.action.navigateBack in vscode, seems like monaco-editor doesn't have any workbench actions or the history service:
https://github.com/microsoft/vscode/blob/5d6671dacb9d6a582b9354ea317211a8e2b2f918/src/vs/workbench/browser/parts/editor/editorActions.ts#L1410-L1443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request playground
Projects
None yet
Development

No branches or pull requests

2 participants