Questions tagged [transients]

8 questions
3
votes
0 answers

How to deal with user arguments with magit transients?

I understand the infix flags work. However, I'm not sure how best to work with argument inputs. I have read the docs as well as looked at some examples from the magit source code but it's still a little bit beyond me as I need some really basic…
zcaudate
  • 637
  • 4
  • 14
2
votes
1 answer

How to provide a dynamic default value for option in magit transient?

I can define a custom option with: (transient-define-infix my-option-infix () :description "My Option" :class 'transient-option :shortarg "-o" :argument "--my-option=") But how can I initialize the value depending of the current buffer ?
Balaïtous
  • 173
  • 7
1
vote
1 answer

Is it possible to eval code as a transient group description?

I want to customize the title of a transient group based on the value of some variable, my--current-section. The following doesn't work (transient-define-prefix my--prefix () "Sample docstring" `[,(format "Manage (current section: %s)"…
1
vote
1 answer

modify existing transient - set some argument "active" by default

I'm trying to modify a transient defined in python-pytest and add some suffix for pytest-django extension. I would like one of my arguments to be "active". It is similar to https://emacs.stackexchange.com/a/66462/13945, but I cannot modify the…
0
votes
0 answers

How to programmatically set the same flag for multiple transient-values?

How can I programmatically set the same argument (e.g., --gpg-sign=abc123) for multiple transient-values? If I try the following, it seems that the value of adamliter/my-gpg-key-sign-git-arg does not get expanded. (setq adamliter/my-gpg-key…
Adam Liter
  • 143
  • 6
0
votes
1 answer

How can I use 'transients' in 'magit' to enable case-insensitive search?

I got it working a year ago, then my machine died. I've been unable to figure out the interface to transient. When I view the levels (green and red, with numbers in them), I hit '-i' but see an error 'wrong type argument: (or eieio-object class),…
jmckitrick
  • 21
  • 5
0
votes
1 answer

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 Transient? The documentation makes it clear that it's…
Webdev Tory
  • 319
  • 1
  • 10
0
votes
0 answers

How to kill a transient buffer?

I'm a emacs 28.0.50 user (compiled by my own) and my config is based on spacemacs v0.200.8 I've noticed that, when I'm on a transient buffer and type 'q', the buffer goes away but still in my buffers list. How can I set some key to actually kill a…
Ariel Serranoni
  • 153
  • 2
  • 6