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

+2

select across underscore or dash or special characters

Ryan Moore 12 lat temu Ostatnio zmodyfikowane przez Joel Thornton 12 lat temu 1
I love being able to highlight a CSS Class name or piece of code and see it highlighted through the file to show / highlight every instance of that name / value. I'm new to sublime but used to Programmers Notepad where this is default.

trouble is in sublime if I select a value that has dashes or underscores it doesn't recognize it as one unit and then highlight the same values everywhere through the file.

for instance
sm-font

if i select just "sm" then that is highlighted through the document
if i select "sm-font" it does not

same with 
sm_font
XMP:sm_font

I figure (and am used to in other apps) that as long as there are no spaces, it highlights the full chunk of code/name/value
+2

Allow to paste a path into Open Folder dialog

Anton Averin 12 lat temu 0

I really like sublime, but opening folders just kills me - I have to navigate through a dialog into a folder each time, and there is no way to paste an absolute path to the folder I want to open.

Could we have an better Open Folder dialog, or at least an API console call that will allow to do that?

+2

Bug in Perl syntax detection

komodo 13 lat temu 0
The line:
 $title .= " File" if ( $title !~ / File/i );
causes all text in the source file after the tilde(~) to be considered a string.  I found this because I was searching for a subroutine that was after this line using Find in Files, and it was not coming up as a result. 
Below is the surrounding code, the offending code was on line 38316.

  #TTS 10991
  # leave the entered title, if one exists
  # fix blank/optional fields
  # if using the entered title, then don't tack on the number
  if(!defined $title || $title eq '') {
$title = $file_type;
$title .= " File" if ( $title !~ / File/i );
#TT 11054 fix: add the count, if not provided
#this should still fix 10991, where add file titles were being dropped
#AND should fix 11054 where dupliacte #counts were being added
if ($title !~ /#\d/) {
$title_cnt = &upload_file_get_title_count($file_type_cde,$ms_id,$ms_rev_no,$j_id);
$title .= " #$title_cnt";
} 
+2

API Idea: on_completion_selected

ebi 13 lat temu zaktualizowano 13 lat temu 0
It would be nice to have a companion event to the existing on_query_completions which is triggered when the user selects a completion from the list. 
This would enable plugin developers to add features like automatically adding an include or import statement to the buffer when the user selects a certain completion. 
I guess such behaviour could be implemented using on_modified events, but it would be quiet error prone and complicated.
+2

C pragmas syntax highlight bug

Péter Horváth 12 lat temu Ostatnio zmodyfikowane przez aahlborg 11 lat temu 1

If there is a string after the pragma with a comment between the quotation marks, all of the code after the closing quotation mark are highlighted as strings. with /* ... */ between the quotation marks


Code:

#pragma MESSAGES_COMMENT " /* Text 1234*/ "
int main()
{
  printf("Hello World");
  return 0;
}


Pictures

with /* ... */ between the quotation marks:

Image 182
without /* ... */ between the quotation marks:
Image 183
+2

Use same shortcut for Expand Selection to Tag as Expand Selection to Brackets

Leo Gallucci 12 lat temu 0

How can i write a keymap to re-use CTRL+SHIFT+M resolving ambiguity depending on the scope?


Instead of having these 2 shortcuts:

CTRL+SHIFT+M for Expand Selection to Brackets

CTRL+SHIFT+A for Expand Selection to Tag


I just want to have 1 shortcut that do one thing or the other depending on whether the scope is text.html.basic or any other

+2

Close Project should close window if other windows are open

Shauna Gordon 11 lat temu 0

I often have more than one project open at a time, each in their own window. When I close a project, the window stays open. This is great if it's the only window, but if there are other windows, it would be nice if the window would close. Since I know not everyone may want this, ideally it could be a configurable option.

+2

Remember what's folded

Griffin Smith 12 lat temu 0

Code folding is great, but whenever I do a git operation or anything external to the editor that changes the contents of the file, all the stuff that I've gone through and folded unfolds again. It would be really cool if ST2 saved what methods/classes/etc. were folded in the workspace. 

+2
Ukończony

Divisable window panes

Rhys Burnie 13 lat temu Ostatnio zmodyfikowane przez Jon Skinner 13 lat temu 0
One of the most enjoyable things about Eclipse and the family of Eclipse base IDEs is the ability to drag windows to cause them to split. There is also no limit to the amount you can split.

I know you can drag tabs out of sublime into a new window but this isn't really as useful as having the split panes in Eclipse.

It would be great if you take a look at that functionality if you havent already seen it.

Full screen + split panes for multiple files would ROCK!
Odpowiedź
Jon Skinner 13 lat temu
You can use the View/Layout menu to get split panes
+2

Non english characters in Vintage Command Mode

stratoukos 13 lat temu 0

When using an input source without Latin characters (e.g. Greek) Vintage command mode is unusable, since the commands are mapped to Latin characters. Vim has the same problem, but you can solve it by mapping every single Latin character to the Greek equivalent in the .vimrc (map a α; map b β; ...).


Since you can't do the same thing on Vintage mode, it should execute the appropriate command regardless of the input language, in the same vein that "cmd+φ" and "cmd+π" trigger the same action as "cmd+f" and "cmd+p".


Thanks.