Chaitanyabsprip / fastaction.nvim

Efficiency plugin designed to optimize code actions in Neovim
MIT License
57 stars 2 forks source link

feat(select)!: Increase number of input letters if #items exceeds #keys #7

Closed eslam-allam closed 2 weeks ago

eslam-allam commented 1 month ago

This pr addresses a bug described in #6 where the plugin fails to map a key to a select item when the number of items exceeds the number of available keys.

This is fixed by increasing the pool of available keys by calculating n-letter permutations of those keys until the length of keys >= number of items.

Chaitanyabsprip commented 1 month ago

Hey @eslam-allam, Thank you for this PR. Please make the required changes.