(@Andreas_Hegenberg I'm happy to implement a workaround if you have a suggestion as an alternative to this potential feature; you've suggested great workarounds in the past.)
I have a BTT keyboard shortcut of
⌘ + K in Atom text editor to generate markdown hyperlink syntax. The shortcut action is Insert/Type/Paste Custom Text, and pastes the following:
The action moves the cursor 1 character to the left after pasting so that I'm in place to add the URL.
The trouble is, this action saves this chunk of text—
[selection]() —to the clipboard, so if I'd previously copied the URL, it's no longer available for quick paste (instead requiring opening the clipboard manager, etc.).
Request: Can an option be added to this action to not save the pasted text to the clipboard?
Of course the current behavior is understandable, seeing as how the action says "paste", after all.
However, if I change the action to instead use "Insert Text by Typing", for some reason it types
[selection]()] (note the extra closing bracket).
...I'm wondering if this would better have been filed as a bug report on that item, then I could simply use "Insert Text by Typing" and not worry about the clipboard at all [EDIT: see my followup reply for details]
I know I could use a follow-up action of Paste specific items from Clipboard Manager, but I don't always have the URL copied beforehand, and I'd rather not set that up as an independent shortcut either, as
⌘+V is so ingrained and natural. My mind doesn't inherently recognize Insert/Type/Paste Custom Text as having copied anything to the clipboard, so the most recent item in my head is the last item I explicitly copied.
- use a series of actions—Save selected text to variable selected_text and others—to implement this through a different path. Indeed, this will be my approach (and may be perfectly fine), outside of more efficient suggestions.
- Open to suggestions of other workarounds.
If this warrants legitimate consideration as a feature—excellent! If not, I'll adapt and carry on just fine
Also, if you'd like me to convert this to a bug report for the "Insert Text by Typing" issue mentioned above, let me know! [EDIT: see my followup reply for details]