I am converting some of my Hydras to Transient. One of them includes a command with shrinks or enlarges one of my split windows, so I hit it repeatedly until I like my size. How to do this in Transient? The documentation makes it clear that it's possible, but I can't find a place where it explains how. It appears to be related to the :transient-suffix 'transient--do-stay
, but I can't figure out where to place this to make some of my commands repeatable. Further, it would be nice to set this per-command or per-group, not just on the whole transient. Here is what I'm working with:
(transient-define-prefix tsa/transient-window ()
;; the following :transient-suffix causes the whole thing to fail at command invocation:
;;; command-execute: Wrong type argument: commandp, tsa/transient-window
;; :transient-suffix 'transient--do-stay
"Window navigation transient"
[["Resize"
("q" "X←" tsa/move-splitter-left)
("w" "X↓" tsa/move-splitter-down)
("e" "X↑" tsa/move-splitter-up)
("r" "X→" tsa/move-splitter-right)]])