Skip to content
Discussion options

You must be logged in to vote

Hi, what about this (roughly)?

const note = ... // note I want to move
const originalParentNoteId = note.getParentNotes()[0].parentNoteId;

api.toggleInParent(true, note.noteId, newParentNoteId); // clone to new location
api.toggleInParent(false, note.noteId, originalParentNoteId); // remove the old location

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jobidon
Comment options

You must be logged in to vote
9 replies
@nicollasricas
Comment options

@sigaloid
Comment options

@nicollasricas
Comment options

@nicollasricas
Comment options

@zadam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants