-
Notifications
You must be signed in to change notification settings - Fork 20
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] Glossary Selection Marker #208
Comments
Why do you need this? |
I would like to add the concise definition in the given context right under the sentence on the back of my Anki card. |
I understand the use case, but it seems pretty specific considering it's already possible to select the entries you want using the checkboxes. Is this something that can't already be accomplished with the |
Checkboxes can only be unselected, so if an entry has 13 checkboxes, I'd have to click 12 times to get the one I'd like. Additionally, I don't really want to remove the other entries, but add the context-specific definition at the top of my card, which requires a separate marker.
Not fully, as of right now. If the subtitle list is visible — which it always is in my use case — Would implementing a separate marker be a lot of trouble? If yes, would it be possible to make the popup selection take precedence? Cheers! |
@ripose-jp I also really need the {selection-text} parameter for the same reasons as @BigBoyBarney. |
This isn't entirely true. You can set which dictionaries are selected by default by going to Settings → Options → Anki Integration → Check Show Advanced Options → Include in Glossary. My main apprehension with implementing this is that it's not clear how it should work. If you try to select text in different definitions, you'll see that selecting something in one doesn't deselect text in the other. There's no correct way to handle this, just different approaches. For example, is last selected better than a bullet list of selections? Tags can be selected as well, should they be included? I don't know because I don't understand the use case. |
Using {clipboard} can be done, but it requires pressing Ctrl+C one more time. Sometimes I forget to press it, and then the new card ends up with the definition from the previous card. |
I don't think this is doable because of how Qt Widgets handles selection across multiple widgets. While you can select tags, you can't select text outside of the current tag you're selecting. It's a very different architecture from a webpage where everything is selectable. Selecting the glossaries themselves is doable and they have the added benefit retaining selection due to being based on QTextEdit instead of QLabel. I don't think you'll be able to get everything you want here.
If I'm understanding this correctly, you want a way to export |
@ripose-jp Thank you for your patient reply. It seems that our use cases are different. |
That's totally fine, not a huge deal for my use case. As you can see in the image I sent above, 99.9% of the time it's one definition / tag that I want to narrow down and show at the top. I don't think I've ever tried or wanted to select definitions from multiple widgets.
I am perfectly happy with how default checkbox selection works right now, I only want to select certain parts of the text, much like @wandero's use case. A {selection-text} that does the same as double-pressing CTRL+C would solve both his and my issue. Cheers! |
Thanks @wandero and @BigBoyBarney for the clarification. I got a much better idea of what's needed now. |
It would be really cool to have a marker for the currently selected text from the glossary, perhaps with something like {glossary-selection}.
Cheers!
The text was updated successfully, but these errors were encountered: