Print Thread
Auto replace with cusor positioning
#63664 03/22/22 07:27 AM
Joined: Oct 2018
Posts: 25
M
matejj Offline OP
Member
OP Offline
Member
M
Joined: Oct 2018
Posts: 25
I have a feature request:

After auto replace I would like to position cursor to specific position.
For example:
td*= to_date('','dd.mm.yyyy')
and cursor is on the end of new text, but I would like to positon cursor: to_date('here','dd.mm.yyyy')

I don't think this is possible with current functionality?

Re: Auto replace with cusor positioning
matejj #63668 03/22/22 10:00 AM
Joined: Aug 1999
Posts: 22,212
Member
Offline
Member
Joined: Aug 1999
Posts: 22,212
It is possible when referring to a template in the AutoReplace text. For example, if you have a template folder "SQL Functions" with a template "to_date.tpl" with the following contents:

to_date('[#]','dd.mm.yyyy')

The [#] indicates where the cursor should be.

In the AutoReplace text you can now refer to the template:

td=SQL Functions\to_date.tpl

When typing "td" the template text will now be inserted and the cursor will be located at the position of the [#]. The [#] will of course not be inserted.


Marco Kalter
Allround Automations
Re: Auto replace with cusor positioning
Marco Kalter #63671 03/23/22 01:26 PM
Joined: Oct 2018
Posts: 25
M
matejj Offline OP
Member
OP Offline
Member
M
Joined: Oct 2018
Posts: 25
Thank you. It works great!


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.025s Queries: 14 (0.006s) Memory: 2.5005 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-09 01:37:18 UTC
Valid HTML 5 and Valid CSS