[Qt-creator] Trigger snippets also in .txt-files

André Pönitz andre.poenitz at mathematik.tu-chemnitz.de
Tue Dec 13 22:10:08 CET 2011


On Tue, Dec 13, 2011 at 08:27:39PM +0100, Wilhelm wrote:
> Am 13.12.2011 16:55, schrieb Leandro T. C. Melo:
> > On 12/13/2011 1:20 PM, ext Wilhelm wrote:
> >> Hi all,
> >>
> >> I'm trying to use the snippet-mechanism in .txt-files (actually
> >> asciidoc-files) also. But it seems that it is only possible to trigger
> >> snipptes in C++/QML-source files.
> >> Or am I missing something here?
> >>
> >
> > Hi,
> >
> > currently completion engine is available only for certain editors (those
> > which provide a completion provider) and the plain text editor is not
> > one of them. Notice that the "Text" group in options Text Editor ->
> > Snippets is meant for content which is shared among editors that have
> > the proper support.
> >
> > One thing that comes to mind that might be worth to consider is an
> > alternative way to trigger snippets independently from completions...
> 
> Or to have the non-code-editors to have also completion-provider (kate 
> does this too using the list of words of the current document) ...

Completing words from the current document (in addition to the "normal"
code completion) is already there in fakevim. So this might be "just"
a bit of code re-shuffling. Someone would have to do it, though...

Andre'



More information about the Qt-creator mailing list