I've been struggling to make a few KM macros work for the past couple weeks. I haven't used KM for a while and now I feel like I just don't know what I'm doing (not that I really did before).
I could really use some help!
Tana doesn't yet have comprehensive text formatting options for strikethrough and highlight. What I am trying to do is copy the selected text to clipboard, enclose the markdown syntax and add %%tana%% above this. So each would look like this pre-paste in the clipboard.
%%tana%%
- ==hightlighted text==
%%tana%%
- ~~striked text~~
%%tana%%
- [weblink title](weblink URL)
It should be easy... but I just can't make any of it work.
Keyboard Maestro shortcut trigger runs its magic to copy selected text to the clipboard and then add markdown syntax to the text stored in the clipboard
2.1. For text I want to highlight it adds ^^ to the start and end of the text
Keyboard Maestro also adds %%tana%% to the top of the clipboard text. (This tells Tana to convert the markdown and render the highlight when pasting into the app)
I want to then create two more KM Macros, one for Strikethrough text and other to grab the weblink of a web URL (following the same principle as above).
So, for example, escaping the % characters to avoid their interpretation in terms of KM token syntax, perhaps – for the highlight case – something like:
put the Tana-specific pasting macros in a KM group with its Available in these Applications property set to Tana (if its an app ? or is it a web-page ?)
Assign whatever keyboard trigger you want to the specific macro.