diff --git a/subs2srs.lua b/subs2srs.lua index 26fa623..ad99836 100644 --- a/subs2srs.lua +++ b/subs2srs.lua @@ -437,11 +437,14 @@ local function notify_user_on_finish(note_ids) local query = table.concat(queries, " OR ") ankiconnect.gui_browse(query) + local first_field = ankiconnect.get_first_field(config.model_name) + -- Notify the user. if #note_ids > 1 then h.notify(string.format("Updated %i notes.", #note_ids)) else - h.notify(string.format("Updated note #%s.", tostring(note_ids[1]))) + field_data = ankiconnect.get_note_fields(note_ids[1])[first_field] + h.notify(string.format("Updated note: %s.", field_data)) end end