Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.
Possibility to set a default folder path to include when creating a new project
One of the things I always do when creating a new project is adding a new folder to the project with the following path "../". Since I save the sublime project files in the "sublime" folder (contained inside the main project folder), this will effectively include the main folder of the project, located one path before the sublime folder, and allows me to change the project folder url at will if needed.
A setting for specifying a path to be included automatically on each new project like this (perhaps with regex or custom variables support) would be awesome.
Auto-Expand folders that contain one subfolder
Example: You've got a project with this code layout:
[project]/src/main/java/com/company/[project]/(actual code lives here)
You've got to click src, main, java, com, company, project to jump in to the place where your code lives. A few clicks could be saved if these would auto-expand.
Posibility to combine parsers.
I tell HTML parser by some definition (as grammar rules?) to use CSS parser inside the <style> tag.
Then different syntax highlighting would work for specific sections. CSS highlighting in style element inside HTML. XML inside javascript string, etc...
Openning two files with the same name but in different path
When I open two files with the same name, but in different path, Sublime Text 2.0.2 (OS : Windows XP) crash. One of the file is in an openned folder on one window, the other is in another one, I open the second window with "Ctrl + Upcase + N".
To get back Sublime Text, I have to delete the "Auto Save Session.sublime_session" file in "Data/Settings/".
2.0: Pristine packages not getting extracted as they should
With 2.0 and build 2111 when I delete all packages from the %APPDATA%\Sublime Text 2\Packages directory (except User) I expect ST2 to, like in previous builds, repopulate the Packages directory from the Pristine Packages directory. This goes wrong now, I get:
"Error loading syntax file "Packages/Text/Plain text.tmLanguage": Error parsing plist xml: Failed to open file In file "Packages/Text/Plain text.tmLanguage"
And nothing in Packages gets repopulated from Pristine Packages. Even if you extract the contents from Text.sublime-package to Packages\Text ST2 does not extract the rest of the Pristine Packages to Packages. A major regression from previous versions/builds.
If you remove both Packages and Pristine Packages and start ST2 it does populate Pristine Packages and then Packages.
Python: add scope entity.name.function.python for the actual function name in a function call
In the Python/Python.tmLanguage file, find this pattern:
<dict>and add a scope name for this pattern:
<key>begin</key>
<string>(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()</string>
<key>end</key>
<string>(?=\s*\()</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#dotted_name</string>
</dict>
</array>
</dict>
<key>name</key>
<string>entity.name.function.python</string>
foo(bar(baz))
Without the above change, you cannot match both "foo" and "bar" function names; you can either match "meta.function-call" which would match "foo" but would also include all the parameters (thus also "baz", which is not a function name), or you can match "meta.function-call - meta.function-call.parameters" which would match "foo" but exclude the "bar" function name.
API for checking resource files in current or other plugin.
I suggest that we should have API for checking resource files in current or other plugin is exist.
It is easy easy with os.path.isfile() when in ST2. But in ST3 the plugin may packed in a .sublime-package. Currently we only have find_resources() which is very limited (can only match file name part).
Maybe some API like:
sublime.resource_exists("Packages/<Plugin Name>/resources/name.ext")
Where is the source code for Clojure.tmBundle? It needs some updates.
Here are some things that the community is already aware of, but we don't seem to know how to share them back and get them pulled in:
1. It does not display a Clojure file which contains just a map, e.g. `{:one "the number one"}`
2. EDN support (would be solved largely by the point above). The current Clojure definition does not display EDN well, because it expects () to wrap the content. You can look at https://gist.github.com/MattDMo/8006695 for ideas.
3. The current version does not know about the threading macros: ->, ->>, some->, some->>, and so on.
4. It gets regexes wrong: http://stackoverflow.com/questions/20598642/fix-su...
5. Perhaps it should treat commas as whitespace: https://gist.github.com/davidfstr/6408577
Vintage mode: 0 selected regions
When i create an empty tag in html (<div></div>), and put my cursor on the opening div tag, in command mode pressing "cit" should empty anything inside the tag and put cursor in it.
This action works when there is something in the tag, but in the case when its empty, my cursor just disappears and in the bottom status bar i get info "0 selected regions", and i can get cursor back on the editor only if i manually click on it, no other way. This functionality in Vim works fine, so i guess it's ST3 related bug. Is there maybe a way to fix it ? Thanks.
Linux: Trigger sftp mounting when you open a project
Kundesupport af UserEcho