notaapp / talk

Issues and discussions for the notes app, Nota.
https://nota.md
59 stars 1 forks source link

Issue with text selection and PopClip #262

Closed bellebethcooper closed 1 year ago

bellebethcooper commented 2 years ago

This is a strange issue, so if it doesn't make sense or is to hard to debug, feel free to close this.

I use an app called PopClip on my Mac that adds a pop-up when I select text with my mouse, similar to the copy/paste/etc. pop-up built-in to iOS. PopClip has lots of extensions you can enable so you can do things like select some text and click in the pop-up to search for that text on iMDb or Google Maps or get a word count for it etc.

The issue I've found is that the selected text doesn't seem to be available to PopClip when I use Nota. Inside other text editors, IDEs, browsers, etc. if I select some text and use PopClip, it works fine, but all PopClip extensions are missing any selected text if I run them inside Nota.

I don't know much about what the issue actually is, but I'm hoping it might make sense to you! There's a list of apps known to not work with PopClip here so I wonder if it's a common thing around handling text selection. I'm hoping it might be something you could change but I understand if it's too strange an issue or not possible to change.

astoilkov commented 2 years ago

If you select to copy the selected text, does your clipboard gets filled with the word "dummy"?

bellebethcooper commented 1 year ago

If I copy, the clipboard doesn't change. It stays empty or it still holds whatever I had copied last.

If I use the search action in PopClip, which takes the selected text and opens a search in the browser using that text as the query, in that case it will open a search with the query as the word "dummy".

astoilkov commented 1 year ago

Thanks for the info. I think I fixed it. However, it may be a double issue as I'm not sure why it's blank in some of the cases. We can discuss it when we release the next version.

bellebethcooper commented 1 year ago

Oh, excellent! Thanks for such a quick fix!

astoilkov commented 1 year ago

Hi Belle,

The new 0.38 release includes the fix. Can you test and see if it works for you?

I will close the issue but if there is still some problem I will reopen it.

bellebethcooper commented 1 year ago

Yep, works perfectly for me now. Thanks very much!