Jump to content

Find and replace in clipboard text


Recommended Posts

With acknowledgments to @Andrew (because I used his find and replace workflow) and to @vitor (without whom there would have been no working error trapping) this is a workflow that will allow you to find and replace a word or phrase in text already on the clipboard and, optionally, copy the revised text to a text file for spellchecking.

 

I'm unsure how useful it will be but It was created to while away a few idle hours and as a partial response to this post.

 

Read Me

 

Download

 

Stephen

Link to comment

You can remove the 2fr Keyword (the text, not the object), since it shouldn’t be called on its own.


As for the user-configurable Keyword, a few changes are needed for it to work (right now it won’t do anything):

  • Add a Variable name (e.g. startKeyword) under the User Configuration, as well as a Default Value (fr).
  • In the fr Keyword object, replace the Keyword text with {var:startKeyword}.

Finally—and I suggest this as an exercise if you’re interested in exploring the solution—with a Universal Action Trigger you can make this work on any text (not just the current one in the clipboard).

Link to comment

Thanks: so annoyed with myself for not making the keyword configuration work properly. However, it now does and this and a couple of other workflows also containing the same aberration have all been updated on Github. Other comment (about 2fr keyword) taken on board and changed.

 

Will look at adding a Universal Action trigger tomorrow after some sleep.

 

In passing, how the dickens do you get in-line code highlighting in this board's editor? I have grappled and failed miserably.

 

Stephen

Link to comment
2 hours ago, Stephen_C said:

so annoyed with myself for not making the keyword configuration work properly.

 

Don’t be! It’s part of the process and you’re doing great! I like seeing what you come up with and how each Workflow gives you something else to tackle. I hope the progress is fun for you, even if sometimes it can feel frustrating. As the joke goes:

 

“I hate programming

I hate programming

I hate programming

It works!

I love programming”

 

2 hours ago, Stephen_C said:

how the dickens do you get in-line code highlighting in this board's editor?


It’s my own configuration with MarkdownTransform.

 

Edited by vitor
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...