Home Download Buy Blog Forum Support

Dev Build 2148

Dev Build 2148

Postby jps on Sun Dec 18, 2011 12:55 pm

Dev Build 2148 is out now.

The largest change is in tab completion: Pressing tab a second time will go to the next completion, with shift+tab going to the previous one. It works a bit like Ctrl+N/Ctrl+P in vim. You can still press Ctrl+Space to replace the last completion and show the menu.

There's also a reopen_last_file command, and a corresponding menu item for it in the File/Open Recent menu.

There has also been a bunch of other completion related tweaks, primarily to benefit SublimeCodeIntel, although they won't all be enabled until Kronuz has a chance to get a new version out. SublimeCodeIntel should also no longer cause undo to be per-character.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2148

Postby iamntz on Sun Dec 18, 2011 2:58 pm

Thanks for the update.
While you are on completion & co, can you add a shortcut for the completion popup? like 1,2,3..9 for each item within popup?

Thanks!
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Dev Build 2148

Postby iamntz on Sun Dec 18, 2011 3:49 pm

Btw, there is a way of disabling the new autocompletion? Is drive me crazy :evil:
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Dev Build 2148

Postby jps on Sun Dec 18, 2011 3:58 pm

iamntz wrote:Is drive me crazy

How so?
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2148

Postby jasondavis on Sun Dec 18, 2011 4:00 pm

- Added reopen_last_file command, bound to Command+Shift+T / Ctrl+Shift+T by default
This is a really nice feature if only Chrome had this feature!

- Completion: Popup window is wider
How can you access this completion window? or even better is there a list of ALL Sublimetext2 Keyboard shortcuts?

Is there a way to hit tab and show a list of possible itemsin a popup?
jasondavis
 
Posts: 23
Joined: Thu Sep 01, 2011 12:52 am

Re: Dev Build 2148

Postby iamntz on Sun Dec 18, 2011 4:07 pm

How so?

I'm using css.sublime-completion. And let's say this snippet:


Code: Select all
    { "trigger": "f|float", "contents": "float:${1:left}${2:right}${3:none}$0;" },
    { "trigger": "fl|fleft", "contents": "float:left;$0" },

Before updating, i was typing fl+tab => float:left;|

Now, is jumping between floats. And is crazy :D

(that is just an example, there are few other properties with the same issue.

I'm not saying is a bad feature, i'm saying would be nice if you can add a setting for that. Meanwhile, i removed from the default keymap file (not user keymap) and is ok.

edit
Can you fix the completion bug (which is here since... forever) that doesn't allow to make snippets alike?

Let's say i bound / char for inline comments ( /* | */ )
Also, i would like to bind // for block comments:
Code: Select all
/* =========== */
/* = Comment = */
/* =========== */


And, and, and the other ancient bug on multiple options. Let's say i have this snippet:

Code: Select all
{ "trigger": "m|mar", "contents": "margin:${1:${2:0}${3:px} ${4:0}${5:px} ${6:0}${7:px} ${8:0}${9:px}};$0" }


If i'm typing m+tab and delete everything, i have to press tab key for 9 times to skip to the end (or just hit end key). Please fix this and make at least one user happy :D
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Dev Build 2148

Postby weslly on Sun Dec 18, 2011 5:03 pm

jasondavis wrote:is there a list of ALL Sublimetext2 Keyboard shortcuts?


"Preferences" -> "Key bindings - Default"
weslly
 
Posts: 203
Joined: Sun Aug 28, 2011 3:57 am
Location: Brazil

Re: Dev Build 2148

Postby C0D312 on Sun Dec 18, 2011 5:10 pm

Added arguments api_completions_only and next_completion_if_showing (for use by SublimeCodeIntel and similar)

This might be a silly question but what exactly does "next_completion_if_showing" do? My guess is that it moves down the list of auto-completions, but what would be a use case for it?
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Dev Build 2148

Postby jps on Sun Dec 18, 2011 11:40 pm

C0D312 wrote:what exactly does "next_completion_if_showing" do?


Normally, when you press ctrl+space several times in a row, the selected item in the auto complete popup will change. However, this is not desirable if auto complete is being called programmatically, as SublimeCodeIntel does: the option just allows SublimeCodeIntel to avoid this behavior.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2148

Postby C0D312 on Mon Dec 19, 2011 12:31 am

Normally, when you press ctrl+space several times in a row, the selected item in the auto complete popup will change. However, this is not desirable if auto complete is being called programmatically, as SublimeCodeIntel does: the option just allows SublimeCodeIntel to avoid this behavior.

Oh, awesome. That makes sense.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 17 guests