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

+2

un-indented line after closing php tag

cresus18 vor 13 Jahren aktualisiert von Alex van der Vegt vor 12 Jahren 3
I have noticed a new bug introduced with the latest build 2181 which is rather annoying.

Suppose you were to type some PHP interlaced in some HTML, with some levels of indentation, as follows:

<div clas="level-1">
    <div class="level-2">
        <?php if(true): ?>
        <p>true</p>
        <?php elseif(false): ?>
        <p>false</p>
        <?php else: ?>
        <p>???</p>
        <?php endif; ?>
    </div>
</div>

When you close the PHP after 'elseif', 'else', or 'endif', it un-indent the line automatically by removing one tab.

This doesn't happen for the 'if', but also happens when using 'endforeach' and endwhile', and probably other similar PHP condition keywords.

This bug doesn't occur if you were to use curly brackets '{ }' instead of semi-colons ':'.
+2

This is a really nice setup so far, a more functional search option would be appreciate, something like editpad pro. The only major con i have noticed is on my remote desktop at work the application runs extremely slow.

Protocol-X vor 13 Jahren aktualisiert vor 13 Jahren 0
This is a really nice setup so far, a more functional search option would be appreciate, something like editpad pro.  The only major con i have noticed is on my remote desktop at work the application runs extremely slow.
+2

Open Containing Folder error when directory path contains comma

c kent vor 12 Jahren 0

If the directory path of an open file contains a comma Sublime Text 2 will throw up an error when the 'Open Containing Folder...' context menu item is selected.


Eg:


E:\Web Dev, Sites\Example Folder\My File.html

+2

Start Sublime with wildcards to load multiple files at once

Marc Scheuner vor 13 Jahren aktualisiert von clksucat vor 11 Jahren 3
I like Sublime - a lot - but the fact it doesn't support printing, nor does it support starting the editor with wildcards to e.g. load all *.html files in a directory is something I truly miss - A LOT!!

Any hope that starting Sublime with wildcards will some day actually load all those matching files in the directory??
+2

Space characters after a non-ASCII Unicode character do not display.

Dan Palmer vor 13 Jahren 0
When a space character appears in text after a Unicode character that is not in the direct ASCII subset, the space is not rendered or even present it appears. When moving the cursor and deleting text, it appears to not exist.

The problem has been confirmed by opening the same files in TextMate where they are displayed correctly.

Thanks to @elliottcable for helping to work out exactly what was going wrong.
+2

Drag and Drop Text Copy/Clone

Brian Kim vor 12 Jahren aktualisiert von Tim Gummer vor 11 Jahren 3
I see that drag and drop to move text is now supported in the nightly build (thanks!), but I still would like to see a feature I liked in TextWrangler/BBEdit -- hold down option/alt while dragging to copy/clone the dragged text, rather than move it.
+2

Expand side bar on hover

Vince Zhao vor 11 Jahren aktualisiert von Jon vor 8 Jahren 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 vor 13 Jahren aktualisiert von Jon Skinner vor 12 Jahren 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]


Antwort
Jon Skinner vor 13 Jahren
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 vor 11 Jahren 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 vor 13 Jahren 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.