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

[Feature Request] Possibility to exclude apps. #65

Closed
bognarlaszlo opened this issue Nov 19, 2019 · 7 comments
Closed

[Feature Request] Possibility to exclude apps. #65

bognarlaszlo opened this issue Nov 19, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@bognarlaszlo
Copy link

bognarlaszlo commented Nov 19, 2019

It would be really nice if one could set applications (like password managers) to be excluded.
EDIT: I understand that I can delete specific items from the list, but it would be much nicer if passwords were never saved to Maccy's clipboard list.

@p0deje
Copy link
Owner

p0deje commented Nov 19, 2019

It's not possible as Maccy has no way to identify which apps the text was copied from. I'd love that feature, but I don't know any way to implement it.

@p0deje p0deje closed this as completed Nov 19, 2019
@bognarlaszlo
Copy link
Author

bognarlaszlo commented Nov 19, 2019

Thanks for the quick reply. I've never written macOS applications nor do I have any experience with C or Swift, however I think the solution would be as "easy" as to watch for the frontmost application (and compare it with the extended applications). At least this is how it works from an AppleScript.

EDIT: I've found this on SO. This might be useful. Please consider it as it may be a very useful feature - if it's worth your work time.

@p0deje
Copy link
Owner

p0deje commented Nov 19, 2019

Ok, thanks for the link. I'll check it out.

@p0deje p0deje reopened this Nov 19, 2019
@georgesnow
Copy link

You can use nsworkspace shared workspace. This will tell you the front most application/active. I have done this in my plugin for a different app for hotkey to display an application. I can provide a link to my repo if it would be helpful.

https://developer.apple.com/documentation/appkit/nsworkspace/1532097-frontmostapplication?language=objc

@georgesnow
Copy link

http://nspasteboard.org/

Check that site out. Apps like password managers should mark their items being placed in the pasteboard as “transient”

@p0deje p0deje added the enhancement New feature or request label Nov 20, 2019
@p0deje
Copy link
Owner

p0deje commented Feb 8, 2020

Thanks for the link, that definitely makes sense to support. I've checked that, for example, LastPass adds a password with org.nspasteboard.TransientType type, so I'm simply going to completely ignore the types listed in http://nspasteboard.org.

@p0deje p0deje closed this as completed in fa83d5f Feb 8, 2020
@p0deje
Copy link
Owner

p0deje commented Feb 8, 2020

For now, it doesn't allow to specify custom application bundle identifiers. However, it should cover most cases with password managers. Please raise new issues if particular apps are not handled and should be excluded.

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

No branches or pull requests

3 participants