mirror of
https://github.com/clechasseur/pathcopycopy.git
synced 2026-04-25 12:15:58 +03:00
[GH-ISSUE #184] [FEATURE] Add Option to Copy Path with Escaped Backslashes #180
Labels
No labels
bug
duplicate
enhancement
enhancement
enhancement
fixed
help wanted
help wanted
invalid
pull-request
question
waiting for input
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pathcopycopy#180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @blauertee on GitHub (Dec 10, 2024).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/184
Originally assigned to: @clechasseur on GitHub.
Problem / Use Case
Often when Copying Windows Paths and inserting them into any kind of Programming context (All programmiing Laguages I know of, Regex ...) you need to escape Backslashs using double backslashes.
Solution
It would be very convenient if pathcopy did offer the option to copy and kind of path containing backslashes in an already escaped manner. The option could be disabled by default or only shown for one kind of path in the submenu to avoid clutter but make users aware it exists.
Thanks for creating such a clean tool that makes using windows more bearable :)
@clechasseur commented on GitHub (Dec 26, 2024):
It's possible to do this with a custom command. In a custom command's "Find / Replace" options section, choose
Find what: \andReplace with: \\. This should change all backslashes to double backslashes, thus escaping them.