[GH-ISSUE #84] Feat request. Copy #n paths from first/last #83

Closed
opened 2026-02-25 21:32:36 +03:00 by kerem · 2 comments
Owner

Originally created by @Corvus71 on GitHub (Sep 6, 2019).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/84

Originally assigned to: @clechasseur on GitHub.

Suppose I have: \dir1\dir2\dir3\dir4\file1.exe

It would be nice if there was an option to choose copy #n paths from last/first (in the options when adding a new command in simple mode)

e.g.
copy 1 paths from last: (long path)
\dir4\file1.exe
copy 2 paths from last: (long path)
\dir3\dir4\file1.exe
copy 2 paths from first (long parent folder path)
\dir1\dir2\

Background info:
When emailing onedrive links from locally synced files it does not make sense to send the whole folder location since a personal %userprofile% environment variable is in there
c:\user<userid><company name>\dir1\dir2\file1.exe

The part is different per person so only sending \dir2\file1.exe would be enough for another person to find the file.

Originally created by @Corvus71 on GitHub (Sep 6, 2019). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/84 Originally assigned to: @clechasseur on GitHub. Suppose I have: \dir1\dir2\dir3\dir4\file1.exe It would be nice if there was an option to choose copy #n paths from last/first (in the options when adding a new command in simple mode) e.g. copy 1 paths from last: (long path) \dir4\file1.exe copy 2 paths from last: (long path) \dir3\dir4\file1.exe copy 2 paths from first (long parent folder path) \dir1\dir2\ Background info: When emailing onedrive links from locally synced files it does not make sense to send the whole folder location since a personal %userprofile% environment variable is in there c:\user\<userid>\<company name>\dir1\dir2\file1.exe The <userid> part is different per person so only sending \dir2\file1.exe would be enough for another person to find the file.
kerem 2026-02-25 21:32:36 +03:00
Author
Owner

@clechasseur commented on GitHub (Sep 6, 2019):

This would be doable via a regular expression, I think, but I like the idea of making it easier to do.

<!-- gh-comment-id:528796771 --> @clechasseur commented on GitHub (Sep 6, 2019): This would be doable via a regular expression, I think, but I like the idea of making it easier to do.
Author
Owner

@clechasseur commented on GitHub (Jul 5, 2020):

This has been implemented as a new expert-only custom command element type. It will be available in the next version.

<!-- gh-comment-id:653843065 --> @clechasseur commented on GitHub (Jul 5, 2020): This has been implemented as a new expert-only custom command element type. It will be available in the next version.
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#83
No description provided.