FAQ Database Discussion Community


Coda like “CSS Selector List” for sublime

ide,css-selectors,sublimetext2,sublimetext3,sublime-text-plugin
Coda looks like an effective text editor however I am on Windows. The splash page for Coda has an animated gif/iframe that shows off Coda, there is a panel that slides out from the right, listing all of the CSS selectors used in order. Does Sublime offer said functionality in...

custom keybinding on find and Reg replace in sublime text?

sublimetext2,sublimetext3
Am thinking whether it's achievable to make shortcut key-bindings on user sublime key-map, so that one-key-triggered "find reg expression and replace-all" if can assign custom keybinding will save a lot of work. For example can be applied to make below answer into shortcut: Sublime Text 2: How to delete blank/empty...

How to search multiple files of specific file type within Sublime Text 3

sublimetext2,sublimetext,sublimetext3
I would like to search for a string within all *.php files in a certain directory (and its sub-directories) using the Shift + Ctrl + F search dialog. My guess was to set the search location to: c:\example\*.php but that gives an error: Unable to open c:\example\*.php Is there a...

Sublimetext2 replace multiple words with multiple words

sublimetext2
I am new at Sublime. I have a XML file, in this xml file you can find hundreds of rows with the following structure: ... <property name="caption" value="A"/> ... <property name="caption" value="xyz"/> ... How to select all values ("A","xyz") of the attribute "value" and replace those strings with some other...

Comment last/first line of file in Sublime Text 2

sublimetext2
I would like to have a key shortcut that comments out the first and last three lines of a file. How can I achieve that? Thanks....

Sublime - put # at the start of a line rather the start of the code when comment

python,sublimetext2,sublimetext,sublimetext3
When inserting a comment into Python via super+/ , it puts the # at the start of the code, like this: I want to put the # at the start of a line, like this: Are there any settings that allow me to do this?...

How do I create a key-value PHP array/JS object from two blocks of lines in Sublime Text?

sublimetext2
So I've got two separate blocks (on the same document), one with keys: one two three Another one with values: First Second Third And I want to join them into a PHP array: $arr = [ 'one' => 'First', 'two' => 'Second', 'three' => 'Third', ], Or a Javascript/JSON object...

How to create typing shortcuts in Sublime Text 2?

sublimetext2
I am back to using Sublime Text 2 after some time and I noticed that I had made shortcuts to type certain expressions faster. For example, in Java, the common System.out.println() is immediately suggested as the first choice after typing pr in the editor since pr was the trigger that...

Transpose of a row vector in Octave causing problems with string escape character

