Skip to content

Instantly share code, notes, and snippets.

@twolfson
Created October 3, 2014 04:47
Show Gist options
  • Save twolfson/01d1417521774109cc90 to your computer and use it in GitHub Desktop.
Save twolfson/01d1417521774109cc90 to your computer and use it in GitHub Desktop.
Gist for Sublime Text theme extender

As inspired by http://www.reddit.com/r/SublimeText/comments/2i3p7q/til_option_to_highlight_active_scope_guide_line/ and many desires before it, I would like to be able to extend of top of existing themes in Sublime Text. To remedy this, I am proposing the following plugin.

Commands

Theme Extender: Extend theme

Scrapes all installed themes, prompts user for theme to extend (starting with current at top), prompt user for theme name (default of 'Theme Extender - ' + current name), open blank page with comment explaining how to use.

Upon saving, copy theme, add new parameters, save to custom theme, and apply custom theme to user settings (if it hasn't been already).

Theme Extender: Modify extension

List all existing extensions by name (current first, else alphabetical), open existing extension.

Upon saving, take same action as create.

Theme Extender: Delete extension

List all existing extensions by name (current first, else alphabetical), give confirmation prompt to verify user wants to delete theme, revert to non-extended form or Monokai as default?

Theme Extender: Browse themes

Optional command

Scrapes all installed themes, prompts user to select theme to view, open theme file in read-only format. This would be practical when extending a new theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment