Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hotkey support #158

Open
wants to merge 7 commits into
base: default
Choose a base branch
from
Open

Conversation

samrussell
Copy link

This adds the hotkey CTRL+ALT+C to load the path for a file currently selected in an explorer window.

Initial implementation of #3

@clechasseur
Copy link
Owner

This rocks! That's a big PR so let me process it. I'm pretty busy at the moment but really want to integrate something like this. Thanks!

@clechasseur clechasseur self-assigned this Oct 26, 2022
@clechasseur
Copy link
Owner

Ok, clearly I was too slow to respond to this and I apologize.

I've gone through most of the PR and what I found is that I really like your solution, but not really the way it's implemented. I don't like the hardcoded shortcut key or the fact that it only uses the default plugin.

However, that's no reason to reject your PR. There's some extra work to adapt it to my liking but I could do the work myself. There are two possibilities:

  1. I merge this PR as-is, then work on adapting it myself
  2. I work with you to get this PR to the point I want, then I merge it

Basically it depends on whether you want to help me more than you already have. But the extra work I could manage - it was the solution to find the path to the currently-selected file that I didn't have, and you've solved this!

Let me know how you want to proceed.

@clechasseur clechasseur linked an issue Nov 9, 2022 that may be closed by this pull request
@clechasseur clechasseur removed a link to an issue Nov 9, 2022
@samrussell
Copy link
Author

samrussell commented Nov 9, 2022 via email

Copy link
Owner

@clechasseur clechasseur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so if we go this way I'd like you to do one change before we merge it as-is.

I don't think we need an extra EXE project to support this. We could embed the code in the extension DLL and simply expose a Rundll32 entry point to fire it. This would have the advantage of being able to reuse all the code in the extension DLL, including Settings which allows you to fetch the list of pipeline plugins.

If you change your PR to implement it like this I'll merge and we can move from there.

@samrussell
Copy link
Author

samrussell commented Nov 12, 2022 via email

@clechasseur
Copy link
Owner

There's nothing that I know of that prevents you from creating a window in a DLL called by rundll32. Is there?

@samrussell
Copy link
Author

samrussell commented Nov 13, 2022 via email

@clechasseur
Copy link
Owner

That's correct, but how do we handle the hotkey? Are you saying we
integrate it all into the DLL and have the listener startup with another
rundll call at windows start time?

Yes, that's what I'm suggesting. Export a new function that you can with rundll32 at startup. That function is like your previous application's WinMain.

@Alon-Retispec
Copy link

@clechasseur would you be willing to release a beta build of the app with this feature as is?
I would love to start using it ;)

@clechasseur
Copy link
Owner

@clechasseur would you be willing to release a beta build of the app with this feature as is? I would love to start using it ;)

That's doable. In the meantime you can use the installer generated by the PR:
https://github.com/clechasseur/pathcopycopy/suites/8855081827/artifacts/420432617

That one has the same version number as the latest official version however. It should still be possible to install it over an existing 20.0 installation.

Note that I haven't tested it yet, so use at your own risk. 😉

@Alon-Retispec
Copy link

Thanks, it seems to work great so far 👍

@neonjuno
Copy link

neonjuno commented Apr 4, 2023

Seems like the installer has expired since then, any idea when a new build might come? Thank you for the work.

@clechasseur
Copy link
Owner

Seems like the installer has expired since then, any idea when a new build might come? Thank you for the work.

That's unfortunate. Let me see what I can do to rebuild this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants