Home Download Buy Blog Forum Support

Resizing autocompletion popup?

Resizing autocompletion popup?

Postby medgno on Wed Dec 05, 2012 3:09 am

I'm using SublimeClang for autocompletion, and I have some very long class names and function names. Is there any way to change the size of the autocompletion popup that Sublime creates? I checked every way I knew how and was unable to come up with anything.
medgno
 
Posts: 1
Joined: Wed Dec 05, 2012 3:07 am

Re: Resizing autocompletion popup?

Postby rchl on Wed Dec 05, 2012 1:48 pm

I don't think there is a way.
rchl
 
Posts: 147
Joined: Fri Mar 04, 2011 11:02 pm

Re: Resizing autocompletion popup?

Postby pier on Wed Dec 05, 2012 5:19 pm

You can vote for the feature here:

http://sublimetext.userecho.com/topic/8 ... -be-wider/

I'm not sure the developer is taking those things in consideration though.
pier
 
Posts: 92
Joined: Fri Jun 15, 2012 2:47 am

Re: Resizing autocompletion popup?

Postby rchl on Wed Dec 05, 2012 8:33 pm

I don't expect anyone to do it really but you can modify Sublime if you are feeling brave.
300 pixels is the hardcoded width of the popup. Look for 00 00 00 00 00 C0 72 40 in the binary and replace with your wanted value (for example 00 00 00 00 00 C0 82 40 for 600 pixels).
Here is converter to convert from double to hex - http://gregstoll.dyndns.org/~gregstoll/floattohex/ (bytes have to be written in reverse in the binary though).
As far as I've checked now, there is only one match in the 32-bit Windows binary but more than one in 64-bit one (first match is the lucky one though).

The width of the popup is not dynamically adjusted to fit suggestions in Sublime so wide popup looks a bit out of place when there are only short suggestions. I guess it would be best if author would make it adjust itself.
rchl
 
Posts: 147
Joined: Fri Mar 04, 2011 11:02 pm

Re: Resizing autocompletion popup?

Postby agibsonsw on Wed Dec 05, 2012 9:12 pm

I have some very long class names and function names

Why not reduce the length of these names..? :D. But I appreciate that if using other libraries this may not be possible (although a number of languages can make use of aliases).
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 13 guests