[QScintilla] Autocompletion of SQL identifier quotes

Manuel Gómez mgrojo at gmail.com
Sun Sep 30 20:08:34 BST 2018



El 30/09/18 a las 12:23, Phil Thompson escribió:
> On 9 Sep 2018, at 7:49 pm, Manuel Gómez <mgrojo at gmail.com> wrote:
>> I'd like to make DB4S (https://sqlitebrowser.org) to add the quote character when an SQL identifier is completed and was initiated with a quote. Is it possible to set up QScintilla for doing it?
> 
> There is no direct support for something like that.
> 
>> I'd like also to complete identifiers with embedded spaces, but although they are displayed in the list, the completion only writes until the first space.
> 
> The format is of a "word" (eg. a function declaration) followed an optional explaination.
> 
> You can achieve what you want in both cases but you would need to bypass the high-level API and use the low-level Scintilla API.

Thanks.

For the quoting case, would it make it if I handle the 
SCN_AUTOCCOMPLETED signal, look at the start of the completed identifier 
and, if there is a starting quote, add a closing quote?

--
Manuel


More information about the QScintilla mailing list