![]() Length of shortest word to add to the autocomplete list Number of chars to type before the autocomplete list appears: Is that necessary to trigger it?Ĭode: Select all - Dynamically generate autocomplete lists from possible identifiers in any file. But there was some version of auto-complete working before that (unless I included that start.characters line in my user properties file). Any ideas?Īlso, when I added = (as is or followed with a 2) to SciTEUser.properties, then the auto-complete doesn't work at all.ĮDIT: After looking more through that thread, I renamed the script to a (not sure if that's necessary as the next thing may have done it), and I trigger auto-complete by pressing control-space. It very well may be that I didn't implement something correctly. It also isn't adding variables in my script to the list even after I save my file. It's not narrowing the list as I type (and incremental is set to true). As I try Lexikos' auto-complete script, I'm finding it not doing some of the things expected (the ones I was most interested in). If I should start a new thread regarding this, I will. This obviously isn't the best place to post this, but let me start here since the original thread is in the archived forums. Place a in your SciTE user settings folder (i.e.To use this script with SciTE4AutoHotkey: It should play nice with other scripts, such as the one included in SciTE4AutoHotkey.It is disabled for languages other than AutoHotkey and Lua, but this can be changed in the script (see setLexerSpecificStuff or add the appropriate list of styles to IGNORE_STYLES).The list is updated only on saving or opening the document. ![]() Other options are available in the script (in ALL_CAPS).Cancels the list and allows the caret to move to the line above/below the current line.Wraps around to the other end of the list if WRAP_ARROW_KEYS is true.Pressing UP at the top or DOWN at the bottom of the list does one of the following:.If INCREMENTAL is set to true, the auto-complete popup is automatically dismissed if there's only one item and you type it in full.This is disabled by default because current versions of SciTE destroy and recreate the auto-complete window when editor:AutoCShow() is called, and this doesn't look nice. If INCREMENTAL is set to true, the list is narrowed down while typing, to show only the relevant items.Only words consisting of alphanumeric characters and/or underscore are used, but this can be changed via IDENTIFIER_PATTERNS. Auto-completes any word (greater than MIN_IDENTIFIER_LEN characters) saved in the document, except for words in comments or quoted strings.Ctrl+Space also triggers the auto-complete list. Automatically brings up an auto-complete list after typing a minimum of MIN_PREFIX_LEN characters, except while typing in a comment or quoted string.The following are features of my script (the ones I can remember): I took the script above and modified it to include everything from the current language's API files (such as AutoHotkey commands) and IMO improve the usability of the auto-complete popups. I found this to be a step up from SciTE4AutoHotkey's auto-completion, which often annoys me by auto-completing the wrong word or interfering with my use of single-character variable names. This allows any word in the document (whether they are variables, functions, labels, comments, etc.) to be auto-completed. This script may not behave well if you have auto-completion enabled in SciTE properties. to suggest a whole "" string) and dashes, (e.g. This example allows identifiers to include dots (e.g. What constitutes an identifier is determined by the list of patterns in IDENTIFIER_PATTERNS. It doesn't use any external files for lists of identifiers. It scans the file for identifiers on save, open and buffer switch and uses those identifiers in auto-completion. This is a SciTE startup script that provides auto-completion for any file type.
0 Comments
Leave a Reply. |