Home Download Buy Blog Forum Support

Completion popup

Completion popup

Postby Marciano on Fri Sep 25, 2009 4:39 pm

Question: is there a limit on the number of entries in the completion popup? I mean the one brought up via view.showCompletions. Even if I pass a long list, only the first 16 entries are shown. Is that a hard-coded limit, or is there a way to override it?

Thanks!
M
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Re: Completion popup

Postby jps on Fri Sep 25, 2009 10:48 pm

Take a look in Packages/Default/Completions.sublime-menu - if you change the repeat attribute, you can make the number shown larger.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Completion popup

Postby Marciano on Sat Sep 26, 2009 3:19 am

OK, thanks. But is there a way to get/set this programmatically (i.e. from a plugin)? It does not seem to be an option...

FYI I am facing this problem with the LaTeX plugin. I have a command to insert a reference; right now I am working around this issue by bringing up a popup menu if there are <= 16 completions (labels) available, and a quick panel otherwise. I prefer the popup, as you can keep the eyes on the text, but the current workaround seems OK to me, especially because one can narrow down the labels by entering the first few characters (my command uses it as prefix to filter out non-matching labels).

Thanks! M
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests