Replies: 4 comments
-
Hey @benisek00, I guess you could pipe it out to a shell script, strip the added text and then perform an action in the app that you want. Are you familiar with shell scripting? |
Beta Was this translation helpful? Give feedback.
-
Hello!
Thank you for your email!
Does that answer your question if I tell you that I have no idea what "pipe out” even means?
Sorry - I’m probably not the target audience for your app - but I love it, I use it for signatures and short bits of texts in my emails.
:)
… On Mar 19, 2024, at 13:51, Christoffer Winterkvist ***@***.***> wrote:
Hey @benisek00 <https://github.com/benisek00>, I guess you could pipe it out to a shell script, strip the added text and then perform an action in the app that you want.
Are you familiar with shell scripting?
—
Reply to this email directly, view it on GitHub <#516 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AO6I7HJYX3PF465OUXQGAWDYZCQO7AVCNFSM6AAAAABE6CLQHGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNBVG44TI>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
@benisek00 I didn't test this out myself but I guess something like this could work: ![]() Just to explain what it does.
Finally, to wrap things up, we take our updated content and send it back to the pasteboard using |
Beta Was this translation helpful? Give feedback.
-
You are fantastic. Will try it right now!
… On Mar 19, 2024, at 15:59, Christoffer Winterkvist ***@***.***> wrote:
@benisek00 <https://github.com/benisek00> I didn't test this out myself but I guess something like this could work:
image.png (view on web) <https://github.com/zenangst/KeyboardCowboy/assets/57446/c4d2474c-fc70-4dc5-ad89-09d4af6388ed>
Just to explain what it does.
pbpaste gets the current contents of your pasteboard.
We save that into a variable called clipboard_content.
We then try and remove the string that you provided using sed.
Book Title - XYZ Publishing. Kindle Edition.
Finally, to wrap things up, we take our updated content and send it back to the pasteboard using pbcopy.
—
Reply to this email directly, view it on GitHub <#516 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AO6I7HKFGGT57HSELLPD4MDYZC7NFAVCNFSM6AAAAABE6CLQHGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNBWG44DA>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Every time I copy and paste from a Kindle book to a TextEdit file where I keep notes and important points, it also pastes "Book Title - XYZ Publishing. Kindle Edition.". Is there a way to program KeyboardCowboy with that exact text so that every time I copy-paste, what's added by the Kindle is automatically removed from the TextEdit file?
Beta Was this translation helpful? Give feedback.
All reactions