GLBasic forum

Feature request => IDE/Syntax => Topic started by: Moebius on 2011-Jan-26

Title: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Jan-26
The word completion in the GLB IDE is very useful, but it because annoying to have to press Ctrl-T to bring it up every time.  Would it be possible to have an option to open the word complete box automatically?  Not a major request, but I feel it's probably an underused feature, and it would be nice to allow it to come up automatically like in other IDEs.
Title: Re: IDE Request - Option for automatic word completion.
Post by: Ian Price on 2011-Jan-26
[Shudder]Auto-complete. [/Shudder]

See here for aout-correct hilarity - http://retroremakes.com/forum/index.php/topic,2278.0/topicseen.html

I'm not a fan. Most of the time it's quicker to type something fresh than alter something that an autocomplete feature has put in. However, it might just work with a coding language such as GLB though, as there generally few similar words. If it's included, I'd rather it optional via a toggle in the Options menu rather than CTRL-T though.
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Jan-26
I have no doubt that many people have had bad experiences with autocomplete - particularly with the iphone (good thread btw).
As long as it stays inside it's little dialog box (unlike the iphone's autocomplete...) it shouldn't be able to do too much harm.  :whistle:
God help us all if it is set free.
Title: Re: IDE Request - Option for automatic word completion.
Post by: Kitty Hello on 2011-Jan-27
Ctrl+Space does, too.
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Jan-27
It does?  Faster than Ctrl-T - thanks  =D
Is it possible to automate this though? (i.e. popup every time a letter/number is typed?)
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moru on 2011-Jan-28
No please no, no autopopup... It's so irritating. Or at least an option to turn it off.
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Jan-28
It would be good to have an OPTION to turn it on/off.  Sorry if I haven't made it too clear...
Don't worry, I'm don't want a permanent automatic popup word completion box *shudder*
Title: Re: IDE Request - Option for automatic word completion.
Post by: aonyn on 2011-Feb-13
Hi All,

Please make it optional if added, Autocomplete always drives me nuts.

regards,
Dave
Title: Re: IDE Request - Option for automatic word completion.
Post by: Ian Price on 2011-Feb-13
QuotePlease make it optional if added, Autocomplete always drives me nuts.

QuoteIf it's included, I'd rather it optional

;)
Title: Re: IDE Request - Option for automatic word completion.
Post by: Marmor on 2011-Feb-13
an another one !

maybe its possible to get the blue line also in the start on a sub ?
the end have one .
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Feb-14
QuoteWould it be possible to have an option to open the word complete box automatically?
QuoteIt would be good to have an OPTION to turn it on/off.
;)
Title: Re: IDE Request - Option for automatic word completion.
Post by: Kitty Hello on 2011-Feb-14
when do you want the box to open? On very letter you type?
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Feb-14
Yes I guess.  Whenever you start typing a word it would be useful, so essentially every letter  :)
Title: Re: IDE Request - Option for automatic word completion.
Post by: XanthorXIII on 2011-Mar-22
If Automatic Word Complete is implemented I would suggest that it would work for Variables, Functions(System/Defined) and Types if possible. Also as you are typing the function, after you complete the word it jumps through the argument list to fill in each of the values required for the function to work.
Title: Re: IDE Request - Option for automatic word completion.
Post by: Moebius on 2011-Jul-24
Doesn't feel right to start a new topic for this (nor bump this), but if anyone wants it here's a short Autohotkey (great program) script for automatically pressing Ctrl+Space:
Code (glbasic) Select
#IfWinActive GLBasic
Space::
Hotkey, Space, Off
Send %A_Space%
Hotkey, Space, On
Input, OutputVar, L1 I V T3, Input, OutputVar, L1 I V T3, {Left}{Right}{Up}{Down}{PgUp}{PgDown}{End}{Home}{Esc}{Del}{BS}{LButton}{RButton}{WheelDown}{WheelUp}{MButton}{LWin}{RWin}{Alt}{Tab}{+}{-}{*}{/}{=}
IfInString, ErrorLevel, EndKey:
{
return
}
if ErrorLevel = Timeout
return

Send ^%A_Space%
return
Title: Re: IDE Request - Option for automatic word completion.
Post by: erico on 2011-Jul-25
reminds me of..

[attachment deleted by admin]