Skip to content

feat(keymap_derive): support custom key symbols and help messages#41

Open
rezigned wants to merge 1 commit into
mainfrom
feat/custom-symbol-help
Open

feat(keymap_derive): support custom key symbols and help messages#41
rezigned wants to merge 1 commit into
mainfrom
feat/custom-symbol-help

Conversation

@rezigned
Copy link
Copy Markdown
Owner

Summary

Add support for custom key symbols and help text in keymap attribute definitions.

Changes:

  • Extended #[key(...)] attribute to accept symbol = "..." and help = "..." named arguments
  • Added symbol and help fields to Item struct with builder methods (with_symbol(), with_help())
  • Symbol defaults to first key binding if not explicitly provided
  • Added tests verifying symbol/help parsing and fallback behavior

Example usage:

#[key("ctrl-b", symbol = "^B", help = "jump")]
Jump

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant