Home Download Buy Blog Forum Support

Dev Build 2056

Dev Build 2056

Postby jps on Thu Apr 21, 2011 11:28 am

Dev Build 2056 is out now, with just a few small tweaks and bug fixes - I'm planning on promoting this into the next stable release.

I'm still in two minds about enabling tab completion by default: I'd be interested in knowing the proportion of users who have it enabled or disabled in the current dev build.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2056

Postby n00ge on Thu Apr 21, 2011 12:15 pm

I like the tab completion for snippets and syntax/variable completion. I find it much more convenient than pressing ctrl+space all the time. The recently added ctrl+space to revert and choose a different complete option is a great addition.
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 140
Joined: Mon Oct 05, 2009 1:23 am

Re: Dev Build 2056

Postby rchl on Thu Apr 21, 2011 12:28 pm

I always had tab-completion enabled but new behavior of replacing snippet with tab after two tab presses was driving me nuts.

So I'm happy about new "tab_completion_double_tab" setting and will still use tab for completions but with that option set to false.
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2056

Postby Marciano on Thu Apr 21, 2011 1:06 pm

Tab completion is vital for the LaTeX plugin to be effective. For instance, a<tab> yields \alpha in math mode, etc.; it<tab> yields \mathit{} in math mode and \textit{} in text mode. This makes for a much more enjoyable texing experience, and it does not interfere with other ST2 functionality, as far as I can tell (again, when editing tex). I always turn tab completion on. BTW if there are multiple completions (e.g. f can be \phi or \varphi), it is trivial to implement cycling among completions using the standard .sublime-completions file. I did that.

In this case, ctrl+space does nto work quite as well---it distracts from typing, and adds a bunch of completions that are not relevant.

That said, if this interferes with ST2 as a whole, I will reimplement the TextMate-like command-backslash shortcut (or something like it), although that will entail duplicating functionality that is already in ST2.

I'll keep following development closely and adapt.

Bottom line: strong vote in favor of tab completion!
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Re: Dev Build 2056

Postby Anomareh on Thu Apr 21, 2011 2:38 pm

The biggest reason I had for disabling competitions was in PHP there is pretty much a completion for every letter in the alphabet and writing doc blocks became extremely frustrating. I'd say I don't even need 90% of the completions and having to double tap tab twice for every entry in the doc block becomes extremely annoying. Things like @var matching var_dump() is really annoying.

I also think it would be an improvement personally if all completions were fieldless as well. I'd say around 10% of the time do I ever actually want or need the ability to tab to the end of the completion if the cursor isn't there already. So now every time I actually use a completion I end up having to press escape. Possibly an option to disable multiple fields in completions? Though if that option did exist I'd still want it to use $0 (e.g. put the cursor between an html tag and not at the end of it) and just ignore all other fields.

On an unrelated note, can projects / sessions be changed to remember the state of the sidebar? On big projects it becomes a hassle having to expand all the folders I had open previously everyday.
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm

Re: Dev Build 2056

Postby oats on Thu Apr 21, 2011 3:35 pm

Anomareh wrote:... having to double tap tab twice for every entry in the doc block becomes extremely annoying.

If you are in a doc block, why are you trying to use tab-completion anyway?
oats
 
Posts: 101
Joined: Mon Nov 09, 2009 4:39 pm

Re: Dev Build 2056

Postby tux. on Thu Apr 21, 2011 4:05 pm

Ctrl+Space is already reserved for the FIndAndRunRobot on my system, I think learning another hotkey would be too much effort. So: Tab completion for the win.
Image
tux.
 
Posts: 122
Joined: Thu Apr 14, 2011 11:04 am

Re: Dev Build 2056

Postby qqq on Thu Apr 21, 2011 6:39 pm

I set tab_completion_double_tab to false first thing after installing 2056. Thank you for this.

The biggest reason I had for disabling competitions was in PHP there is pretty much a completion for every letter in the alphabet and writing doc blocks became extremely frustrating. I'd say I don't even need 90% of the completions and having to double tap tab twice for every entry in the doc block becomes extremely annoying. Things like @var matching var_dump() is really annoying.
It is frustrating indeed. But I wouldn't go so far as to disable completions, which can be quite useful at times. I just delete the php completions file.

P.S. It would be astonishing if there existed an ST user (now and 10 years ahead) who would need 10% of php completions supplied. There may be people (though few and far between) who'd need 1% (40-50 completions). And these PHP completions (more than 4 thousand of them!) fire off before you even think of touching the keyboard. They should get the lowest priority possible instead.
ST2 Win7 64-bit
qqq
 
Posts: 57
Joined: Tue Mar 08, 2011 9:49 am

Re: Dev Build 2056

Postby utotwel on Thu Apr 21, 2011 9:01 pm

Thanks for taking recent files out of the Goto Anything menu. Having those in there was pretty annoying.
utotwel
 
Posts: 19
Joined: Fri Dec 31, 2010 4:46 am

Re: Dev Build 2056

Postby Anomareh on Thu Apr 21, 2011 11:08 pm

oats wrote:
Anomareh wrote:... having to double tap tab twice for every entry in the doc block becomes extremely annoying.

If you are in a doc block, why are you trying to use tab-completion anyway?

I'm not, doc block fields are supposed to be separated by tabs:

Code: Select all
*<space>@var<tab>array<tab>Description.

Here Sublime completes @var to @var_dump() and array to array() as well as @param to @params, @return to @m_returnstatus(), int to intval(), object to is_object(), bool to is_bool(), string to hilight_string(), mixed to mailparse_determine_best_xfer_encoding() (wat?), etc..

Basically you can't hit tab in a PHP file without it completing to something absolutely ridiculous.
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 38 guests