Skip to content

Somehow (?) support other-frame-prefix and other-window-prefix with transient #305

Closed Answered by tarsius
farblos asked this question in Q&A
Discussion options

You must be logged in to vote

l l is actually two commands.

  1. First l invokes magit-log, which displays a transient buffer and activates a transient keymap.
  2. The second l invokes magit-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 type l 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":

(keymap-set transient-map "M-5" #'other-frame-prefix)
(keymap-set transient-predicate-map "<other-frame-prefix>" #'tr…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tarsius
Comment options

You must be logged in to vote
2 replies
@tarsius
Comment options

@tarsius
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
- maintainer's bookmark
2 participants