FeiyouG / commander.nvim

Create and manage keybindings and commands in a more organized manner, and search them quickly through Telescope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requests: ascedent order and remove current CommanderItems

andregpss opened this issue · comments

I have two requests for command.nvim:

  1. Allow the commands to be shown in ascendent order [a-z]. Currently, we can define the components that are sorted, but they appear only in decrescent order [z-a]
  2. A function that eliminates all the current CommanderItems. When I reload the lua script that configures commander.nvim, all the CommanderItems appear twice. In this case, if we could eliminate the current Items, that repetition would not occur.

This commit added commander.clear() API which does exactly what you want in the second request.