Mycroft Community Forum

Any skill to insert text at cursor

Hello

I am a web developer and i had an idea to make mycroft help me when coding. For example, i am often using same kind of code blocks on different projects so it could be useful to insert them by voice through mycroft. That would require mycroft to be able to paste text to cursor position. Is it possible? For example, if i say “Insert code block [name]” then it gets inserted to wherever the active cursor is.

Hi Commander - welcome to the Forums :slight_smile:

This Skill should give you a basis for that functionality:

It lets you say “type something” and “something” would get typed. So you could add a lookup for some code blocks and output those instead of the actual utterance.