cschiller / zhongwen

Official source code of the "Zhongwen" Chrome extension
https://chrome.google.com/webstore/detail/zhongwen-chinese-english/kkmlkkjojmombglmlpbpapmhcaljjkde
GNU General Public License v2.0
312 stars 52 forks source link

[feature request] Adding words from Built-in Word List to Skritter vocabulary #112

Open R0leeX opened 9 months ago

R0leeX commented 9 months ago

We can already add words to skritter vocabulary. But using the Built-in Word List is more convenient. Would be nice to have a button on the Built-in Word List page to add selected words to skitter.

cschiller commented 9 months ago

You can add words directly to Skritter by using the "s" keyboard shortcut. You don't need to add them to the word list first.

R0leeX commented 9 months ago

Yes, that opens a new window every time. Really annoying when reading something. Would prefer to add them to the world list and later on select some words I want to learn and add those to skritter. Much more convenient and I have the option to select which world I want to add to skritter.

cschiller commented 9 months ago

Skritter doesn't have an API for that, so unfortunately I don't think it's possible to implement this the way you want it.

R0leeX commented 9 months ago

If you are able to add one word using the "s" on the keyboard, then you are able to add multiple as well. If there is no api for adding multiple words just add them one by one using the same api that is used for the "s" key.

cschiller commented 9 months ago

Every time you add a word you will be taken to Skritter, there's no way around it. In other words, since there's no REST API for adding words it won't work the way you imagine.