Skip to content

Description for commands #2

@sottey

Description

@sottey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions