j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
870 stars 100 forks source link

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

Open 0xdevalias opened 4 months ago

0xdevalias commented 4 months ago

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:

j4k0xb commented 4 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

0xdevalias commented 4 months ago

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):