I have set up a macro for Smarty in Komodo Edit which adds a {$|@dumpr} when I press my specified key binding (which, for info is Ctrl+Alt+P).
What I would like is the cursor to be automatically inserted between the $ and the | so I can type my variable name without having to manually navigate my way in there.
Any help?
Many thanks.
Use the currentPos and gotoPos methods: