Replies: 1 comment 3 replies
-
Which version are you using? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to make a script that automatically hoists a note when it is selected. I'm able to achieve this with the following line:
api.setHoistedNoteId(api.getActiveTabNote().noteId);
One problem: unhoisting a note while viewing its child will bring focus back to the hoisted note. The script then runs again, causing the note to immediately hoist itself a second time. The only way to actually unhoist the note is to do it while the parent note is being displayed.
Ideally, I would have the script only run if the previously selected note is not its child. I scanned the API docs for a workaround but I'm stumped. Any suggestions are appreciated!
Beta Was this translation helpful? Give feedback.
All reactions