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

+129

Nested syntax highlighting

Joel Thornton il y a 13 ans mis à jour par Trevor Allen il y a 11 ans 10
Support nested syntax highlighting.

Sublime Text 2 understands syntax in a manner that should make nested syntax highlighting possible.

Within a certain syntax scope, e.g. string.quoted.double.java, support the creation of rules by the user which will cause a syntax-mode switch for the contents of that text's scope.

For example, we might create a rule: when in string.quoted.double.java, if the contained text matches /^SELECT/, apply .SQL syntax highlighting to that text instead.

A set of reasonable default rules could be assembled, e.g. for detecting stringified HTML and SQL in many languages, for Javascript within HTML <script> tags, etc. Allow toggling of these rules with a new View menu item "Nested syntax highlighting".

This could also be used to support per-file syntax highlighting in the find-in-all-files result buffer.

Some additional rule/configuration may be required to handle comprehension of string concatenation which varies by language, e.g. "some" + "thing" and multiline concatenations. Sublime would need to apply a nexted syntax-mode to all the parts of such a string whenever the (whole) string matches a rule.

The rules' criteria should support arbitrary python for cases which don't match a regex well; that code should be able to examine the parent scopes' text to make its assessment (e.g. examining a string variable's declared name in one's code to determine the string's syntax).
 
In a given file the user should be able to arbitrarily change the syntax-mode of any individual syntax-scope in any buffer, through the right click context menu or other method.
+126
Terminé

Adaptive Goto File/Anything result list

Stian Grytøyr il y a 13 ans mis à jour par Jon Skinner il y a 12 ans 8
Make the default result list in Goto File/Anything (before you have typed anything) ordered by when you last opened the file, so that the previous file you worked on is at the top, the file you opened before that second etc. This would make keyboard based file navigation much more efficient, imho.
Solution
Jon Skinner il y a 12 ans
This was added in 2126
+126

Syncing settings files and plugins list with gist.github.com

Vladimir Starkov il y a 12 ans mis à jour par Shawn McElroy il y a 12 ans 1

Syncing settings files and plugins list with Gist


This feature will provide possibility to sync your settings' files and plugins-list.


I propose to use Gist to synchronize all the stuff.


http://dabblet.com/ give me a cue to use Gist to store text blocks for using from different computers.


Sync work is including several steps (method's logic was taken form google chrome sync):

  1. You provide your github accounts info (mail and password).
  2. Sublime Text 2 (ST2) connects to Gist and downloads all settings and full-detailed list of plugins used by you (list of downloaded, installed, enabled, disabled plugins).
  3. ST2 overrides your current settings (settings used before sync) with settings from Gist, then adds to syncing setting non-conflictable sections of code.
  4. After applying syncing to your current config settings will be sent to Gist again to sync re-formed settings.
  5. Syncing list of plugins is similar to syncing settings.


Note #1: ST2 should provide github's account data hiding (not posting this section of config) from posting to Gist

Note #2: http://developer.github.com/v3/gists/ Gits api can help to bring this feature to life. 

+126

Public the "Open Files" side bar (Panel) API, so plugins like function list side bar made possible

singw il y a 12 ans mis à jour par Eesger Toering il y a 11 ans 2
Public the "Open Files" side bar (Panel) API, so plugins like function list side bar made possible.
+119
Terminé

Add an OSX filetype registration (and icon) for .sublime-project files

Russell Keith-Magee il y a 13 ans mis à jour par Jon Skinner il y a 12 ans 2
This would make it easier to open existing ST2 projects using the Finder.
Solution
Jon Skinner il y a 12 ans
This was added in 2165
+118

Is it possible to Show all characters (spaces, TABs, CR, LF, etc.)

ronj il y a 12 ans mis à jour par NormieKrabz il y a 6 ans 19
Is there a way to tell Sublime Text to display all Characters?

In Notepad++, clicking View > Show Symbol > Show All Characters produces the following:
  • Spaces are materialized with dots
  • TABs are materialized with right arrows
  • CR/LFs are displayed with CR/LF icons 
  • Probably more cases that I'm not aware of

Mandatory screenshot:

Image 117


Is there a way to replicate this behavior? I am currently working with big painful CSV files (Excel or CSVEasy are not options), and seeing all the characters is invaluable here.


Thanks for your help.

+117

Support "unbinding" of keys

Lorin Hochstein il y a 12 ans mis à jour par tukusejssirs il y a 5 ans 5
If the user has a global keyboard shortcut defined that conflicts with a Sublime Text default binding, then Sublime Text will capture the keyboard shortcut. Currently, you need to edit the global key bindings file to disable these default shortcuts.

Allow the user to "unbind" a default key binding in the user key bindings file.

+114

Support for xdebug breakpoints, or a way to add support via plugin

Luke Scott il y a 13 ans mis à jour par Elite9 il y a 12 ans 17

Would be awesome to be able to debug PHP code within Sublime Text. xdebug provides breakpoint support. Basically need a way to place breakpoints, highlight the line, etc...


So either built in support for xdebug, or the means for a plugin to respond to placed breakpoints and display debug data.

+109
Terminé

Expand/collapse project folders by double-clicking on the folder name

Greg Hines il y a 13 ans mis à jour par Jon Skinner il y a 12 ans 4
Currently, one can only expand or collapse a folder by clicking on the arrow to the left of its name. This presents a very small click target. Being able to double-click anywhere on the folder name would be a massive usability improvement for navigating these trees.
Solution
Jon Skinner il y a 12 ans
Current builds will expand or collapse a folder on a single click, clicking on the disclosure button is no longer required