Page 1 of 1

Select caret position on templates

PostPosted: Sat Apr 09, 2016 1:42 pm
by m4rc0.madrid
Hi

I'm moving from TOAD to DBeaver and by now I'm really happy :D

One little thing I miss is the ability to set caret position when inserting a template value into a sql editor.
In TOAD you can use a pipe to set where cursor must be placed after insert the template, because often you want to insert parameters to queries.
Ex:
SELECT * FROM USERS
WHERE dept= |
ORDER BY ID

This is a simple query but for complex ones it is very useful to be auto-positioned.

Hope you consider the improvement.

That's a lot!
Marco

Re: Select caret position on templates

PostPosted: Tue May 17, 2016 3:25 pm
by m0ntekarl01
I would also really appreciate this functionality.

Re: Select caret position on templates

PostPosted: Wed May 18, 2016 9:14 am
by Serge
This is already implemented.
You can use ${cursor} variable in templates.