Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
CrimzinD34919
2 discussion posts
Is there any way to add a lot of Replace triggers at once?
I've got hundreds of items I'd like to set up, and doing it one-by-one is such a pain. I've started trying to find Macro-software to automate this task, and that's not been going easy, either*.

I'd hoped there'd be a way I could export the settings, review the formatting in Notepad, and do something there to do things in bulk, but it seems like this is all creating Registry entries, with unique hashes and stuff, so that's out, I think...

I wish I could just have a grid I could copy-paste Excel-format style data into or something.

*If you have the "Triggers>Add>Text Replace" menu/panel up when you Alt+Tab back to CBF, no panel is focused, so you can't go through the process with keyboard-only inputs...
Apr 9, 2023  • #1
User Image
a380330520
32 discussion posts
https://www.clipboardfusion.com/Discussions/View/you-can-copy-the-trigger-or-set-multiple-programs-chuf/?ID=e7347156-8ac1-4d65-b4a1-287c6b08d01d

I also really need this feature that was mentioned before. It hasn't been implemented yet, but it's really necessary. I hope the developers can seriously consider evaluating it.
Apr 10, 2023  • #2
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
This is currently on our feature request list, so I've added your vote to it. We'll be sure to let you know if/when we're able to implement it in the future.

Thanks!
Apr 10, 2023  • #3
User Image
CrimzinD34919
2 discussion posts
Hello again.
I was just hopeful/curious if there was any movement on some improvements to this feature. Appreciate the work ya'll do.
~
EtA1:
I'd also like to add, that if/when it gets some attention, that there were an easier way to reorganize/sort entries. When you've got 600+ entries, the slow drag to the top is agonizing. It makes it hard to make sure you don't have duplicate/redunant entries. Being able to sort alphabetically, or even a right-click>send to top/bottom would be better than the current drag method. Also wish it would remember or default to ignoring-case.
~
EtA2:
In the interim, for anyone else looking for something similar, I've found a more workable solution through AutoHotKey.

Code

OnClipboardChange(ClipChanged)
Persistent
return
ClipChanged(Type) 
{
A_Clipboard := StrReplace(A_Clipboard, "Science Fiction", "SciFi")
A_Clipboard := RegExReplace(A_Clipboard, "i)Science.*?Fiction", "SciFi")
return
}

If you have something simple, like the the string Science Fiction, StrReplace will handle that fine, and it's Case-Insensitive, so it'll also get science fiction.
If you want to be more encompassing, RegExReplace is more helpful, but by default is Case-Sensitive.
Adding the i) there will force it to be Case-Insensitive.
The .*? will have it capture any characters between the two strings (and also 0 characters).
So, that RegExReplace line will grab Science Fiction, science_fiction, science-Fiction, sciencefiction, etc., and then replace it with SciFi

Since this is AutoHotKey, and the script/code is managed in a text editor, it's way more manageable/faster to iterate, update, and sort than ClipBoardFusion's current implemntation.

One would need to download/install AutoHotKey, and then copy/paste the above code into a text editor, save it as a .ahk, and then open that. You can add as many StrReplace and/or RegExReplace lines as you need, and modify the bits within the "" for your own needs. First set of "" is the target, second set is the desired replacement text. For the text editor, I'd recommend NotePad++. I use it for a variety of reasons, but in this use-case, the ability to sort lines alphabetically makes it a lot easier to organize large lists of replacements.

Hope that helps anyone else in need.
Feb 22, 2024 (modified Feb 23, 2024)  • #4
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
This isn't something we've added in, but we'll take a look at it and see if we can fit it into one of our next few betas.

Thanks!
Feb 26, 2024  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)