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

+2

Undoing indentation conversion doesn't reset indent mode

gotdelta 14 year бұрын 0
When you convert a file from tabs to spaces or from spaces to tabs, the "Indent using spaces" option is changed accordingly. If you undo the conversion, the "indent using spaces" option doesn't change, causing any future indentation to be incorrect.
+2

shortcut cmd+[ on german OS X keyboard does not work

Timo Dörr 12 year бұрын updated by FichteFoll 12 year бұрын 3

On german mac keyboards (Macbooks up to latest model), the [ character is done using "opt + 5" (and the ] character is opt + 6).Trying to do the Unindent shortcut in sublime with CMD is then "CMD + OPT + 5", which will switch to a 4-window grid pattern but not unindent. Indenting with CMD + OPT + 6 works, however.


My suggestion: move the alt+cmd+5 shortcut for 4-window layout to cmd+opt+4  on germany keyboard layouts. Indenting is far more important than window layouting.

+2

CLI flag to open sublime in full screen mode (OSX)

Jonathan D. Johnson 13 year бұрын жаңартылды 13 year бұрын 0
Possibly a subl -f to open the editor in fullscreen mode from CLI.
+2

“Wrap paragraph at X characters”—weird behaviour

Róbert Kohányi 13 year бұрын updated by Piotr Kalinowski 12 year бұрын 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 year бұрын 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 12 year бұрын 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 year бұрын 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 year бұрын updated by hced 13 year бұрын 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 year бұрын жаңартылды 13 year бұрын 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 year бұрын updated by an solas 9 year бұрын 1
The ability to move files and directories between other directories in a project by dragging and dropping with the mouse.