sublime-profiles icon indicating copy to clipboard operation
sublime-profiles copied to clipboard

Remember settings that don't come from configuration files

Open kytta opened this issue 1 year ago • 3 comments

There are some settings that can't be changed via .sublime-settings, like show/hide Minimap, sidebar, status bar, tab bar, toggling Distraction free, etc. It'd be cool if Profile Switcher would remember those, as I find myself constantly turning them on and off when going from Writing to Coding mode :/

This post may help. Idk if the better idea would to just make a new plugin for hiding UI elements via settings, so that it plays nicely with Profile Switcher.

I'll see if I can jot down a PR for this issue. Not sure where to start...

kytta avatar Apr 25 '23 13:04 kytta

We might add fake settings (show_minimap) and make profile switcher call that code (set_minimap_visible) if it sees it

tonsky avatar Apr 25 '23 14:04 tonsky

We might add fake settings (show_minimap) and make profile switcher call that code (set_minimap_visible) if it sees it

There actually is a plugin for that: https://packagecontrol.io/packages/Remember%20Minimap%20Setting

It works only for minimap, though. And it doesn't disable it directly after profile switching, one needs to reload the interface by reopening the file

kytta avatar Apr 25 '23 15:04 kytta

Can you do the same but inside our plugin? And trigger on profile change?

tonsky avatar Apr 25 '23 16:04 tonsky