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

+2

Expand side bar on hover

Vince Zhao fa 11 anys updated by Jon fa 8 anys 2

When trying to open a file from side bar, it's a good idea to expand that which allows me to view file full name, and shrink after I move my mouse away from that which gives me more space for editing.

+2
Not a bug

Crash right at startup on openSUSE 12.1 since build 2165

Duncan Mac-Vicar Prett fa 13 anys updated by Jon Skinner fa 12 anys 4
Sublime text would not start but crash. I am stuck in version 2139 as the "last working one" (released).

Backtrace posted at http://www.sublimetext.com/forum/viewtopic.php?f=3&t=4557&p=20648&hilit=crash#p20648

Cleaning up the config worked for 2165, but does not for 2172 (except for 32bit, where it starts with a clean config). Still in all cases it crashes when closing the application as well. All startup backtraces have the same first lines:

======= Backtrace: =========
/lib64/libc.so.6(+0x74c06)[0x7f5822dc1c06]
./sublime_text(_ZN12memory_arena5clearEv+0x20)[0x51bf70]
./sublime_text[0x759444]
./sublime_text(_ZN13SyntaxManager6reloadEv+0x7e1)[0x75a051]
./sublime_text(_ZN13SyntaxManager4initEP15settings_loaderP11menu_loader+0x25)[0x75baf5]
./sublime_text(_Z12skyline_initP9catalogueP14px_file_systemP15settings_loaderP11menu_loader+0xfd)[0x6a906d]


Answer
Jon Skinner fa 13 anys
This is a bug in glibc: http://sourceware.org/bugzilla/show_bug.cgi?id=1349
+2

cutting empty line does not overwrite clipboard

George Anderson fa 11 anys 0

Steps:

* put cursor on non-empty line

* cut

* move to empty line

* cut (this is usually for cleanup/code formatting)


What happens:

* the line on the clipboard that was cut first (i.e. the non-empty line) is no longer available to paste


What I'd like:

* when I paste, I'd like to get back the most recent non-empty line I cut (or copied for that matter), regardless of how many empty lines were cut in the meantime.


Justification:

There's no need for an empty line on the clipboard since it's trivial to create them as needed.


Thanks.

+2

Sub-pixel glyph positioning/anti-aliasing breaks box drawing characters

Oleg Oshmyan fa 13 anys 0

Enter multiple BOX DRAWINGS LIGHT HORIZONTAL (U+2500) characters in a row:

───────────────

They should visually form a single continuous horizontal line, but instead there are sub-pixel breaks between some of them.

+2

select across underscore or dash or special characters

Ryan Moore fa 12 anys updated by Joel Thornton fa 12 anys 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 fa 11 anys 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 fa 12 anys 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 fa 13 anys actualitzat fa 13 anys 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 fa 12 anys updated by aahlborg fa 11 anys 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 fa 12 anys 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