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
Provide an option to use either selected text in the browser or text copied to the clipboard (necessary for using Google docs etc) #167
Comments
Thanks for the suggestion @nausher! I've been meaning to find a workaround for the issue you're describing (i.e. parsing content from Google docs, etc). Even the Highlighted Content feature does not work as expected. Let me see what I can come up with. |
I've noticed similar issues with Google Docs, though never dove in to see exactly what it is. Is it using a lot of nested iframes? No, actually, I have a vague memory that the window.getSelection() api was not working. Perhaps they implement their own editor control and selection geometry system? |
I looked at it briefly a while back and I think they implemented some kind of custom editor. Other tools like Grammarly are able to access the content (seemingly without access to Google APIs), so there must be some way to access it. I'll need to investigate. |
Would a simpler fix (hack) be to provide a checkbox option to use what's in the clipboard similar to "Disable content parsing". |
Some info, though perhaps stale: |
I'll consider this. However, I prefer to avoid having too many input components cluttering the UI, which is already pretty cluttered IMO. |
I think a reasonable product experience is to treat clipboard content like an attachment. If the attachment/clipboard content is present, then those contents will take precedence over the web page's content for parsing. A user must explicitly remove the attachment/clipboard content to resume parsing the web page's content. This feels simple to understand given the attachment functionality already exists. The |
Ability to load clipboard content as an attachment will released in |
Thanks, I finally was able to get it working after a few attempts. Thanks for quickly fixing this issue. I'm now able to use Lumos in Google Apps. |
I'll keep iterating on the UI/UX for this feature. Thanks for the feedback! One of the challenges with this feature is that browsers cannot access clipboard content without explicit action from the user. I haven't found a way to optionally render a UI component based on if clipboard content is available. Ideally, I'd like to do that so the UI isn't cluttered with more buttons. I may need to remove some of the existing buttons.
Created an issue for this: #181. In the meantime, the |
Thanks for creating this excellent extension.
While this works for pure HTML pages, when run on Google docs or slides it is unable to parse just the content, and uses the entire HTML & JS of Google docs.
Can the extension have a keyboard shortcut or a checkbox for content parsing to optionally use just selected text or text in the clipboard? I understand this might need different permissions, so perhaps this can be an optional feature that can be enabled in the extensions settings.
The text was updated successfully, but these errors were encountered: