caldurza / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Feature Request: Add cursor position in phrases #102

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Say you add a phrase to add an html tag like so

Abbr: ss => Phrase: <span></span>

The cursor now is behind the span:

<span></span> {cursor}

Would be nice to have this phrase

Abbr: ss => Phrase: <span>{{cursor}}</span>

PS: Thanks for this great tool!

Original issue reported on code.google.com by ste.ho...@gmail.com on 14 Dec 2010 at 8:32

GoogleCodeExporter commented 8 years ago
This can already be done with a script. You can use keyboard.send_keys() to 
send the text and then send the appropriate number of <left> keystrokes to 
position the cursor afterwards.

Original comment by cdekter on 14 Dec 2010 at 9:43

GoogleCodeExporter commented 8 years ago
Cool, that works fine... thanks

Original comment by ste.ho...@gmail.com on 14 Dec 2010 at 12:34

GoogleCodeExporter commented 8 years ago

Original comment by cdekter on 8 Jan 2011 at 3:50