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
4
votes
2 answers

PEP8 E128: can't figure out why a line is being flagged

I'm using Sublime + Anaconda which has a built-in PyLint feature. I can't figure out why the pars_f_name) line in the following block: else: # Get parameters file name from path. pars_f_name =…
Gabriel
  • 40,504
  • 73
  • 230
  • 404
4
votes
1 answer

How to pass args to an instance of sublime_plugin.WindowCommand?

I create a plug-in for sublime text 3, the designed Command Palette.sublime-commands is as follows: [ { "caption": "Function 1", "args": {parameter:"y"}, "command": "generalfunc" }, { "caption": "Function 2", "args":…
divinites
  • 109
  • 4
4
votes
5 answers

launch sublime text 3 in terminal with zsh

I recently purchased a new MacBook and I am trying to re-configure my system. The app is inside the Applications folder as 'Sublime Text.app' I have edited the sublime.plugin.zsh file via other advice I found online to 'Sublime Text 3.app' as well…
Ryan Waits
  • 197
  • 1
  • 5
  • 18
4
votes
1 answer

How to enable brackethighlighter plugin in sublime text 3?

I am using sublime text 3 build 3059 , brackethighlighter plugin is installed but not working how to make it work ? i tried several solutions but no effect. here is screenshot:
user3576548
  • 69
  • 1
  • 1
  • 3
4
votes
1 answer

Sublimerge: 'Merge: left to right' grayed out, but 'Merge all: left to right' available

I'm using Sublime Text 3 with Sublimerge to compare files. I'm comparing files with the clipboard and I want to copy differences from left to right. I can see in the Sublimerge context menu that Merge:Left to right is unavailable/grayed out. However…
Fisu
  • 3,294
  • 9
  • 39
  • 61
4
votes
1 answer

Disabling the last tab cursor movement in a Sublime Text snippet

I'm looking for a way to disable the last tab cursor movement in a Sublime Text snippet. For clarity I'm referring to the last press of the tab key that brings you to the end of the snippet. In the below example, with '|n' representing each…
4
votes
1 answer

Sublime Text plugin API: how to get list of files in project?

I'm writing a plugin for Sublime Text 2/3 that should open multiple files which names contain a certain string. How could I get a list of the files in the project? I can't find any related API function in the docs. I can do it with Python's os.walk…
Anton Melnikov
  • 1,048
  • 7
  • 21
4
votes
2 answers

Ways to organize Settings in Sublime Text plugin

Perhaps it is another round of "static vs instance" but I am trying to be devil in details. Note that I am fairly new to Python and plugin development. Some plugins use the following code: s = sublime.load_settings(__name__ +…
Igor Gilyazov
  • 777
  • 1
  • 6
  • 14
4
votes
1 answer

Executing an external program in the path from Sublime Text

I'm trying to write a plugin for Sublime which will read the text of the current line, execute that as a shell command, and place the output of the command into the editor. This is what I have so far: import sublime, sublime_plugin, os,…
Benjamin Lindley
  • 101,917
  • 9
  • 204
  • 274
4
votes
3 answers

syntax highlight (.tmLanguage) in Sublime Text 3 for packages

I work on this plugin Syntax highlight does not work with Sublime Text 3 when plugin is installed using package control. Error loading syntax file "Sublime Text 3/Installed Packages/robot.tmLanguage": Unable to open Sublime Text 3/Installed…
3
votes
1 answer

How to use IntelliJ's keymap for SublimeText 3

I'm very used to IntelliJ IDEA's family keybinding (PyCharm, WebStorm, RubyMine...). How can I configure Sumblime Text 3 to use those shortcuts? I've been googling and I can't find anything! But I don't think I'm the only one needing this. Thank you…
3
votes
0 answers

Trouble installing hsdev on windows to use SublimeHaskell with SublimeText

I have been trying to install the SublimeHaskell package for SublimeText and every time I open SublimeText I get a popup error message saying: Backend configuration: "Local hsdev" Incompatible hsdev, detected version 0.0.0.0 Version should be >=…
3
votes
1 answer

Sublime Text 3 - ?send commands to sublime console

I would like to extend Sublime functionality which would allow me to send text from any application to active Sublime Text window. I realized it is possible to add text from Sublime Console with the following command: view.run_command("insert",…
flyeris
  • 129
  • 1
  • 7
3
votes
2 answers

How to autocomplete HTML tags in Sublime Text 3?

I need to auto complete HTML tags in Sublime Text 3. For instance: When I am typing

I should get

|

Note: The pipe means the position of cursor. And auto complete should be Without TAB Note: This question may have been…

xN77
  • 65
  • 1
  • 1
  • 10
3
votes
2 answers

Sublime Text 3 - Change the background color of the selected line

I use the Material Theme in my Sublime Text installation. In the column where the line number is displayed, I would like to change the background color. example: I searched the internet for a way to change this color, but I did not find anything…
Dan Sigolo
  • 55
  • 1
  • 6