Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.3k stars 424 forks source link

Remember collapsed functions when leaving editor #1671

Open jb222 opened 1 year ago

jb222 commented 1 year ago

Especially in longer scripts it would come in handy if the editor remembers collapsed functions, so it's easier to find the code we were working on previously.

derjanb commented 1 year ago

I just created a new extension that allows to edit the userscripts of Tampermonkey at vscode.dev (which is basically a VSCode online editor).

I know this does not fix Tampermonkey's internal editor, but it might help. To test it you have to install TM BETA 4.19.6176+ and Tampermonkey Editors 1.0.1.

A click at "Tampermonkey Editors"' icon will take you to vscode.dev and a "folder" with all installed Tampermonkey scripts should be automatically opened.

And BTW: it remembers collapsed functions 😅

jb222 commented 1 year ago

I tried that one, but found it a bit intimidating... Hopefully this doesn't mean you will give up on the editor. Or my long-time request https://github.com/Tampermonkey/tampermonkey/issues/1156...

dnknn commented 1 year ago

@jb222 Similar need #1734 (This option is very much needed)