-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
menu_complete key binds disappear randomly #561
Comments
Your observation is correct. These behaviors are expected.
It might be confusing to the user, but it's not random. Keymaps are initialized by lazy loading, which means that they will not be initialized until they are actually used. In the case of the
It can actually be edited, but it just cannot be viewed until the keymap is initialized. The user keybindings specified before the initialization of the keymap are recorded elsewhere (e.g. you can run
The reason that you always see the content of the If you want to manually initialize the keymap, you can run the following command: $ ble/decode/keymap#load <keymap_name> where $ ble/decode/keymap#load menu_complete After this, you should be able to see the contents of the keymap by Note: The function |
Thanks a lot. You are right, they can still be edited, and they appear after I use menu completion. I also have another issue with menu complete. I use this project to enable completion for aliases: https://github.com/cykerway/complete-alias But the first time I use an alias with blesh enabled, I get this issue: As you can see, the completion is also adding the option description to the command. Once I run completion for the original command once (in this case it's chezmoi), and run the alias again, I get the correct behavior: Without blesh, I don't have this issue (because there's no menu completion anyway). I understand if this cannot be fixed because I'm using that other project. I think ble.sh is a much more complex project than it seems at first! It would be great if the documentation was organized a bit better, according to the common tasks that people might want to accomplish. |
Could you turn off this setting and instead set Actually, as you notice by the option
This is caused when the external completion setting includes the description directly in the completion candidates it generates. I don't like this hack because we cannot tell a priori whether the candidates generated by the external completion settings would include description in the completions itself.
I think the Just the combination of
Thanks for the suggestion, but could you explain in more detail what you are specifically thinking about? How would you think we can reorganize the documentation to help people in the present case? |
I'm thinking of whether it would make sense and wouldn't cause conflicts to forcibly initialize the keymap when the user attempts to print the contents of the keymap explicitly specified as As for |
Thanks, I didn't know that blesh already has this functionality, in which case I do not need the
Thanks, I thought that must be the case, because I noticed
That was more of a general comment than specific to this issue. If I have some concrete suggestions, I will take note of them and let you know after I'm done setting up blesh. For one thing, I think you should include a general overview of the features at the top of the main
That might be a good idea, because it was confusing as a user. But I don't really know about the internals of blesh so I don't know if there can be any conflicts |
Sometimes the
menu_complete
keybinds seem to disappear and cannot be edited or viewed. Other times they work fine. I've included screenshots.Working fine:

Gone:

Other keybinds, like
auto_complete
are still listed if I just runble-bind
, but it doesn't show anymenu_copmlete
entries.The text was updated successfully, but these errors were encountered: