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

+4

An on_close event for windows and/or projects.

Xavura 13 år siden opdateret af Kenny Levinsen 13 år siden 1
Request is in the title.
I would like to make sure some processes are killed when a project window is closed. Right now, I think I can achieve this with a view on_close event and counting the number of views that remain in the window and seeing if there is only one.

Of course, that's just terrible.
+4

User Settings - Appending Options Instead of Overriding Them

Andre Greeff 11 år siden 0
With ST3 build 3059, settings stored in the user's `Preferences.sublime-settings` file override matching keys in the global file. For most settings this is perfectly fine, but this could be streamlined for items such as `folder_exclude_patterns` and `file_exclude_patterns`.

Since these elements are arrays, why not simply push the user-specified exclude patterns array onto the global one? This way any updates to the source preferences will still be applied for users who use custom patterns as well.
+4

Keep the caret position when a file is automatically reloaded because it changed on disk, instead of going back to the top of the file.

Jocelyn Turcotte 13 år siden 0
It happens a lot when doing git rebase and similar stuff.
Just touching the file triggers that and it's very annoying.

The best would be to try matching the old text position and find where the caret should be moved.
Though simply going back to the same line number would already be a very nice improvement.
+4

All PHP files are opened as syntax HTML

Matt Rusiniak 14 år siden opdateret af Phillip Harrington 12 år siden 4
No matter how many times I set view -> syntax -> open all files with current extension as PHP, all of my PHP files (*.php) are being opened in HTML syntax form.

Using dev build 2029
+4

Tabs shouldn't get focus when moved.

Jess Fortier 13 år siden opdateret 13 år siden 0
When I reorder my tabs, they come into focus as I drag them around. But usually if I am reorganizing then I am dragging tabs that I am not immediately working in, and actually would like to keep my current tab in focus rather than switch. The act of moving a tab is conceptually separate from wanting to work with that file, so I feel like moved tabs shouldn't automatically come into focus. 

This is definitely a workflow issue, as it's faster to click again after dropping a dragged tab if you want it in focus than it is to go rummaging through all of your tabs to find where you were previously.
+4

Real "Code Complete" from Language library

Lucas Klassmann 13 år siden opdateret af Fredrik Ehnbom 13 år siden 1

Real "Code Complete" from Language library


Example:

When i'm coding in python:

import os
os.[codecomplete list must appear]

Don't complete from de imported library.


I will buy this fantastic editor, but Eclipse is better for my purposes.

I searched in documentation, but i dont encountered.

Thanks and i hope do be not make a stupid question :P 

+4

Make .sublime-package files auto-installable

Ricardo Tomasi 13 år siden opdateret 13 år siden 0
We should be able to open a .sublime-package file and have it install itself automatically (like .tmbundle and texmate).

package files could also be either a .ZIP/TAR, or a folder with the .sublime-package extension on Mac/Linux.
+4

API: better use of context managers

David Baumgold 13 år siden 0

The Python API should use context managers (http://docs.python.org/reference/compound_stmts.html#with) wherever reasonable to make editing and other stateful operations more seamless and Pythonic. This will make it even easier to write more and better plugins, and since it's a backwards-incompatible change, the time to make it is *now*, while ST2 is still in alpha/beta state.


The sublime.View class has a begin_edit() method and an end_edit() method: these two commands are prime candidates to be turned into a context manager. Proposed API:


with view:

  do_a_thing()

  do_another_thing()


Much more straightforward and Pythonic than creating an edit object, passing it around, and finalizing it with end_edit() 

+4

German keyboard layout: "Show Console"

vivo 13 år siden opdateret af poke 13 år siden 2
the keyboard shortcut for "Show Console": ^`
does not work on a German keyboard, and I haven't been able to find the correct combination
+4

Tweak identation for statements spanning trough several lines

Simonas Kazlauskas 13 år siden 0
Currently Sublime Text idents separate lines perfectly, however when you break line to, for example, fit 80 characters limit it fails miserably.

For example consider such example:
report = "Hello World!"
Assume, that it doesn't fit into a line and I want to break it in the middle.
report = "Hello"\
        " World!"
None of identation sizes would be able to align beginnings of strings and some spaces would have to be added manually. Instead of this dumb behaviour ST could just auto align strings like that (regardless of selected identation size):
report = "Hello"\
         " World!"

Kundesupport af UserEcho