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

[FR] Track clipboard for paths to add to include/exclude folders + support copy&paste #152

Closed
eugenesvk opened this issue Nov 18, 2024 · 6 comments

Comments

@eugenesvk
Copy link

Is your feature request related to a problem? Please describe.

Drag&drop, while common, isn't the most ergonomic gesture

Describe the solution you'd like

It's much easier to navigate in your file manager to a folder, press ⌘C to copy it, then switch back to Pearcleaner, and either paste or have it auto-suggest based on clipboard tracking.

Describe alternatives you've considered

Copy, click on the "+" to invoke system's file picker, and paste there, but then you have to remeber the default shortcut which you don't use anywhere else (eg, even in Finder you've changed it in the menu, but it doesn't work in the file picker), it's also slower

Additional context

n/a

@alienator88
Copy link
Owner

Got this done, it works two ways:

  1. You can copy the file path of a folder by right clicking the folder in Finder's status bar and selecting "Copy folder as Pathname".
    image
  2. You can copy the folder directly with ⌘+C and Pearcleaner will extract the fileURL from the copied folder.

Since there's two folder lists in the Folder settings page, I don't want it to auto-suggest or do it automatically since I don't know which folder list the end user will want to add to.
To work around this, I just added a clipboard button next to the Add Folder button. Clicking it just adds the folder of the last item added to the clipboard:
image

Will have this out in the next release.
Thanks!

@eugenesvk
Copy link
Author

The clipboard button doesn't appear in v4, although the functionality seems there - clicking to the right of the plus sign adds the path

@alienator88
Copy link
Owner

Dammit..the SF Symbol for that clipboard icon is only available in macOS 15.0.
Let me patch it and re-release 4.0.0

@alienator88
Copy link
Owner

Go ahead and re-download 4.0.0, should work now.

@eugenesvk
Copy link
Author

Thanks a bunch for you quick fixes!

@alienator88
Copy link
Owner

No problem at all, thanks for finding everything

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

No branches or pull requests

2 participants