Official Google Translate crome extension (id:aapbdbdomjkkjkaonfhkkikfgjllcleb) has neat modes of functionality:
"immidiate popup" - when you select a text, a popup instantly appears right under or above selection.
"icon to popup" - when you select a text, an icon appears near cursor, clicking the icon opens popup.
Another mode is found in SkyEng translator (id:heeikiohkfkolhmdodhcjdklofmhmmhn) - it activates popup when 'shift' was pressed during selection.
I believe such mode of functionality could be convenient for anki-adder as well, having a note form in this such popup. But it's very intrusive when you are not in learning mode, but just browsing. So, it's better to make it easily switchable on/off somewhere. Perhaps, the finest way is to check if anki is running and only then activate the popup. Also, when in 'learning' mode a user might want to use some translation extension as well.
The complete use case:
user selects a text on a page -- a icon or popup with form appears
user chooses a field to fill -- the selection is put into the field
user may then edit fields in the popup
user clicks back on the page, or 'x' icon on popup -- the popup disappears
steps are repeated to fill all needed fields.
then user cicks 'save' in the popup -- and the data is saved
I would go with your idea of making it a switchable option.
The idea of pressing shift while selecting text seems less intrusive and practical as most Anki users have multiple extensions which use the double click.
Official Google Translate crome extension (id:aapbdbdomjkkjkaonfhkkikfgjllcleb) has neat modes of functionality:
Another mode is found in SkyEng translator (id:heeikiohkfkolhmdodhcjdklofmhmmhn) - it activates popup when 'shift' was pressed during selection.
I believe such mode of functionality could be convenient for anki-adder as well, having a note form in this such popup. But it's very intrusive when you are not in learning mode, but just browsing. So, it's better to make it easily switchable on/off somewhere. Perhaps, the finest way is to check if anki is running and only then activate the popup. Also, when in 'learning' mode a user might want to use some translation extension as well.
The complete use case: