-
Lately, I got used to Actually, in transient 20240201.1100 and Emacs 28.2 I get the messages:
after pressing I'm not sure whether this is technically doable and whether it fits into the overall tranient philosophy, but I think it would be nice if these prefixes would work for "final" transient commands as well. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Still getting the same behavior in transient 20240830.1817, FWIW. |
Beta Was this translation helpful? Give feedback.
-
So to invoke Like
(keymap-set transient-map "M-5" #'other-frame-prefix)
(keymap-set transient-predicate-map "<other-frame-prefix>" #'transient--do-stay) You could of course use |
Beta Was this translation helpful? Give feedback.
-
I think sort of the point of this discussion is that I perceive these as an atomic key sequence, just like, say, So I was hoping for some generic mechanism in transient that
But I had a look on how So thanks for the pointers, I might give them a try instead, and feel free to close this discussion. |
Beta Was this translation helpful? Give feedback.
-
I use regularly and know about only those mentioned in this discussion already, which for completeness are:
Thanks for caring about this discussion, Transient, Magit, and in general! |
Beta Was this translation helpful? Give feedback.
l l
is actually two commands.l
invokesmagit-log
, which displays a transient buffer and activates a transient keymap.l
invokesmagit-log-current
, because that is what it was bound to in the keymap, which was setup in step 1.So to invoke
magit-log-current
with a prefix argument, you would have to typel C-u l
.Like
universal-argument
,other-frame-prefix
affects the next command.l C-x 5 5 l
won't work out-of-the-box though. You first have to instruct Transient that it should be available in every transient menu and how it affects the "transient state":