glutanimate / batch-editing

Batch Editing add-on for Anki
https://ankiweb.net/shared/info/291119185
Other
15 stars 7 forks source link

Default setting for 'in this field' and 'add after / before/ etc. #21

Open rccalma opened 1 year ago

rccalma commented 1 year ago

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Problem case

I use Batch Edit with Keyboard Maestro. Part of the automation would be if I could preset the 'in this field' (i.e. the default field) to a field I personally use called NB. Also, I would also greatly benefit if I could set the default button to "add before."

Solution

My solution would be to allow users to set up a default field (in my case NB) with a. fallback to whatever you prefer in case that field is not present. Same thing with the buttons.

More information

n/a

glutanimate commented 1 year ago

Thanks for the suggestion! This would be nice to have for sure. Would restoring the last field selection (if it's available in the present notetype) and the last editing mode cover your use case? I would prefer that approach to keep the add-on simple.

If anyone is passing by and looking for issues to pick up: Would also be happy to accept a PR on this (persisting and restoring the previous selections).

rccalma commented 1 year ago

Thanks for your reply. Yes, I think that would work, especially if that would save you a bunch of hassle.