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

+1

maximize/minimize window via api

Timothee Cour 11 year бұрын жаңартылды 11 year бұрын 1
The api is missing an important feature: ability to maximize/minimize a window, as well as querying for the minimized/maximized state of a window.

Use case: 
1) restore maximize/minimize state of each window upon restarting sublimetext (currently when sublimetext restarts, all windows are maximized regardless of their state when sublimetext was exited).
2) I have a tool that opens a file in sublimetext by first searching whether the file was in an existing tab in an existing window; if not it'll open a new tab in current window otherwise it'll make that tab in foreground. Turns out this doesn't work if the window that contains the file is minimized, and we don't even have a way to tell whether that window was minimized or not. 
+1

Sublime needs a "Find Definition" command

chaiguy 12 year бұрын 0

I find myself constantly doing a "Find All" for a certain identifier, searching through the hits for the definition, opening the definition, and going back and closing the Find Results window. It would be super handy if this workflow were shortened to just a "Find Definition" command.


Granted this would need some language level integration in order to determine what hit was most likely the definition, but it could also be done via some popup list of the hits ordered by likelihood of being a definition which the user could click and it would pop open that find result without the intermediate step of having a Find Results window to deal with.


Furthermore, having a shortcut for this command such as command- or control-clicking (or double-clicking) a word would be super rad. I used a shortcut like that in Visual Studio for years and loved it.

+1

Open in Terminal subl

hiver yan 13 year бұрын 0
when I open my folder in terminal by  'subl .' , it will open many blank page.  This made me bother。
+1

Sublime Text goes at the top of the page by itself when regaining focus

Pierre 13 year бұрын жаңартылды 13 year бұрын 2
I'm using a recent build of Sublime Text 2 (2173 on Ubuntu Linux Oneiric) and I noticed a strange bug occurring on several occasions when editing a long file (I have used ST for 2 or 3 weeks only, I don't know for how long this bug has been there).

When I go back and forth to the browser and the editor, it sometimes goes up to the beginning of the file I'm editing while regaining the focus. I didn't find a way to reproduce it systematically, but some files seem to have issues, while others don't.

I was expecting this bug to be fixed quickly since it is pretty annoying, but I wonder if this isn't some platform-specific issue, so I decided to report it. I don't know if that can be of some help but I'm using "virtual spaces" when switching from the browser to the editor, maybe that's linked.

Thanks for your answer and your help ! Should you need more information, feel free to contact me, I'd love to help you out to fix this issue if I can :) !

PS : Sublime Text is a really awesome editor, and I definitely fell in love with it ;) !
+1

simplify preference editing by using a split view for default and user files

rowen 11 year бұрын 0

Editing files to set preferences is nice and flexible, but it's a bit of a pain to have to select the default file first (to see what's available) and then select the user file (to make changes). That also subtly encourages editing that default file. Here's a simple solution:


- For each kind of preference in the Preferences menu, display a single item: the name of the preference.

- Selecting that item displays both the default file and the user file in a split view, e.g. defaults above, user below. The user can then read the desired info from the top pane and copy the appropriate lines into the other.

- The Preferences menu item could then be much simpler: a single entry for each preference would display the pair of files (as just described).


To reiterate, I see these advantages:

- Simpler Preferences menu: one item per kind of preference.

- It is easier to for the user to edit preferences: one selection does it all.

- There is less temptation to edit the default file.

+1

ctrl+alt+up doesn't work in linux

Nickolay Hodyunya 13 year бұрын жаңартылды 13 year бұрын 0
accroding to http://www.sublimetext.com/docs/2/column_selection.html ctrl+alt+up and ctrl+alt+down keys should select a rectangular area of a file, but it doesn't.
+1

Make Jump to Definition Work for Imports

Jonah Dahlquist 11 year бұрын 0

Hitting F12 (Jump to Definition) should work if hovering over an import statement in a given language.  Language examples:


LESS:

@import "other_file.less";


PHP

include "other_file.php";


I understand this may be more practical for some languages than others, I certainly wouldn't expect it to work in all languages in all cases.



+1

build 2134

Андрей Бовсуновский 13 year бұрын 0
/usr/bin/sublime-text-2: line 2:  9240 Segmentation fault      /usr/lib/sublime-text-2/sublime_text $*
+1

Expose some low-level API for tabs

Test Account 11 year бұрын 0
The usability of Sublime Text would skyrocket if you exposed some low-level API to interact with tabs and how their contents are rendered, allowing plugin authors to embed terminal emulators, browsers, document previews for LaTeX, etc.