pixelsearch Posted April 8, 2022 Share Posted April 8, 2022 Hi everybody I'm using SciteLite. Is there a parameter in Scite that allows the Autocomplete list to be displayed only after 2 chars have been typed and not 1 ? For example, I often face this situation : When I press the underscore _ to continue on next line, then Scite Autocomplete box pops up as soon as I type the underscore and I would like to change that, having the Autocomplete box to appear only after 2 characters have been typed. There's a link on github where a guy indicates improvements to Scite Auto-complete : -- Number of chars to type before the autocomplete list appears: local MIN_PREFIX_LEN = 2 Is this doable in our config ? For information, here is the content of a file on my computer, named "SciTEUser.properties". Just forget the non english comments and you'll see what are the lines I'm using : expandcollapse popup# Récupéré ces paramètres après avoir installé la version complète de Scite, puis modifié les couleurs etc... # rendre aux 2 touches - et + du pavé numérique leur fonction normale de - et de + user.shortcuts=\ Ctrl+KeypadPlus|IDM_EXPAND|\ Ctrl+KeypadMinus|IDM_BLOCK_COMMENT| # 3 paramètres pour ne pas afficher l'indentation, les marges etc... view.indentation.guides=0 line.margin.visible=0 fold.margin.width=0 #selection (noir / fond bleu moyen) selection.fore=#000000 selection.back=#9299F1 selection.alpha=100 #macro (noir, pas gris) style.au3.6=fore:#000000,back:#F0F4F9 #string (rouge plus sombre, pas rouge vif) style.au3.7=fore:#C80000,back:#F0F4F9 #operator (rouge plus sombre, pas orange) style.au3.8=fore:#C80000,back:#F0F4F9 #variable (noir, pas gris) style.au3.9=fore:#000000,back:#F0F4F9 #sent key (plus foncé, presque noir) style.au3.10=fore:#404040,back:#F0F4F9 #pre-processor, par ex. include (noir, pas gris) style.au3.11=fore:#000000,back:#F0F4F9 #changed that one permanently (from 3 to 4) on 13 Nov. 2018 indent.size=4 indent.size.*.au3=4 #https://www.scintilla.org/SciTEFAQ.html #How do I change the colours of the output pane ? # #The output pane often lists error and warning messages and is styled by the "errorlist" lexer. #The default errorlist styles are found in others.properties. #To change the output pane background to black and the default text to white set : #style.errorlist.32=$(font.small),back:#000000 #style.errorlist.0=fore:#FFFFFF # #Alors voilà un fond gris clair pour la console, c'est mieux que le blanc par défaut, on verra à l'usage : style.errorlist.32=back:#F0F0F0 Is there a line I could add inside this file to achieve what has been asked ? Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted April 8, 2022 Developers Share Posted April 8, 2022 (edited) 26 minutes ago, pixelsearch said: Is this doable in our config ? It is defined in Lua so anything is possible... would have to have a more detailed look, but .... 26 minutes ago, pixelsearch said: I'm using SciteLite Not so much there unless you handle this yourself. ... but the Full version of SciTE4AutoIt3 is already has this covert for Continuation characters: Quote -- Skip showing AutoComplete on _ as the first character. Edited April 8, 2022 by Jos pixelsearch 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
pixelsearch Posted April 8, 2022 Author Share Posted April 8, 2022 (edited) 2 hours ago, Jos said: Not so much there unless you handle this yourself. Well... it may be not a super patch but what follows suits me : Enter key pressed twice, better than the annoying _Array1DToHistogram that was displayed constantly as shown before : 2 changes in Scite folder and its \api subfolder , adding a non-existant "_" function to both text files : au3.keywords.properties : au3.keywords.udfs=_ _array1dtohistogram _arrayadd ... au3.api : WinWaitNotActive... _ _Array1DToHistogram... I'm aware that installing a new version would require to amend both files but I can live with that, as we're not installing new versions on a daily basis Also I discovered this setting today, for not hiding the tab bar if there is only one tab. Always wanted it ! tabbar.hide.one=0 Edited April 8, 2022 by pixelsearch Link to comment Share on other sites More sharing options...
Developers Jos Posted April 8, 2022 Developers Share Posted April 8, 2022 (edited) Why not use the full version that has this fixed? The lite version has no Lua logic and simply uses internal SciTE behaviour. Edited April 8, 2022 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now