FooSoft / yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
https://foosoft.net/projects/yomichan
Other
1.06k stars 213 forks source link

[Feature Request] Separate glossaries for anki card creation if you have multiple dictionaries imported #1363

Closed StefanIgnjatovic12 closed 3 years ago

StefanIgnjatovic12 commented 3 years ago

I have 2 dictionaries imported into yomichan. It would be nice to have the option to be able to only have the entries from 1 dictionary added when cards are made.

For example: I have daijirin and shinjirin imported and when I create a new card, the entries from both of those dictionaries get added automatically. It would be nice if I could set it so that only entries from daijirin get added instead.

Another thing that would be cool: the option to select 1 specific dictionary entry that will be added to the card when you click the plus button like in this picture: image

If there's a way to do either of these things already and I just haven't figured them out please let me know.

Thanks

Pintliz commented 3 years ago

For adding dictionaries separately you may refer to #1345

As for selecting which dictionary to use for the anki card. You can make multiple profiles, each having a different anki template and different hotkey triggers.

This is the setup I’m using now to switch between sentence front and vocab front cards. For visual clarity you can also include different css for each profile.

StefanIgnjatovic12 commented 3 years ago

For adding dictionaries separately you may refer to #1345

As for selecting which dictionary to use for the anki card. You can make multiple profiles, each having a different anki template and different hotkey triggers.

This is the setup I’m using now to switch between sentence front and vocab front cards. For visual clarity you can also include different css for each profile.

Thank you, that handlebar works great. How do you switch between the card types though? I'm trying to have it so that scanning with shift uses 1 profile and scanning with ctrl uses another. I used "if modifier keys are" as a conditional as shown here #816 but only the manually selected active one works. I had this working a while ago when I had a setup like yourself for different card types but I can't remember how I set it up.

toasted-nutbread commented 3 years ago

I'm trying to have it so that scanning with shift uses 1 profile and scanning with ctrl uses another. I used "if modifier keys are" as a conditional as shown here #816 but only the manually selected active one works. I had this working a while ago when I had a setup like yourself for different card types but I can't remember how I set it up.

You would have to set up multiple scanning inputs on the main profile, and on the secondary profile, have a condition which checks if the modifier key is pressed.

To configure multiple scanning inputs, enable the Advanced toggle, then go to the Inputs section and click the Configure advanced scanning inputs… button. Add a new input which is the same as the primary mouse input (usually the top one in the list), then change the input to Ctrl for your case.

StefanIgnjatovic12 commented 3 years ago

I'm trying to have it so that scanning with shift uses 1 profile and scanning with ctrl uses another. I used "if modifier keys are" as a conditional as shown here #816 but only the manually selected active one works. I had this working a while ago when I had a setup like yourself for different card types but I can't remember how I set it up.

You would have to set up multiple scanning inputs on the main profile, and on the secondary profile, have a condition which checks if the modifier key is pressed.

To configure multiple scanning inputs, enable the Advanced toggle, then go to the Inputs section and click the Configure advanced scanning inputs… button. Add a new input which is the same as the primary mouse input (usually the top one in the list), then change the input to Ctrl for your case.

That got it working, thanks for the help.