Skip to content

More Detailed Descriptions for Preset Keymaps #2281

@Daniel-De-Dev

Description

@Daniel-De-Dev

Feature Description

Currently the preset keymaps created by the plugin set the description blink.cmp for all mappings. This isn't very helpful, especially for someone new to the plugin (like me) using Telescope to search keybinds.

This is the current default behavior:
Image

I have already drafted a simple implementation that address this (See Daniel-De-Dev/blink.cmp@9342e94):
Image

The logic is that the plugin name is included alongside all commands the keymap implements (excluding fallback). I also added the mode it applies to ((insert), (snippet)), since single-letter mode indicators dont filter well for fuzzy finders.

I'm not familiar with the codebase, so I expect my changes might not follow all best practices and need improvement/changes. It would be cool to see this feature or something similar implemented on the main branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions