You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started to look into this just now, but I haven't figured out the easiest way to do this yet. I'm just recording the few things I learned in case anyone wants to help do this.
The help buffers are called popups in magit and are just plists. See magit-dispatch-popup.
The bindings in the popup are not derived from mode maps. They're defined independently as "actions" in the plist. That means that the bindings that show up in the help buffer are correct and work as written ("k" is still discard for example). The fact that the magit keymaps are evilified means that these bindings do not reflect the bindings when the help buffer is not showing.
It seems that all one needs to do is modify the :actions element of the plist (actions is a list mostly consisting of elments of the form (event description command)). Here's a sketch of a way to do this (find-new-magit-event doesn't exist yet)
I don't know an easy way to do this automatically yet. I was thinking about building up a translation table from commands to events as the magit maps are being evilified and using this to translate the popup bindings. However, there are quite a few popups and quite a few maps to deal with in magit.
Hope that helps
The text was updated successfully, but these errors were encountered:
I started to look into this just now, but I haven't figured out the easiest way to do this yet. I'm just recording the few things I learned in case anyone wants to help do this.
magit-dispatch-popup
.:actions
element of the plist (actions is a list mostly consisting of elments of the form(event description command)
). Here's a sketch of a way to do this (find-new-magit-event
doesn't exist yet)Hope that helps
The text was updated successfully, but these errors were encountered: