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

Remember settings that don't come from configuration files #9

Open
kytta opened this issue Apr 25, 2023 · 3 comments
Open

Remember settings that don't come from configuration files #9

kytta opened this issue Apr 25, 2023 · 3 comments

Comments

@kytta
Copy link

kytta commented Apr 25, 2023

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...

@tonsky
Copy link
Owner

tonsky commented Apr 25, 2023

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

@kytta
Copy link
Author

kytta commented Apr 25, 2023

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

@tonsky
Copy link
Owner

tonsky commented Apr 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants