-
I have this prefix - nothing out of ordinary, I just wanted to have a key that binds to (transient-define-prefix my-transient ()
"Stupid example"
[[("C-c q" "foo"
(lambda () (interactive) (print "foo")))]]) So, why can't I have it like that? Why can I bind it to e.g., |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
OMG, I'm such a fool. Turns out I have put these in my config at some point:
|
Beta Was this translation helpful? Give feedback.
-
Maybe you once disagreed with that and made use of Or, as a second reading of your question suggests, you still want to use This is not possible, because Transient binds some key (by default
It is useful that the same key can be used at any level, because then it is possible to keep typing the same key, to keep moving up one level at a time. And because IMO the only reason why one might want to use ... You just posted a follow up ... well I spend some time on this reply ... so I'll post it anyway. Might help someone else. |
Beta Was this translation helpful? Give feedback.
-
I am sincerely sorry for wasting your time. I'm still glad I was able to figure it out - this weirdness been haunting me for a while. |
Beta Was this translation helpful? Give feedback.
q
is not reserved for exiting the transient by default. In fact I think that it is important thatq
is available without restrictions for use in individual transients, just like all the othera
...z
are.Maybe you once disagreed with that and made use of
transient-bind-q-to-quit
, and have since forgotten about that. See https://magit.vc/manual/transient/FAQ.html#Why-does-q-not-quit-popups-anymore_003f-1.Or, as a second reading of your question suggests, you still want to use
q
(instead of the defaultC-g
) to exit the menu, but want to be able to useq
anywhere in a key sequence, except at as the first event.This is not possible, because Trans…