Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.

+1

Possibility to set a default folder path to include when creating a new project

Jose Faeti 12 лет назад 0

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.

+1

Auto-Expand folders that contain one subfolder

Jordan Parker 11 лет назад обновлен Zack Jones 11 лет назад 1
When in a project, if a folder with only one other folder below it is expanded by the user, continue to expand down the chain until actual content is reached.

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.
+1

Posibility to combine parsers.

p4ul 12 лет назад 0

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...

+1

Openning two files with the same name but in different path

Célia Dehé 11 лет назад 0

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/".

+1

2.0: Pristine packages not getting extracted as they should

asmodai 12 лет назад 0

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.

+1

Python: add scope entity.name.function.python for the actual function name in a function call

lanzz 12 лет назад обновлен 12 лет назад 1

In the Python/Python.tmLanguage file, find this pattern:

<dict>
<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>
and add a scope name for this pattern:

<key>name</key>
<string>entity.name.function.python</string>
This would allow to highlight all function names inside a nested function call:
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.

+1

API for checking resource files in current or other plugin.

Xpol Wan 11 лет назад обновлен Examples 6 лет назад 2

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")


+1

Where is the source code for Clojure.tmBundle? It needs some updates.

David James 11 лет назад 0
The current Clojure.tmBundle could use some updating. Where is it / which version does Sublime pull in? How can I submit some suggestions and/or pull requests?

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
+1

Vintage mode: 0 selected regions

Kristijan Husak 11 лет назад 0
I'm using Vintage mode in Sublime Text 3, and i found one bug.
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.
+1

Linux: Trigger sftp mounting when you open a project

Scott Bowers 13 лет назад обновлен Shauna Gordon 12 лет назад 1
On linux, when you have folders added to a project over an ftp or sftp mount, sublime won't auto mount the volume if the mount isn't already mounted.

Most applications will trigger automatically mounting the volume, but sublime does not.  This means when sublime opens the project, all of your files are opened, but they are empty.  You then have to mount the volume, cycle through all of your tabs and reload each one.

Сервис поддержки клиентов работает на платформе UserEcho