[GH-ISSUE #5] Advanced UI for custom commands #6

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

Originally created by @clechasseur on GitHub (Jul 17, 2017).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/5

Originally assigned to: @clechasseur on GitHub.

Add an "advanced" mode to custom commands in the Settings application that would give full control over the command's pipeline elements.

Original issue: https://pathcopycopy.codeplex.com/workitem/11389

Originally created by @clechasseur on GitHub (Jul 17, 2017). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/5 Originally assigned to: @clechasseur on GitHub. Add an "advanced" mode to custom commands in the Settings application that would give full control over the command's pipeline elements. Original issue: https://pathcopycopy.codeplex.com/workitem/11389
kerem 2026-02-25 21:32:26 +03:00
Author
Owner

@penCsharpener commented on GitHub (Aug 1, 2017):

I'm using zulip/zulip a lot which supports markdown and their desktop app can open file:/// paths.
I would love to have something like a context menu entry Copy Path Zulip Markdown or just Copy Path Markdown
it would then take the last folder name or the file name and create his

[Office](file:///C:\Program Files\Office)
[winword.exe](file:///C:\Program Files\Office\winword.exe)
This would result in a clickable link for the recipient. Very useful in a local network where everyone sends links around to a network share.

<!-- gh-comment-id:319317726 --> @penCsharpener commented on GitHub (Aug 1, 2017): I'm using zulip/zulip a lot which supports markdown and their desktop app can open file:/// paths. I would love to have something like a context menu entry `Copy Path Zulip Markdown` or just `Copy Path Markdown` it would then take the last folder name or the file name and create his `[`Office`](file:///C:\Program Files\Office)` `[`winword.exe`](file:///C:\Program Files\Office\winword.exe)` This would result in a clickable link for the recipient. Very useful in a local network where everyone sends links around to a network share.
Author
Owner

@clechasseur commented on GitHub (Aug 1, 2017):

@vbNETonIce You can do that with a custom command. Base it on "Copy Long Path", and in the Find/Replace options, select "Use regular expressions" and enter:

Find what: ^(.*)\\([^\\]+)$
Replace with: [$2](file:///$1\$2)

<!-- gh-comment-id:319348178 --> @clechasseur commented on GitHub (Aug 1, 2017): @vbNETonIce You can do that with a custom command. Base it on "Copy Long Path", and in the Find/Replace options, select "Use regular expressions" and enter: `Find what: ^(.*)\\([^\\]+)$` `Replace with: [$2](file:///$1\$2)`
Author
Owner

@penCsharpener commented on GitHub (Aug 1, 2017):

Thanks for the reply. I'll try that! Is there a way of applying this custom setting to 50+ PC via group policy or copying a settings file. in short: After I add this custom setting where does PathCopyCopy save it?

<!-- gh-comment-id:319349104 --> @penCsharpener commented on GitHub (Aug 1, 2017): Thanks for the reply. I'll try that! Is there a way of applying this custom setting to 50+ PC via group policy or copying a settings file. in short: After I add this custom setting where does PathCopyCopy save it?
Author
Owner

@clechasseur commented on GitHub (Aug 1, 2017):

It's saved in the registry, in HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopy\PipelinePlugins, but it's identified via a GUID. One thing you can try is to open the Settings app and choose "Export settings", which will export all your settings in a .reg file. Trim it down using a text editor to keep only your plugin and I guess you could apply that across a network by importing the registry file - I'm no expert with group policies but I'm sure there's a way.

<!-- gh-comment-id:319349752 --> @clechasseur commented on GitHub (Aug 1, 2017): It's saved in the registry, in HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopy\PipelinePlugins, but it's identified via a GUID. One thing you can try is to open the Settings app and choose "Export settings", which will export all your settings in a .reg file. Trim it down using a text editor to keep only your plugin and I guess you could apply that across a network by importing the registry file - I'm no expert with group policies but I'm sure there's a way.
Author
Owner

@penCsharpener commented on GitHub (Aug 1, 2017):

one word: sweet! I do a lot of registry modifications via group policy so this should work. Will let you know about the outcome.

<!-- gh-comment-id:319350646 --> @penCsharpener commented on GitHub (Aug 1, 2017): one word: sweet! I do a lot of registry modifications via group policy so this should work. Will let you know about the outcome.
Author
Owner

@penCsharpener commented on GitHub (Aug 1, 2017):

ok, worked fine. Things to remember for whoever wants to try it.

  • create all three registry entries
  • set the (default) key as default (or standard as in the screenshot). If you forget PCC will report an error as the GPO create two default entries

I still have a question though: The new custom command can be found in the path copy copy settings but it's not checked as Main. Where is that setting saved?

<!-- gh-comment-id:319366032 --> @penCsharpener commented on GitHub (Aug 1, 2017): ok, worked fine. Things to remember for whoever wants to try it. * create all three registry entries * set the (default) key as default (or standard as in the screenshot). If you forget PCC will report an error as the GPO create two default entries I still have a question though: The new custom command can be found in the path copy copy settings but it's not checked as Main. Where is that setting saved?
Author
Owner

@penCsharpener commented on GitHub (Aug 1, 2017):

oh, ok. found it:
HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopy\MainMenuDisplayOrder

<!-- gh-comment-id:319367379 --> @penCsharpener commented on GitHub (Aug 1, 2017): oh, ok. found it: `HKEY_CURRENT_USER\Software\clechasseur\PathCopyCopy\MainMenuDisplayOrder`
Author
Owner

@penCsharpener commented on GitHub (Aug 1, 2017):

5 keys need to be added
This works great. Thanks for your help. But I assume the GUID will be different for other people.

<!-- gh-comment-id:319368509 --> @penCsharpener commented on GitHub (Aug 1, 2017): ![5 keys need to be added](https://user-images.githubusercontent.com/26190934/28827266-4fcfacd4-76cd-11e7-95bd-ed990428b7fe.png) This works great. Thanks for your help. But I assume the GUID will be different for other people.
Author
Owner

@clechasseur commented on GitHub (Aug 1, 2017):

The GUIDs of built-in commands (as they appear in MainMenuDisplayOrder) will be the same for everyone. However, the GUID of the custom command will be different, yes.

<!-- gh-comment-id:319483300 --> @clechasseur commented on GitHub (Aug 1, 2017): The GUIDs of built-in commands (as they appear in `MainMenuDisplayOrder`) will be the same for everyone. However, the GUID of the custom command will be different, yes.
Author
Owner

@clechasseur commented on GitHub (Nov 19, 2018):

In hindsight, this issue's original intent seems to complex for little gain. I'll close this for now.

<!-- gh-comment-id:439755338 --> @clechasseur commented on GitHub (Nov 19, 2018): In hindsight, this issue's original intent seems to complex for little gain. I'll close this for now.
Author
Owner

@clechasseur commented on GitHub (Aug 27, 2019):

Thought about this some more today and it would indeed be helpful, even if only for fringe cases. Reopening.

<!-- gh-comment-id:525128232 --> @clechasseur commented on GitHub (Aug 27, 2019): Thought about this some more today and it would indeed be helpful, even if only for fringe cases. Reopening.
Author
Owner

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

This has been implemented and merged into master. It will be available in the next version (17.0).

<!-- gh-comment-id:527245983 --> @clechasseur commented on GitHub (Sep 2, 2019): This has been implemented and merged into `master`. It will be available in the next version (17.0).
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#6
No description provided.