-
i have a prefered mapping setting: char_map = {
'\\': '⧹', # U+29F9 (big reverse solidus)
'/': '⧸', # U+29F8 (big solidus, permitted in Windows file and folder names)
'|': '│', # U+FFE8 (half-width forms light vertical)
':': '꞉', # U+A789 (modifier letter colon, sometimes used in Windows filenames)
'*': '∗', # U+2217 (asterisk operator)
'?': '?', # U+FF1F (full-width question mark)
'"': '″', # U+2033 (double prime)
'<': '﹤', # U+FE64 (small less-than sign)
'>': '﹥', # U+FE65 (small greater-than sign)
} can i do this with f2? how? it can be achieved with multiple |
Beta Was this translation helpful? Give feedback.
Answered by
ayoisaiah
Jan 4, 2025
Replies: 1 comment 2 replies
-
@mo-han This functionality does not exist currently. How would you prefer to achieve this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After looking into it a bit more, you can achieve this with the chaining feature:
The initial
-f
and-r
pair selects all the files in the directory and retains the same name, while subsequent pairs finds each target character and replaces them with your preferred character. You only need to escape the characters that are significant in regex.