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

+2

“Wrap paragraph at X characters”—weird behaviour

Róbert Kohányi 13 years ago updated by Piotr Kalinowski 12 years ago 3
While editing XML I've noticed that wrapping text (a paragraph) inside any kind of tag is done erroneously.

I've create a pastebin to demonstrate the behaviour; it has four chunk of text:
  • Line 1: a single line of non-wrapped text
  • Line 3: the previous line wrapped with Alt+Q (working as intended)
  • Line 10: the same text that is on the first line, but between the tag tag
  • Line 12: the above text within the tags after pressing Alt+Q (notice the opening angled brackets)
I think this isn't supposed to work like this.

I've managed to track down which Python module does the wrapping (paragraph.py).

In the class WrapLinesCommand there is the line
line_prefix_pattern = re.compile("^\W+")
that if changed to
line_prefix_pattern = re.compile("^")

the problem (my problem at least) is solved.


Partially, because I've also noticed that the module doesn't try to wrap the selected text, but a paragraph instead. If I have tags nested into each other (say, 3 levels deep) and I select the text on the third level (which could possibly contain in-line tags) then everything gets wrapped up to the first level.


Is there a way to make wrapping work on selections rather than paragraphs?


I've used a vanilla 2165 build for the test, but I've checked that it worked like this since 2139 or so.


By the way, I couldn't measure the further implications of this change, so maybe it is plain rubbish.

+2

Movement across code structure

Jeffrey Yasskin 12 years ago 0

I'd appreciate an analogue to http://www.gnu.org/software/emacs/manual/html_node/emacs/Moving-by-Parens.html. For example, in C-like files, Ctrl-Alt-n and Ctrl-Alt-p move across braced or parenthesized regions, while Ctrl-Alt-u moves out a level of nesting. In HTML files, the same keystrokes move across the tag structure. As far as I can see, Sublime only has Ctrl-m, move_to{to: brackets}, which isn't quite enough.

+2

'subl -w' doesn't ever un-block when running under tmux on OS X

glyph 13 years ago 0
On my mac, I have $EDITOR set to 'subl -w'.
If I run my shell session under tmux, it opens the editor fine, but the command on the terminal never exits.  However, this works fine on a terminal by itself, and also under screen, so it could be a tmux bug.
+2

improvements to the "where" field of "find in files" form

lanzz 13 years ago 0
I have two feature requests for the "Where" field in the search:

1. Drag a folder from the project sidebar to the where field
2. Autocomplete suggestions when typing a folder name (similar to the search in the "goto anything" overlay)

At the moment, narrowing the search by folder is too cumbersome, I find myself searching in the whole project and filtering by eyeball all the time.
+2

The option in User File Preferences: "font_options": ["no_antialias"] in MacOSX seems to does not work.

kzolnowski 14 years ago updated by hced 14 years ago 1
I am trying set 'font_face' to 'Monaco' and 'font_size' to 10 and try turn off antialias do not work.
+2

A way to reset the "go to anything" index

isatis 13 years ago updated 13 years ago 3
I often open files with sublime text that don't belong to my current project.

Unfortunatly they get added to the project "go to anything" index and now I got plenty of useless files, and some files are need are not in there.

We should be able to clear and rebuild the index.
+2

Drag and drop file management in the sidebar

DanDineen 11 years ago updated by an solas 9 years ago 1
The ability to move files and directories between other directories in a project by dragging and dropping with the mouse. 
+2

OS X allow disabling font smoothing for dark background

12 years ago 0

Disabling font smoothing for high-DPI screens with dark backgrounds makes the fonts a lot less bold and arguably clearer. Textmate recently added that, calling CGContextSetShouldSmoothFonts(ctx, false).  It would be nice to be able to specify that in font_options.

+2

C++ comment syntax highlighting

Adam Bowen 14 years ago 0
Comments between a function argument list and function body are not correctly highlighted.

The following code illustrates the problem:

    void foo() // comment
    {
    }

"// comment" will not be highlighted.

Pertinent details:

Sublime Text 2 Alpha, Build 2027 (32 bit Linux)
Espresso Libre theme
C++ Syntax mode
Ubuntu 10.04
+2

Replace All with 10590 matches crashes Sublime Text 2

Geert V 13 years ago 0
When I try to replace all 10590 matches, Sublime Text 2.0.1 build 2217 crashes on OSX Lion and OSX Mountain Lion.