Forum Archive

move caret to original position

jaganat

In a workflow to move an action to another project in a .taskpaper file, how do I do to make the caret return to the original position (the line where the action was) once the task is moved?

TutorialDoctor

I am working on a solution to that right now. As a tip, I am using my workflow called "Length of" to move the caret backwards by the length of a word. I am also using a "Find" action and a regular expression to find where to place the caret.

john

You could probably repurpose this workflow from MacStories. Basically, save the caret position into a variable then moving it back.

jaganat

Yes, that is a solution! Thank you, john

TutorialDoctor

I so needed something like this. I am going to modify it to add footnotes much quicker! Thanks for the link.