Guidance on how to set :transient to a variable or function #450
-
|
Request guidance on how to set the suffix slot |
Beta Was this translation helpful? Give feedback.
Answered by
tarsius
Jul 8, 2026
Replies: 2 comments
-
|
This is documented in Transient State. Basically you define a "pre-command", which returns a boolean and maybe sets some variables. Look at the existing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kickingvegas
-
|
Thanks! Got a working solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is documented in Transient State. Basically you define a "pre-command", which returns a boolean and maybe sets some variables. Look at the existing
transient--do-*for inspiration. Most pre-commands return a constant, yours doesn't have to.