Home Download Buy Blog Forum Support

Dev Build 2162

Dev Build 2162

Postby jps on Mon Jan 09, 2012 12:31 pm

Dev Build 2162 is out now. The next beta version should be out this week, so please let me know of any unresolved issues introduced in this series of dev builds.

Auto complete has received a notable change this build: tab now accepts the current completion, and enter simply inserts a newline. While enter is the key applications generally use for this, tab is a less intrusive choice, that will result in fewer frustrating instances of unwanted completions being inserted.

Using tab avoids unwanted completions when typing previously unseen words at the end of a line (e.g., 'class foo' in C++), and also avoids having to press enter twice when typing a previously seen word at the end of a line (e.g., 'else'). It also allows the list of available completions to be further pruned, as short words no longer need to be included.

The primary disadvantage with using tab is the ambiguity between inserting the current completion, and navigating to the next snippet field when a snippet is active. This is resolved by auto complete not triggering at all while snippet fields are active (ctrl+space can still be used).

Pressing tab instead of enter takes a bit of getting used to, but I believe it's worth it.

The menu has undergone a makeover, too, with the addition of the top level 'Goto' menu, and a revamped find menu. Both of these were done to make important functionality (Ctrl+P, file switching commands, and quick find commands) more obvious.

The snippets menu has gone as part of this, too: it's been replaced by a link to the Command Palette preloaded with 'Snippet'. This allows snippets to have their trigger displayed alongside them, and is helpful performance wise on Linux.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2162

Postby bbbslayer on Mon Jan 09, 2012 12:41 pm

Great works. This is the right auto completemethod and tab key is easier to touch than Enter.

The auto complete system is almost perfect. But I still found Sublime text 2 lack of calltips feature. I like this feature very much.

komodo codeintel plugin can show the tips in the statusbar, but a popup windows with tips is a better way to do such thing.
bbbslayer
 
Posts: 5
Joined: Thu Jan 05, 2012 11:08 am

Re: Dev Build 2162

Postby iamntz on Mon Jan 09, 2012 12:47 pm

Thanks for the update.
There is a small issue with autocompletion. Let's say we have this block of code:
Code: Select all
<?php
  $is ->
?>
<label> <input type="checkbox" name="is_bookable" /> is bookable? </label>


If im pressing tab after $is, the autocompletion works as expected. But if i'm pressing tab again... nothing happens (should add a tab char, no?).
iamntz
 
Posts: 898
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Dev Build 2162

Postby bizoo on Mon Jan 09, 2012 12:53 pm

iamntz wrote:Thanks for the update.
There is a small issue with autocompletion. Let's say we have this block of code:
Code: Select all
<?php
  $is ->
?>
<label> <input type="checkbox" name="is_bookable" /> is bookable? </label>


If im pressing tab after $is, the autocompletion works as expected. But if i'm pressing tab again... nothing happens (should add a tab char, no?).

Happening if you press tab before the completion window appear, the log is:
Code: Select all
command: insert_best_completion {"default": "   ", "exact": false}
command: replace_completion_with_next_completion

If you wait the window, the log is:
Code: Select all
command: commit_completion
command: insert_best_completion {"default": "   ", "exact": false}
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2162

Postby sublimator on Mon Jan 09, 2012 12:58 pm

window.get_view_index()

w00t! Jon, your a scholar and a gentleman and all that jazz!
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Dev Build 2162

Postby tito on Mon Jan 09, 2012 1:03 pm

It would be nice to get

window.get_view_row()
window.get_view_col()

To update bufferscroll and properly restore views.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Dev Build 2162

Postby tito on Mon Jan 09, 2012 1:08 pm

Very stilistic thing with auto_complete is that remains open even when you typed the whole word and there is no other options.

Image
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Dev Build 2162

Postby sublimator on Mon Jan 09, 2012 1:09 pm

>>> window.get_view_row()
>>> window.get_view_col()

What are you wanting to do?
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Dev Build 2162

Postby tito on Mon Jan 09, 2012 1:26 pm

For example:
I have the same view(a clone) opened left, right and above. all with different selections and scroll position.

What I want, is a way to save the scroll and selections of each view, restoring these the next time I open the file.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Dev Build 2162

Postby sublimator on Mon Jan 09, 2012 1:39 pm

`window.get_view_index(view)` returns the group index, and index within that group for each view. The group index indexes each `cell` in the active layout, also corresponding to the `group` in the `focus_group` and `move_to_group` commands. Jon, late last year, added a whole heap of APIS for very precise scrolling for when you want something beyond view.show(view.visible_region())

If I'm understanding you correctly all the APIs you need should be there.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Nova and 31 guests