Can KM select and copy discontiguous text in TaskPaper file?

Is there a way to use KM to select and copy discontiguous text that's in a TaskPaper file?

Thanks!

As Jesse Grosjean explains on the TaskPaper site, that particular approach to solving your workflow problem doesn't correspond to the architecture of the application, in which discontiguous selections are not defined.

What you could use is a pair of scripts (perhaps launched from a Keyboard Maestro palette for TaskPaper):

  1. Toggling a special tag (perhaps with a name like @selected or @flagged) in all selected TaskPaper outline rows. That would enable you to build up a discontiguous set of flagged items. (For visual feedback, you could define, in your TaskPaper stylesheet, a distinct color or background for rows flagged with the chosen tag).
  2. A second script which:
    • copied the text of all flagged rows to the clipboard, and
    • cleared the tags.

(If you discovered you had missed any lines after using script 2, ⌘Z or Edit > Undo would restore all the cleared tags).

(This would, of course, require some time spent scripting and testing to get it right)


It's possible, however, that we are still in the territory of the XY Problem:

What is the underlying context or work-flow in which you are encountering a problem ?