You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, if I add an attribute of, say, #cmdPaletteDesc="Sort the current note's lines ascending" , it will show that in addition to the name.
I know I could just add it to the name, but I felt like having it discrete from the name would, possibly in the future, allow an option to turn descriptions on or off.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, I added this to a new version of the script I'm working on and also changed it so cmdPalette can be empty now (to use the note title by default).
I made a change to the code that might be nice to add to the main codebase. I changed this:
return cmdNotes.map(n => ({ id: n.noteId, name: n.getLabelValue('cmdPalette')}));
to this:
return cmdNotes.map(n => ({ id: n.noteId, name: n.getLabelValue('cmdPalette') + " - " + n.getLabelValue('cmdPaletteDesc') }));
Now, if I add an attribute of, say, #cmdPaletteDesc="Sort the current note's lines ascending" , it will show that in addition to the name.
I know I could just add it to the name, but I felt like having it discrete from the name would, possibly in the future, allow an option to turn descriptions on or off.
The text was updated successfully, but these errors were encountered: