plugin Complete From Text

Plugins for SynWrite and CudaText...
Post Reply
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

plugin Complete From Text

Post by uvviewsoft »

Plugin was updated today. Now it gives the same/similar features which VSCode gives for its simple word completions. VSCode site tells:
VS Code supports simple word-based suggestions. They are useful when a language service isn't available or when a language service cannot compute results, like when typing inside comments. With this release, VS Code can now be configured to suggest words from other open files. Use the editor.wordBasedSuggestionsMode setting with allDocuments to suggest words from all open files, use matchingDocuments to suggest words from open files of the same language (default), and use currentDocument to only suggest words from the current file.
CudaText plugin history:
2021.01.16
+ add: option "what_editors" to choose documents to read: current document, all opened documents, all opened documents with the same lexer
+ add: option "max_lines"
+ add: options "no_comments", "no_strings" (boolean)
+ add: speedup the word finding by using API EDACTION_FIND_ALL

I wanted to make this as built-in CudaText feature but now I rethinked, it's ok inside a plugin, speed of word search is good, for huge documents plugin will skip them by "max_lines".
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Plugin was updated. work done by @Shovel.
Changes: 3 options added:

- 'use_acp': add suggestions from autocomplete files in 'data/autocomplete'
- 'case_split': expands suggestions, autocompletion for 'AB' will include 'AzzBzz', so to get 'ValueError' just typing 'VE' (or 'VaE', 'VErr', 'ValErr' etc.) and calling on autocompletion will suggest it.
- 'underscore_split': expands suggestions, autocompletion for 'AB' will include 'AZZ_BZZ', so to get 'supports_bytes_environ' just typing 'sb' (or 'sbe', 'supbyenv' etc.) and calling on autocompletion will suggest it.
Post Reply