joshuto icon indicating copy to clipboard operation
joshuto copied to clipboard

macOS: Any `/Users/<username>` is replaced with `~`, while this can be wrong

Open SuperKenVery opened this issue 2 years ago • 2 comments

Say I have a path /Volumes/BigSSD/Users/<username>/Downloads, it displays as /Volumes/BigSSD~/Downloads in joshuto, which IMHO isn't the desired behavior.

I think we should limit the string substitution to start of the full path text.

SuperKenVery avatar Nov 06 '23 16:11 SuperKenVery

Good catch!

kamiyaa avatar Nov 10 '23 22:11 kamiyaa

Fixed with 52e581e6b1bd912032a5b2210ef3006a5b75e5e5

kamiyaa avatar Nov 10 '23 22:11 kamiyaa