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.
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.