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

+2

on_query_context not invoked for bindings "outside" of a view

glyph 13 years ago updated 13 years ago 0
I have a plugin which consists of some keybindings which can be conditionally toggled on or off, all of which have a 'context' requirement and an accompanying EventListener which checks the global flag to tell whether they should be enabled or not.

When executing an application command though, my keybindings only ever appear to be enabled when executing in the context of a view.  For example: open a new window, go to "layout -> columns: 2", then select the (empty) second column and press a key that has different definitions in the default map and my plugin's map, and the default map will take over, without ever consulting my EventListener.

This is a minor nitpick, since I can always just hit the default keybinding for "new file" and then all of my other bindings take effect, but it would be great if this behaved consistently.

(This on build 2139.)
+2
Fixed

My specified tab_size gets overridden incorrectly

Rob Speer 14 years ago updated by Jon Skinner 14 years ago 0
I'm editing Python code, and my Python settings have "tab_size": 4. Sublime Text doesn't always listen to this, and I think it has to do with the size of the first indentation in the file.

For example, if I have an import list wrapped onto multiple lines, with 20 spaces at the start of the next line to line up with "from module import (", it seems that Sublime Text takes this as an indication that I didn't really want 4-space indents, and it uses 8-space indents instead. Even though the rest of the file uses 4-space indents and now I can't get to half of the tab stops.

At least it doesn't use 20-space indents, but inappropriate 8-space indents are still frustrating.
Answer
Jon Skinner 14 years ago
This will be the indentation detection guessing wrong. You can disable indentation detection: http://www.sublimetext.com/docs/2/indentation.html
+2

Minimap headlines

krisdk 11 years ago 0

Hey Guys, 

I know you are all aout making sublime the best to work with.

I have a suggestions for your next version: 

Minimap Headlines!

If I write:  

//  /&/ Search Area &/&

or

<!--- /&/ Search Area &/&  -->

and so on .. (normal comments with /&/  &/& (or something) inside them)

Result:

Browsers will read it as normal comments, Sublime will read it as comment headlines.

Meaning the 'minimap' Will be even more useful, showing overview with LARGE Headings, ease navigation and serve as a mild lock-in!


Hope you will conisder it. Feel free to mail if you have any questions, (I am in contact with your sales) and keep up the great work.

Best,

Kris


+2

Please support eero.

Fishrock 12 years ago 0

See http://eerolanguage.org/, eero is essentially a much better wrapper for Objective-C. It would be really nice if Sublime would support editing in it's syntax. :)

+2

Middle-click on scrollbar to move slider to that position

iconv 14 years ago updated by adzenith 14 years ago 1
On linux (at least in Gnome/GTK environment) middle-clicking on scrollbar immediately moves slider under mouse pointer and then it can be moved up/down (just like clicking on minimap). It would be nice to get such feature.
+2

Option to have minimap behind text?

Ben Willmore 13 years ago updated 13 years ago 0
By default, the minimap takes up a fair bit of space. In a typical file, most lines will not take up the full width, and the minimap won't fill up the full window height. So the minimap could be moved over the text area producing only a small amount of overlap between actual content. In this situation, it would be interesting to see how things work if the minimap is behind the text, rather than in front. Then, the text would still be readable, and the minimap would still be useable, and no screen real estate would be wasted. I don't know if this is would work well in practice, but might be worth investigating.
+2

Bug report: Font size rest in Linux (ubuntu)

Victor Stan 13 years ago updated 13 years ago 0
Bug report: 

#1. pressing CTRL+0 on Ubuntu Linux does not reset font size. Noticed default key mapping to be not as expected, I have changed it as the following shows:

// { "keys": ["ctrl+0"], "command": "focus_side_bar" },
{ "keys": ["ctrl+0"], "command": "reset_font_size" },

#2. when using the reset font menu, user settings font size is deleted from user configuration file, and default configuration file font size is not taken into consideration. 


+2

Why is there no optional toolbar? (one similar to scite, eg. buttons for Build, Quicksave, Printing, etc..)

Joe DF 12 years ago 0

Why is there no optional toolbar? (one similar to scite, eg. buttons for Build, Quicksave, Printing, etc..)

+2

Hard to determine focus on Selector with Two items

Growlypants 13 years ago updated by Joel Thornton 13 years ago 1
It's challenging to figure out which item is selected when there's only two items. I know it follows the standard sublime colors, but it's challenging because the selected item color is the same as the border. To me it looks like "No" is selected instead of "Yes".

Image 118
+2

File path in title bar does not update after Save As

Pontus Horn af Rantzien 13 years ago updated by ed norwood 13 years ago 2
When saving a file to a new location, the title bar still displays the old location until you, for example, switch to another tab and back.