Last active
September 25, 2025 20:17
-
-
Save blunket/e041565ef50b925ea68f29eb495e4433 to your computer and use it in GitHub Desktop.
Sublime Text 3 - Toggle Vintage Mode Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sublime | |
| class ToggleVintageCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| settings = sublime.load_settings('Preferences.sublime-settings') | |
| ignored = settings.get("ignored_packages") | |
| if "Vintage" in ignored: | |
| ignored.remove("Vintage") | |
| else: | |
| ignored.append("Vintage") | |
| settings.set("ignored_packages", ignored) |
Author
@johnmapeson I apologize for the super late reply! When I wrote this plugin, I used both Windows and Fedora (Linux). I didn't test it on Mac. Funnily enough, while I do use macOS for work now, I unfortunately stopped using Sublime a few years ago.
With that said, this gist page got unexpectedly popular and seemingly continues to be useful to people, so I'd like to revise it if you found a solution. Did you ever figure it out? Maybe I'll take a stab at it if not.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Andrew! Which operating system you run Sublime Text on? The plugin has a strange bug on macOS, I cannot figure out why it happens. If I simply start Sublime Text without any tabs and press Control-Option-V twice, Sublime Text successfully turns Vintage on, but then refuses to turn it off. Here is my discussion with OdatNurd on Sublime Forum about this: https://forum.sublimetext.com/t/toggle-vintage-package/75477/5