ColorSchemeEditor icon indicating copy to clipboard operation
ColorSchemeEditor copied to clipboard

The plugin is also watching the tmTheme file that was opened

Open cdes opened this issue 9 years ago • 6 comments

I can't edit the tmTheme file because the plugin is watching it. Whenever I click on something to edit, it will go looking for its scope.

cdes avatar Aug 21 '16 05:08 cdes

Same here. Did you ever figure it out?

lozeone avatar Dec 25 '16 08:12 lozeone

@lozeone Kind of. You have to enable & disable the plugin with keeping another copy of your scheme file open. It's a hassle to work with.

Do this: Tools > Developer > New Plugin:

import sublime, sublime_plugin
class ScopeToClipboardCommand(sublime_plugin.TextCommand):
  def run(self, edit):
    sublime.set_clipboard(self.view.scope_name(self.view.sel()[0].b))

Preferences > Key Bindings: [{ "keys": ["shift+alt+command+p"], "command": "scope_to_clipboard" }]

Now, when you select something, just click shift+alt+command+p and you'll get the scope in your clipboard. Open your theme file and look for it.

cdes avatar Dec 25 '16 09:12 cdes

@lozeone @cdes @biomechanique @LeonardoGentile @Kristinita @hellolake This plugin became finally usable. I fixed the bug described in this issue. The tmTheme is no longer watched. No annoying jumping around inside that file anymore.

I also did a major clean up of the code.

@bobef Now needs to merge and release. At best together with the other still open pull request by @TheOnlyRew

Sublime's community would rejoice! :+1:

pykong avatar Jul 22 '17 19:07 pykong

No reaction from the author as of this day. I have even contacted him via the email address stated under his profile. Also offered to maintain the project if he no longer wants to do it himself. The repository does not even include a license, so it is not clear whether we are free to just provide an independent fork to PackageControl without the author's agreement.

pykong avatar Jul 25 '17 21:07 pykong

Still no response? This plugin would greatly help me customize ST 3.

justnealpatel avatar Jul 27 '17 23:07 justnealpatel

@justnealpatel The author is entirely unresponsive. :-1: Yet, you can find my fork here: https://github.com/bfelder/ColorSchemeEditor

I not only fixed the file jump, but the color scheme now gets automatically reloaded, which saves you from doing it manually after each modification.

You may also try SchemeEditor by @facelessuser

pykong avatar Jul 28 '17 07:07 pykong