Jump to content
PeterPanettone

$Selection Macro in Tool Properties?

Recommended Posts

Posted (edited)

In Tools -> Tool Properties -> Macros, there is no $Selection Macro to access the currently selected text in the Code Editor.

 

image.thumb.png.755e1c9c951002fd2b19a7d2eb2776ed.png  

 

The only macro to access content from the Code Editor is $CURTOKEN, which accesses the word at the caret position.

 

Or is there a Macro to access the selected text?

Edited by PeterPanettone

Share this post


Link to post

$Selection Macro would be very helpful. It would allow the creation of Tools that process the text selected in the Editor.

Share this post


Link to post
3 hours ago, PeterPanettone said:

$Selection Macro would be very helpful. It would allow the creation of Tools that process the text selected in the Editor.

How could it deal with selections spanning multiple lines or columns? That cannot be handled as command-line parameters. Just hitting Ctrl-C and launching a tool that processes the content of the clipboard and puts the modified text back on it, then pressing Ctrl-V is much more flexible, IMO.

Share this post


Link to post
1 hour ago, PeterBelow said:

Just hitting Ctrl-C and launching a tool that processes the content of the clipboard and puts the modified text back on it, then pressing Ctrl-V

That includes multiple tedious manual steps, whereas  the whole procedure could be performed simply with one single keyboard shortcut:

 

https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-821

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×