[Eric] Is there documentation for how to create a "nonstandard" plugin?

Mike C. Fletcher mcfletch at vrplumber.com
Thu Sep 18 22:04:56 BST 2014


On 14-09-18 02:21 PM, Mike C. Fletcher wrote:
> Hi all,
>
> I've been building a little voice-dictation-for-coding service (for 
> linux) and I'm getting to the point where I need to actually hook it 
> up to an editor. Since Eric (5), from Mercurial is my editor of choice 
> it seems I'll need to figure out how to write a plugin that *isn't* 
> one of the built-in types (i.e. not a VCS or similar plugin). I want 
> to build a plug-in that:
>
>  * hooks into each opened code-editing window (possibly/likely with a
>    filter on the lexer languages)
>      o captures "focus" events for the window(s) to tell the service
>        when to interpret the dictation in the language-appropriate manner
>      o preferably can provide some context hints to the dictation
>        engine "docstring", "python code", "html code"
>  * generates dictation events to be integrated into the code-editor
>    (over DBUS)
>      o with undo-ability (particularly as there's likely to be lots of
>        "correct-that" operations)

So I've got a basic plug-in, I watch for editors, and in theory should 
be able to insert text when I get the DBUS signal, but so far I'm 
blocked on actually getting PyQt's QtDBus to actually register for the 
"new dictation" signals. Anyone on here a PyQt QtDBus expert by any chance?

Have fun,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com



More information about the Eric mailing list