Open 0xdevalias opened 6 months ago
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
IHistoryService
is here:
And this seems to be an implementation of it:
Handling the mouse back/forward actions would be super useful too (not sure how that ties in with general keybinding/etc things):
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
andCmd
+Opt
+B
:The current references I see when searching
keybinding
are: