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

+2

Closing a tab will cause multiple file highlights in the sidebar

Austin Cargol 13 years ago updated 13 years ago 0
When you close a tab, it will remain highlighted. If you have other tabs open, and the editor switches to that file when you close a tab, both files will be highlighted in the sidebar, this will continue as long as you have files to fall back on as you close tabs.
+2

auto_match_enabled in OSX does not work with "U.S. International - PC" input source

Luiz Gustavo 13 years ago updated by Victor Cinaglia 13 years ago 1
When some text is selected, and I put a single or double quote, the text disappears, when using the US International - PC input source on OSX.
+2
Completed

The possibility to apply a macro until the end of the file or for N times

esnip 13 years ago updated by Jon Skinner 12 years ago 3
We can save a macro and then run it how many times we want, but we have to do it manually, it would be nice if we could use the macro until the end of the file or for N times.


Answer
Jon Skinner 13 years ago
Use multiple selections to do this: e.g., Ctrl/Cmd+A, Ctrl/Cmd+Shift+L, and then run the macro
+2

Reify the project file

Filipe Cabecinhas 13 years ago updated 13 years ago 0
Please reify the project file and allow us to access it using the API.

That way, it would be easy to store per-project plugin settings (which, as far as I can tell, only seems to be possible if we try to access the view's settings), and it would allow a plugin to search for stuff only inside the project.

Even if it's just a window.active_project_dictionary() that returns the dictionary representing the JSON in the project-settings file.

To support relative directories in the project, it would also be useful to know in which directory the project file is located, otherwise relative paths would be useless.

Currently the API has no mention of project stuff and using projects and project-related stuff is something close to voodoo (yes, there is some user documentation, but no developer documentation).
+2

Bug is snippets

Guido Governatori 13 years ago updated by Roman Komarov 12 years ago 1
In the following snippet I cannot move the $0 placeholder. 

<snippet>
<content><![CDATA[_${1/(.{2,})|./(?1:{)/}$1${1/(.{2,})|./(?1:})/}$0]]>
</content>
<tabTrigger>_</tabTrigger>
<scope>text.tex.latex</scope>
<description>LaTeX superscript (exp)</description>
</snippet>

The idea of the snippet is to insert a subscript in LaTeX and to had curly brackets when there are more than 2 characters. $0 moves outside the brackets or "disable" the snippet (for a single character). However, it does not move the caret outside the brackets. 
+2

Undoing indentation conversion doesn't reset indent mode

gotdelta 13 years ago 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 years ago updated by FichteFoll 12 years ago 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 years ago updated 13 years ago 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 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.