sublimetext2,octave
In Sublime, I'm trying to take the transpose of a row vector in an Octave file as such: y = [4, 5, 6]; y_transpose = y'; But whenever I try to run this in Octave, it acts as if introduction of the transpose operator (the ') is the beginning of...

sublime text 2 word wrap setting doesn't work

sublimetext2,sublimetext,sublimetext3,sublime-text-plugin
I put this preference.sublime-settings, { "ignored_packages": [ "Vintage" ] "word_wrap": true } But the error comes out like this when I save it: Error trying to parse settings: Unexpected character, expected a comma or closing bracket in ~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings:7:2 what's wrong with this?...

Sublime Text 2 - Show long line into several

sublimetext2
I have a really long line in my HTML code I used to see on several lines in Sublime Text (marked as one in the code). But this morning, when I opened ST, this line became one line (in the code && in ST). It's like there isn't anymore "wall"...

Regular expression substitution in sublime text

regex,string,sublimetext2,sublimetext
I have a lot of strings to edit and replace with the support of regular expression. My strings are like: 'word1 'word2 word3' 'axxx' 'bx bxxxxx' and so on. What I need to do is selecting the last part of the line and replicate it again, so basically what I...

use Eclipse to edit source code file on virtual machine

eclipse,debugging,sublimetext2,virtual-machine,samba
Currently I'm using a virtual machine (VM) environment on my laptop (Mac) for project development (i.e. virtual machine is running in VirtualBox on my laptop). And I just use Samba to open code folder (on VM) and then I use SubLime (on my laptop) to connect to VM, so that...

Collapse all expanded sidebar folders in Sublime Text 2

sublimetext2,sublimetext
Is there a menu option or keyboard shortcut to collapse all expanded folders in the sidebar? It gets messy over there and seems like there should be a better way than closing them one by one.

Sublime Text 2 different indentations settings

sublimetext2,indentation
I want to configure my Sublime Text 2 to have two different types of indentations: 4 spaces for general use 2 spaces for my html pages I think it should be done by editing the settings, but I don't know what to write....

Sublime text: How to do sentence case (capitalize the first letter of a sentence)

sublimetext2,sublimetext,sublimetext3
I'm aware that there is Edit > Change Case menu. But there's no option for sentence case. How do I achieve this? Is this possible for regex to achieve this?...

Debugging broken Sublime Text 3 keyboard shortcuts

sublimetext2,sublimetext,sublimetext3
After installing a couple of Sublime Text packages, some of the previous keyboard shortcuts were broken. What's the best way to find the package which defines a keyboard shortcut?...

Sublimerge on SublimexText2 gives error /bin/sh: git: command not found Exit code: 127 on OSX 10.8.5

osx,git,path,sublimetext2
I installed Sublimerge on SublimeText2, it was working fine until it started giving the following error /bin/sh: git: command not found Exit code: 127 Git path on the computer has not been changed and git works as is. Not sure why then Sublimerge is unable to find the path. Thanks....

How to stop Sublime Text from showing ~ files on the folder menu?

sublimetext2,sublimetext,sublimetext3
Why is Sublime Text polluting my project view with these files: Gruntfile.js~ (not the Gruntfile, but a copy with a tilde at the end). How can I stop seeing these files in my project view?...

Sublime text sass build system: compressed with comments

css,wordpress,sass,sublimetext2,sublimetext
I have two sass build systems installed in my sublime text: sass and sass compressed. The problem is that sass compressed delete all my comments what is pretty bad for the native wordpress style because the first comment block is needed there. Is it possible to create a build system...

How do I prevent Sublime Text 3 from auto-indenting a line as a one off

sublimetext2,sublimetext,sublimetext3
When I'm editing HTML or CSS in Sublime Text 3 the lines auto-indent when I hit the [ENTER] key, which generally is very useful. On occasion I find myself wanting to paste a line of markup which is already indented, and this results in double indentation. Is there some other...

Java regex to match previous 2 lines of a pattern

java,regex,pattern-matching,sublimetext2
something Line One something Line two Last annotated on December 31, 2014 I don't care what is in between. Anything can go here. Any number of lines I don't care what is in between. Anything can go here. Any number of lines Something Line three something line four Last annotated...

Which operations in the Sublime Text 2 API are thread-safe?

multithreading,sublimetext2,sublimetext,python-multithreading,sublime-text-plugin
In the Sublime Text 3 API, all operations are threadsafe: Threading All API functions are thread-safe ... but in the Sublime Text 2 API, this is not the case. As I've personally learned to my displeasure, some operations will, in an unpredictable and OS-dependent way, fail when called from threads...

Sublime Bug with Regular Expressions

regex,sublimetext2,sublimetext
I'm trying to do a sublime regex search and replace with a backreference. Here's my data set: if(requestType.endsWith("CompleteMulti")) { if(requestType.endsWith("CompletePartial")) { if(requestType.endsWith("Unfulfillable")) { When I run the regular expression: ^.+"(\w+)".+$ with replace statement: $1 I get the following output: completemuLti completepaRtial unfulfillaBle As you can see the case of the...

White text in sublime text

colors,sublimetext2,sublimetext
I downloaded Sublime text from them website and my code still white, i don't know why. I unistalled and reinstalled it 3 times, tried to install themes packages etc i don't understand what is wrong. ...

Sublime Text 3 overwrites manually installed package in OSX

osx,sublimetext2,sublimetext3,sublime-text-plugin
Following instructions to manually install arduino IDE here Reason for manual installation is because package manager has an older version of the plugin (10 months). After placing it in ../Packages, I open ST3 and watch Finder. Initially, the folder extracted is named "Stino-new-stino". A folder is created at ../Packages/User/Stino with...

F# in SublimeText 2

f#,sublimetext2
I'm having some trouble running this F# in SublimeText 2. [<EntryPoint>] let main argv = printfn "Hello World" 0 When I run it I get the error: Files in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. 'namespace SomeNamespace.SubNamespace' or 'module SomeNamespace.SomeModule' The same code...

how to remove sublime editor from git

git,sublimetext2
I added sublime to the default git editor. But I got error msg like this: ubl -n -w: subl: command not found error: There was a problem with the editor 'subl -n -w'. I don't want to use sublime anymore, anyone knows how to remove sublime editor from git...

Jquery $(document).ready() sublime snippet not working

jquery,sublimetext2
I created a sublime snippet that spits out the jquery document ready function. When I start typing out the tab trigger in a javascript file, it appears in a popup, but when I hit enter or tab, no code appears. I tried restarting Sublime multiple times, but have had no...

How can I capture Sublime 2 build output when it it sometimes on one line, sometimes on two lines

regex,build,sublimetext2
Title is a little long, but that's the best way to phrase the question. I am using MivaScript as the programming language, so I am building all the tools to make it work in Sublime by hand. I have most everything working except the build system. My problem is that...

Mac Yosemite os variable works in bash Python interpreter, running the script in terminal, but not in Sublime Text 2 text editor

python,bash,sublimetext2,osx-yosemite
This is strange to me. I have set a variable in bash and exported it, like this: export EMAIL="[email protected]" I have used the command, "source ~/.bash_profile" to reset bash, and have even logged out and back in, and here's the issue: All is good when I do this in the...

Using Sublime Text 2 with Python 3 under Windows 8.1

python,python-3.x,plugins,sublimetext2
I am developing a plugin for sublime text 2 using python. As default, sublime text 2 uses python 2, but I'd like to switch to python 3. There are some hints on how to do that (also here on stackoverflow), but none of them seem to work for me. Maybe...

Sublime Text SFTP with SecurID authentication

sublimetext2,sftp,sublimetext3
Sublime Text's SFTP works perfect with my work flow. I develop on my local computer, compile it on remote host mapped using sublime SFTP. However, the new machine I'm working on uses SecurID for identification and Sublime's SFTP fails to connect. How do I solve this problem?...

How to exclude some directory during search(through ctrl+shift+f) in sublime 2?

python,sublimetext2,sublimetext3,sublimetext
I want to exclude some directory like .venv/lib/python2.7/ from the search result during the search for specific keyword, I don't want the result which come from the above directory, Suppose I want to search keyword "subtitle", I will press ctrl+shift+f then in Find : field I will write subtitle, but...

Regular Expression: Insert between two characters

regex,url,sublimetext2
My regular expression skills aren't great. I'm using Sublime Text and I want to replace everything between the first two slashes (/) with a different name. (This is for a URL flattening project.) IMG SRC="/testing/graphics/real.gif" ...

regular expression in sublime text 2 to match text

regex,sublimetext2
I have a string that looks like this: lonfksa.newsvine.com and I have tons of file that looks like this: http://ricambi.ru/avtomobilnie-novosti/lexus-gotovit-k-debiutu-obnovlenniy-rx http://www.kiwibox.com/hoytboar/blog/entry/121424391/modis-tshirt-tips-untuk-womens-clothing/ http://www.euro-rockradio.com/archives/category/interview http://lonfksa.newsvine.com/_news/2014/04/18/23538711-vampir-romantis-clothing...

Project wont reflect changes on localhost

git,apache,phpmyadmin,localhost,sublimetext2
I am developing for phpmyadmin. I have forked the repository and set it up on my local machine. However when i make changes to the code, it doesnt reflect on localhost. I am using Sublime Text and using git too. When i view the code using vim or opening it...

Where to find composer's global packages?

php,sublimetext2,composer-php,sublimetext
For a plugin for Sublime Text I was required to install a composer package globally. In order to do this I had to run the following command: composer global require "asm89/twig-lint" "@stable" The installation started running and a few seconds later the package was installed. Voila! Well, not really. Step...

Regular Expression Finding the Space before the Last word

regex,sublimetext2
I'm trying to find the space before the last word of a string. For example, for Bob Jane I would want to find the space right before Jane. I am trying to do a find and replace all to make that become a comma. Thus, the final result would be...

sublime text webgl autocomplete

javascript,autocomplete,sublimetext2,webgl,sublimetext
I want to get into WebGL, but the functionnames feel so strange. Is there any way of getting the WebGL functions into sublime text's autocomplete? If not, is there any way to get them into any other editor's autocomplete? Thank you!...

Adobe Brackets and running Ruby/Python programs

python,ruby,sublimetext2,adobe-brackets
so I have been trying out various text editors and IDE's recently to see what I like. I really like the web developer side of Brackets, which is what I think it was designed for, but was also messing around with some of the extensions for building and running Python/Ruby...

Sublime text: open containing folder with power shell

powershell,sublimetext2,sublimetext
I've found how to open a folder in explorer from sublime text 2, how can I open the folder with an arbitrary program, like Powershell? I'm not looking for Powershell commands, I'm looking for keyboard shortcuts/functions etc to open a fold in a sublime text instance in powershell....

Error when using Python 3, Sublime BeautifulSoup

python-3.x,beautifulsoup,sublimetext2
In short, here's my code: import requests from bs4 import BeautifulSoup import re request = requests.get("http://www.yellowpages.com/") soup = BeautifulSoup(request.content) print(soup.find_all("a")) Given the code above I'm getting the following error: [Decode error - output not utf-8] Does someone know wha's happening and how do I fix it? Cheers!...

Regex match a non-unique character in same string

regex,sublimetext2,textpad
Here is an example string. I have many more of these that I need to fix: "måde", "answer" => "råd"); In this string there are 2 instances of the character å. I want find a match for the å in råd using regex, while ignoring the the å in måde....

ElementTree errors, html files will not parse using Python/Sublime

python,html,parsing,sublimetext2
I am trying to parse a few thousand html files and dump the variables into a csv file (excel spreadsheet). I've come up against several roadblocks, but the first one is this: I can not get it to properly parse the file. Below is a brief explanation, the python code...

Regexp to match but don't capture middle part

sublimetext2,pcre
Im trying to create my own theme in Sublime Text 2 to highlight CSS syntax. All I have left is keyframes. @-webkit-keyframes spin { /* some rules */ } @-moz-keyframes colorize { /* some rules */ } @-ms-keyframes spin { /* some rules */ } @-o-keyframes spin { /* some...

sublime text 2 shows whole HTML code inside php file in single color?

sublimetext2,sublimetext
sublime text 2 shows all my HTML code inside index.php in single color. same for other php files that contains HTML code. there is no color coding very strange! is'nt. although files containing only php code are normal. i tried every theme and color scheme but same issue exists. ...

Sublime Text: keyboard shortcut to select a function and its content

ubuntu,sublimetext2,keyboard-shortcuts,sublimetext,sublimetext3
function whatever(){ var = a; return a; } Is there any shortcut to select all of the above code? I know Ctrl+Shift+M will select the content within the parenthesis....

Regex for any matches from a list of words not preceded by @

regex,hex,sublimetext2,keyword,keyword-argument
I inherited a front-end web project with a few dozen grossly disorganized Less pages. I need to track down stray colors and unify with a brand standard. My understanding of regex is fairly limited, but if I understand correctly, one or more might make my life a lot easier. I'm...

Arduino Sublime Text 2. I can compile but can't upload. Error “The system cannot find the file specified”

c++,upload,arduino,sublimetext2
I have seen several questions answered about similar problems, but none that completely solved my problem. I'm trying to upload a sketch in Arduino using Sublime Text 2. Initially had trouble compiling the file, which could resolve adding the ways: C:\WinAVR-20100110\avr\bin, C:\WinAVR-20100110\bin and C:\ WinAVR-20100110\utils\bin to the path. My problem...