LinArcX/telescope-command-palette.nvim

Create a command without a category

lawrence-laz opened this issue · 5 comments

Hi, great plugin, just what I was looking for.

I have one question though. In readme it says:

The idea is that you declare some categories("Help", "Vim", etc..) and inside each category, you define your commands. Each command has three parts:

Does this mean categories are mandatory? Can we create a command without a category?
It's a bit tedious to navigate to a category first and only then go to a command. Since search has fuzzy finding it seems like going straight to a command shouldn't be an issue.

I've tried setting up a command like this:

command_palette = {
...
        { "Reveal file in tree", ":NvimTreeFindFile" }
...
}

But it seems like it just opens an empty category with null commands.

I would like to see this feature as well

@lawrence-laz

The ideas of using category are:

  1. To let people put related commands in the same boat. (think of it like having folders or directories in Linux)

  2. Also it acts like namespaces in programming languages. (you can have same command names in different categories )

Me personally also thought about this and I'm agree that it becomes tedious to access our desired commands just after passing through its category.

I'll will add this feature for people who like a flat palette but also I don't want to break thing as I can, so I'll keep the "category idea".

Another option that comes into my mind is that when people search for a keyword, we start searching recursively in all categories and show the result. But TBH I don't know how to implememt it :)

Zane- commented

Another option that comes into my mind is that when people search for a keyword, we start searching recursively in all categories and show the result. But TBH I don't know how to implememt it :)

I think I would still prefer a flat list, but that does sound like a good option to add

To all, who want this feature, the command center plugin is similar to this one and uses a flat list.