Here is some code snippet I made a while ago using some inofficial APIs:
// Only works for concept/descriptor/question cards I think
function resetFocusedCard() {
const rem = window.currentFocusedRem()
const rId = rem._id;
const nextPracticeTime = (new Date()).getTime();
const cards = window.CardCollection(window.currentKnowledgeBaseId());
const card = cards.findOne({rId});
card.update({h: [], n: nextPracticeTime, a: nextPracticeTime, t: 0, l: undefined});
console.info("Reset Schedule of rem", rem.key, "with id", rId);
}
function customShortcuts(e) {
if (e.code === 'KeyX' && e.ctrlKey && e.shiftKey && e.altKey && !e.metaKey) {
resetFocusedCard();
e.stopPropagation();
e.preventDefault();
}
}
window.addEventListener('keydown', customShortcuts);
Execute it in the Console of the Developer Tools (Browser: F12, Desktop App: Ctrl + Shift + I) or store it as a Snippet which can be executed with Ctrl + Enter:
It bind Ctrl + Shift + Alt + X to reset the the flashcard history of a single Concept, Descriptor or Question rem. I don’t think it works with Clozes/Image Occlusion or list/multiline cards, but there are probably ways to extend it this way.
Use with care. Test first if it works for yourself by inspecting the rem using /View Metadata
. I don’t guarantee anything. This is not official RemNote stuff. I only made this for fun back in the days before my time at RemNote.