Quantcast
Channel: voidtools forum
Viewing all articles
Browse latest Browse all 1719

Everything 1.5 Alpha • Re: Advanced Rename

$
0
0
Couple feature requests, one that I believe would just generally be beneficial, the second is wishful thinking...

1) In both the Old Format and New Format fields, allow for setting a specific time to be set which will trigger that string to be saved in the drop down list of historical entries (Similar to Search History), instead of saving the string after a rename has been performed by clicking OK. I find that all too often, I either intentionally decide I might want to go a different route and click or unclick a radio button, or unintentionally change something, which "resets" my inputs with the very helpful "best guess" entries the program comes up with... Unless I've copied it or something, there's quite a few times where a string I'd rather not create again from scratch gets removed and it's not in the drop down for that field.

2) Would love the ability to regex match / replace Emojis in file names using Unicode-specific character classes like "\p{Emoji}"

For example
If you were using JavaScript or a regex engine that supports Unicode property escapes, the following would match emoji characters:

regex: [\p{Emoji}]

JS example:
const text = "This is a test 😅";
const cleaned = text.replace(/[\p{Emoji}]/gu, '');
console.log(cleaned);


Output: "This is a test "
----

ChatGPT tells me the below is currently possible in Everything .. if true (void?), could serve as a stopgap..
You can use the following Unicode ranges to match common emojis and symbols:
  • \u1F300-\u1F6FF — Matches many symbols and pictographs.
  • \u1F900-\u1F9FF — Matches additional emojis and symbols.
  • \u2600-\u26FF — Matches weather and miscellaneous symbols.
  • \u2700-\u27BF — Matches dingbats.
So, the regex to match emojis would be something like:

Code:

[\u1F300-\u1F6FF\u1F900-\u1F9FF\u2600-\u26FF\u2700-\u27BF]

Statistics: Posted by klark1kent — Tue Dec 31, 2024 6:45 pm



Viewing all articles
Browse latest Browse all 1719

Trending Articles