+2

smart indent on new line after brackets

cresus18 vor 12 Jahren 0
Try typing the following then hit the Enter key to insert a new line:

$foo = substr_replace($bar, ' ON(', $pos, $length);

A bug makes your new line start with an extra indentation. If you remove the open bracket within the string in the function call, it will now work as expected.

(Sublime Text 2 build 2181)
+2

Execute selected code

Рябов Валерий vor 12 Jahren 0

It would be great to have opportunity building not a file, but execute only selected region of code. It may help to work with big SQL-scripts, for example.

+2

Scala code indents when there's an open parenthesis in a string

Simon Morgan vor 13 Jahren aktualisiert von Aleksandar Prokopec vor 12 Jahren 1
Create a new Scala file and enter the following:
println("(")

When you hit enter at the end of the line, the new line is indented when it shouldn't be.

+2

HTML perfect completion

alpha logic vor 12 Jahren 0

HTML perfect completion should work mainly in 3 stages:

1.tag completion (realized in Sublime Text 2);

2.attribute name completion (realized in Sublime Text 3, not tested yet);

3.attribute value completion.

Completion must start with tag completion (works perfectly in Sublime Text 2).

Tag completion must be followed by attribute name completion (not all the attributes, but only the specific attributes for a specific tag).

Attribute name completion must be followed by attribute value completion (not all the values, but only the specific values for a specific tag), with cursor placed between quotation marks "|".

+2

windows open folder refresh folder contents

Helly Hao vor 12 Jahren 0
as files or folders in the opend folder changed,it's nice to refresh the folder content by some order
+2

Autocomplete suggestions are not in expected order

Craig Campbell vor 13 Jahren aktualisiert vor 13 Jahren 0
+2

Mousemap bindings in menu

James Brooks vor 14 Jahren aktualisiert von .:. brainsik vor 13 Jahren 1
A menu item, like the key bindings would be nice so you can quickly change mouse bindings, as you can keys.
+2

Find and replace improvements: git grep and Vintage mode compatibility

Tom Scott vor 13 Jahren aktualisiert von Thomas Wright vor 12 Jahren 1
I think the "Find and Replace" panel could be improved in a few different ways:

  1. I would definitely like an option to use the `git grep` command as it's much faster to search through the entire project.
  2. Currently, one has to type in the absolute path of the folder to your project in the include filter, if you'd like to search just within a specific folder. Why is this necessary? Is there a way we could have an option to use a relative path? I've never needed to search an outside folder on my machine from within my current project.... 
  3. If it's not too difficult, I'd also like a Vintage mode shortcut for getting into and manipulating the find/replace panel. It would be awesome if `%s/../..` and `s/../..` would open and enter data into find/replace dialog, with the omitted "%" triggering the full path of the current file to be injected into the open files filter (middle input).
I really love this product, it's keeping me away from using MacVim/Vim entirely (which is nice, but missing some stuff I've grown quite fond of in Sublime), but there are some areas where it definitely could improve. I hope by my purchase, you guys will continue to have at least some funding to build this awesome editor, that I really enjoy using. Thanks!
+2

Improved Bookmarks

-9701 vor 12 Jahren 0
Just 3 points:
  • Save and Restore Bookmarks for a file on Close and Open 
  • On the Bookmark menu print not only the line number where the Bookmark is placed, but also a part (beginning) of this line -- it'll help a lot to navigate within Bookmarks (specially when the function names are used or particular part of the text/code)..
  • On the "minimap" show a color horizontal line for every Bookmark within a file --  it will help a visual navigation within a file and a fast click to the right position.
Hope you'll agree to implement it. Personally, I'd love to see them ;-)
Otherwise, MANY THANKS for the excellent editor!!! 
Rgds,
-Dimitri
+2

Closing a tab will cause multiple file highlights in the sidebar

Austin Cargol vor 13 Jahren aktualisiert vor 13 Jahren 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 vor 13 Jahren aktualisiert von Victor Cinaglia vor 13 Jahren 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
Fertiggestellt

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

esnip vor 13 Jahren aktualisiert von Jon Skinner vor 12 Jahren 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.


Antwort
Jon Skinner vor 13 Jahren
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 vor 13 Jahren aktualisiert vor 13 Jahren 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 vor 14 Jahren aktualisiert von Roman Komarov vor 12 Jahren 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 vor 14 Jahren 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 vor 12 Jahren aktualisiert von FichteFoll vor 12 Jahren 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 vor 13 Jahren aktualisiert vor 13 Jahren 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 vor 13 Jahren aktualisiert von Piotr Kalinowski vor 12 Jahren 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 vor 12 Jahren 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 vor 12 Jahren 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.