Questions tagged [sublime-text-plugin]

Sublime Text is a multi-language, multi-platform code editor with a Python-based plugin API. Use this tag for questions relating to Sublime Text plugin programming.

Sublime Text is a multi-language, multi-platform code editor with a Python-based plugin API. Use this tag for questions relating to Sublime Text plugin programming.

768 questions
0
votes
1 answer

Sublime Text API event when tmLanguage file is

Is there an event that I can hook into for when a tmLanguage file is used on the current file opened in the Sublime Text Plugin API? I have this project https://github.com/samholmes/EJS.tmLanguage and I have this issue…
Sam
  • 6,414
  • 11
  • 46
  • 61
0
votes
1 answer

Sublime Text 2 Terminal plugin

I installed the plugin Sublime Terminal in Sublime Text 2. The shortcut to open the terminal in the correct folder is CTRL+SHIFT+ALT+T. When I press the shortcut keys then Windows Powershell is opened. Can I configure this plugin so it opens PuTTy…
Ozkan
  • 3,880
  • 9
  • 47
  • 78
0
votes
1 answer

Sublime Snippet Regex Replacement

I've recently been creating quite a few Sublime Text 3 plugins/snippets/etc. to automate repetitive tasks. The current one I am stuck on uses regex in a snippet to get my default skeleton for a new function. Ideally, I would like the snippet would…
nerdwaller
  • 1,813
  • 1
  • 18
  • 19
0
votes
1 answer

Can I have Sublime Text automatically run another command after Sublime SFTP plugin does upload?

Can I have Sublime Text automatically run another command after Sublime SFTP plugin performs an upload? Maybe it could trigger a terminal command or system service (that I set up using OSX's Automator)? This is what I am specifically trying to…
Jesse Leite
  • 6,581
  • 3
  • 18
  • 17
0
votes
1 answer

Auto complete css classes or id's in HTML sublime text 2

I am trying to get Sublime Text 2 to auto complete from a linked (open or not) css file, but it will not display any class or id's. (I've also tried other packages "Anyword Completion", "All Autocomplete", "SublimeCodeIntell" with no success) i.e.…
user2202463
  • 135
  • 1
  • 2
  • 12
0
votes
2 answers

Does a Sublime Text plugin exist that makes creating Ruby classes and methods faster?

Is there a Sublime Text plugin for Ruby that, after I type class/def something + Enter, will automatically insert end and place the curser in the class/method? For example, typing def initialize(args) + Enter would result in: def initialize(args) …
ben
  • 29,229
  • 42
  • 124
  • 179
0
votes
0 answers

Bind plugin command to Build System?

I am trying to do a build system with advanced commands. My build command needed project specific settings, so as I didn't found how to load a project setting in a build command, I wrote a plugin to generate my command, but for now I am only able to…
sigz
  • 89
  • 1
  • 8
0
votes
1 answer

Why is autofixr for sublime not doing it's full job?

I recently downloaded sublime text 3 along with autoPrefixr. I got node.js and made sure it is in the $PATH. I restarted sublime text, yet when i try to run autoPrefixr, it only adds like 10 lines of code to my 150 lines of css. I know it's not…
user2489995
  • 39
  • 2
  • 9
0
votes
0 answers

Sublime Text 2 (OSX): Creating a plugin to open current view in a browser

This explains my issue very well: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=8513 Running the following command in python interactive terminal works, but not when added as a sublime text 2 plugin: import…
Mazyod
  • 22,319
  • 10
  • 92
  • 157
0
votes
1 answer

Sublime Text 2 - open file at specific url address

When I'm editing an html file in Sublime Text 2, I'd like to open it in Chrome to view it. Ideally, I'd perform a keyboard shortcut to do this. I've created a custom 'Chrome' build file for this and it opens the file in Chrome upon each save of the…
Scott
  • 1,862
  • 1
  • 33
  • 53
-1
votes
1 answer

How do I set up comment highlighting in CSS?

(https://i.stack.imgur.com/2jAFj.png) A comment that starts with @ (https://i.stack.imgur.com/Zri42.png) You need to highlight it in green, like here How to do it? Preferably through a custom plugin.
kazarin0v
  • 11
  • 1
-1
votes
1 answer

How do I use Virtual Environments with SublimeREPL?

I am a beginner to coding in general and I just found out that we could create virtual environments and was soon disappointed to see that there was no tutorial or answer anywhere for a Windows user and the only one I found was THIS. Which kinda…
-1
votes
2 answers

Cant import sublime_plugin

I cant import sublime_plugin. This code worked yesterday: import sublime_plugin But when i came back today it doesn't work. My cmd.py file is inside Sublime Text 3\Packages\CMD. It gives me a ModuleNotFoundError. I use sublime text 3 and python 3.…
sputnick567
  • 324
  • 5
  • 12
-1
votes
1 answer

What am I doing wrong? Not sure why this error keeps popping up

[Errno 2] No such file or directory: 'mxmlc' [cmd: ['mxmlc', '', '-library-path+=/libs', '-output', '/bin/.swf', '-debug=false', '-static-link-runtime-shared-libraries=true']] [dir: /Users/user/go/src/github.com/drk1wi/Modlishka/plugin] [path:…
DatKid
  • 1
  • 2
-1
votes
1 answer

Is it possible to add a global X11 binding via/to Sublime Text 3?

I would want to add a global X11 binding, preferably via ST3 configuration, that when activated, would: move the focus to a ST3 window and view, this would also involve switching to the right virtual desktop, invoke a sublime command (a text…
psprint
  • 349
  • 1
  • 10