[GH-ISSUE #184] [FEATURE] Add Option to Copy Path with Escaped Backslashes #180

Closed
opened 2026-02-25 21:32:48 +03:00 by kerem · 1 comment
Owner

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 :)

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 :)
kerem 2026-02-25 21:32:48 +03:00
Author
Owner

@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: \ and Replace with: \\. This should change all backslashes to double backslashes, thus escaping them.

<!-- gh-comment-id:2562959757 --> @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: \` and `Replace with: \\`. This should change all backslashes to double backslashes, thus escaping them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pathcopycopy#180
No description provided.