-
Notifications
You must be signed in to change notification settings - Fork 12
Choose the shortcut key #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
We can now precise the key we want to use in the configuration
It seems that the tradition key allocation may assign a duplicate key and conflict with keys choosed by user. I had indeed implemented a parameter in quickmenu#append to indicate the hot key for each item. But after a short time, I found I was too lazy to think what key should I use, it is very hard to make a choice when I have about 20+ items. I always confused which key to choose for a new item. So, I removed that parameter. |
I am trying to use Quickmenu to help the user learn the shortcuts of my
configuration the way SpaceVim works with their mnemonic panel.
But doing so require to be able to change the default access key of each
element. This indeed imply that the configuration should be done carefully,
but should not be an issue for the user. I can try to improve the code to
check for duplicate in the configuration if you want, to display a warning
if the configuration is not conform and to avoid the hint to bind conflicting keys.
Charles
…On 2 August 2017 at 21:47, Linwei ***@***.***> wrote:
It seems that the tradition key allocation may assign a duplicate key and
conflict with keys choosed by user.
I had indeed implemented a parameter in quickmenu#append to indicate the
hot key for each item. But after a short time, I found I was too lazy to
think what key should I use, it is very hard to make a choice when I have
about 20+ items.
So, I removed that parameter.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFKW42XYa6Wm8j_0MPy1idwRtajXXVquks5sUNJtgaJpZM4Orhco>
.
--
Ph.D Student
Sorbonne Universités, UPMC Univ Paris 06, CNRS, LIP6 UMR 7606
|
Hi, I have updated this pull request.
will trigger the warning. |
Also: can deal with multiple panel now
Hi,
Moreover these changes are compliant with the last version of the quickmenu using functor. Hope these changes will be taken into account, |
@CharlesGueunet I don't know if this PR is going to be merged but just a heads up: The duplicate binding warning should occur after |
This commit fix @Vixyd comment, There is no more warning for duplicate during startup, Duplicates found at runtime are reported on the message section (background). The only counter intuitive case would be if user-defined and automatic key maps are mixed (unlikely). In this case, if a user-defined key map is already in use by a previous automatically assigned item, the user-defined key map is ignored (and a warning is raised). This would be costly to check and is now documented.
Sorry for replying late,as vim 8.2 and neovim 0.4 released, it is possible to create something cool. and I bring your ideas to a new plugin: vim-quickui. the successor of quickmenu. |
Hi,
This pull request add the ability to choose which key to use for a new entry on the panel.
Best regards,
Charles