Skip to content

Where does the description property get used? #9

Description

@rouilj

In the documentation you have a name and a description property. In the codepen example I changed the first command item from:

  {
      name: "Goto Profile",
      handler: () => (window.location.hash = "profile"),
      shortcut: "ctrl+9",
    },

to

  {
      name: "Goto Profile",
      handler: () => (window.location.hash = "profile"),
      shortcut: "ctrl+9",
      description: "See my profile",
    },

Looking at the console output, I can see that the code is processing the updated command definition, but I don't
see the description shown anywhere. It does seem to be used for fuzzy matching though. So maybe that's my
answer for issue #8? Although I would expect a description to be shown to the user and not be used just for search matching.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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