Works most of the time! But if I exit the dired buffer in some unexpedted way (i.E. I suddenly decide that dired was not the way to go to my file but recent files are) the hydra stays. That is anyoing because the keybindings don't make sense in the new context.
Is there a way to close hydra when the current buffer is closed or unfocused in any way?
Thanks!
To make me remember keybindings while in dired mode, I made this hydra (well I copied most of it from somewhere):
Works most of the time! But if I exit the dired buffer in some unexpedted way (i.E. I suddenly decide that dired was not the way to go to my file but recent files are) the hydra stays. That is anyoing because the keybindings don't make sense in the new context.
Is there a way to close hydra when the current buffer is closed or unfocused in any way? Thanks!