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

Hijack Native Screenshots #879

Open
hacdias opened this issue Mar 18, 2019 · 3 comments
Open

Hijack Native Screenshots #879

hacdias opened this issue Mar 18, 2019 · 3 comments
Labels
area/macos MacOS P3 Low: Not priority right now

Comments

@hacdias
Copy link
Member

hacdias commented Mar 18, 2019

An idea: do like Dropbox on macOS and hijack the native shortcuts. It will be a bit hard to do but I believe it's doable. If there is no npm package for this, I'll work on one which will need to be a native module in C++... Well... But we can do it and I think it's a great idea. Then, see if it's possible on Windows.

What do you think?

/cc @olizilla @fsdiogo

@hacdias
Copy link
Member Author

hacdias commented Mar 19, 2019

This reveals ti be more challenging than I thought. I created a Gist with the code I wrote so far. The main issue is that everything is running on the same thread and it seems the callback for the notifications is not being called. This would be easier written in Swift in a Native App. I'm wondering if it is worth it to keep working on this feature.

I find it funny I can't find anything in the web about integrating Obj-C in Node.js native modules. What do you think? The feature would be awesome, but to integrate it with Node.js doesn't seem to be straightforward.

@jonaharagon
Copy link

jonaharagon commented May 25, 2019

If it would be easier in the meantime, a keyboard shortcut to just upload whatever's currently in the clipboard would be an incredibly handy alternative to this. I take all my screenshots to the clipboard anyways so it'd just be one extra thing to do to share it if I needed to, and then it could be applied to other files as well, uploading copied stuff from the Finder, or even adding text in the clipboard to a txt file and uploading that.

@hacdias
Copy link
Member Author

hacdias commented May 25, 2019

@jonaharagon uuh, that's a great idea! I like it 💡 What do you think @olizilla?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/macos MacOS P3 Low: Not priority right now
Projects
No open projects
Status: Needs Grooming
Development

No branches or pull requests

3 participants