Giter Club home page Giter Club logo

Comments (12)

penCsharpener avatar penCsharpener commented on June 1, 2024

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.

from pathcopycopy.

clechasseur avatar clechasseur commented on June 1, 2024

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

from pathcopycopy.

penCsharpener avatar penCsharpener commented on June 1, 2024

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?

from pathcopycopy.

clechasseur avatar clechasseur commented on June 1, 2024

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.

from pathcopycopy.

penCsharpener avatar penCsharpener commented on June 1, 2024

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

from pathcopycopy.

penCsharpener avatar penCsharpener commented on June 1, 2024

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?

from pathcopycopy.

penCsharpener avatar penCsharpener commented on June 1, 2024

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

from pathcopycopy.

penCsharpener avatar penCsharpener commented on June 1, 2024

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

from pathcopycopy.

clechasseur avatar clechasseur commented on June 1, 2024

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.

from pathcopycopy.

clechasseur avatar clechasseur commented on June 1, 2024

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

from pathcopycopy.

clechasseur avatar clechasseur commented on June 1, 2024

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

from pathcopycopy.

clechasseur avatar clechasseur commented on June 1, 2024

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

from pathcopycopy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.