Questions tagged [transient-library]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

How to extract optional values ​when `=` is not included in transient.el

I'm worried about seeing transient.el's wiki. from https://github.com/magit/transient/wiki/Developer%20Quick%20Start%20Guide#switches--arguments ("-f" "argument with forced class" ...
user avatar
  • 27
0 votes
1 answer
51 views

Why is the last run in transient-define-prefix?

I use transient.el Press key a but (insert "B") is executed ;; NG case ;; desc is same ;; press a -> B (progn (transient-define-prefix my-test1 () [("a" "desc" (...
user avatar
  • 27
2 votes
0 answers
54 views

how to teach magit to pass multiple push-options at once

GitLab has a few push options for which I'd like to create switches in magit-push's transient. Causing -n to add -oci.skip is simple enough: (transient-append-suffix 'magit-push "-n" '("...
user avatar
  • 143
3 votes
1 answer
40 views

Acceptance test for a flow that uses the transient package?

I am trying to write a test around a flow that uses transient. Here is the sample code: ;; -*- lexical-binding: t; coding: utf-8 -*- (require 'transient) (require 'buttercup) (require 'with-simulated-...
user avatar
  • 1,795
0 votes
0 answers
52 views

Magit-transient: dynamic choices?

I am trying to make the choices in my transients dynamic but I cannot figure out how. Right now, the choices are only evaluated when loaded. Here's a static example: (define-infix-argument choice-rt ()...
user avatar
0 votes
1 answer
120 views

How to persist a transient to make a command repeatable?

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 ...
user avatar
0 votes
1 answer
88 views

Defining a simple transient with a default value

I'm trying to add a very simple transient thus: (transient-define-prefix simple-transient () "A simple transient" ["Arguments" ("-a" "Address (...
user avatar
  • 541
0 votes
0 answers
24 views

How can I define a new group on an existent transient?

I want to customize the forge-dispatch transient. Specifically I want to add new group, Remote, to the right side of Create. And add the new suffix there. As far as I know, transient-{append,replace}-...
user avatar
  • 396
1 vote
1 answer
91 views

Can a transient suffix have a value like an infix?

I'm writing a transient for invoking debchange. It has a number of regular options like --multimaint which I am adding infixes for, and then a handful of mutually exclusive options like --append of ...
user avatar
  • 121
6 votes
1 answer
481 views

How to change the default transient level temporarily? ("Show hidden magit commands")

Many commands that are rarely used in magit are hidden by default. Magit uses the transient.el library for popups and the visibility of infix and suffix commands are controlled by transient-default-...
user avatar
  • 6,824