[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggestion: convert dispatchers to use transient
From: |
Anders Johansson |
Subject: |
Re: Suggestion: convert dispatchers to use transient |
Date: |
Mon, 7 Feb 2022 16:37:05 +0100 |
I agree that transient dispatchers would be great and consistent. What is not
so great with transient currently is it’s lacking support for
lisp-variable/option workflows. Transient is good for command-line arguments,
but setting options for emacs functions is not as streamlined (this would be
relevant for the export dispatcher for example).
Some new classes for these types of options would probably need to be defined,
since the default infix-classes assume all options are strings.
I recently did try to implement a transient dispatcher this for my orgqda
package:
https://gitlab.com/andersjohansson/orgqda/-/blob/main/orgqda-transient.el
Partly inspired by org-ql:
https://github.com/alphapapa/org-ql/blob/048de35b07d8d29fc6fa49c34d7ba1fd1c912011/org-ql-view.el#L501
I now store the options as plists in buffer-local-variables, which I am not
sure is optimal and perhaps goes against the idea of saving options with
transient. So still some work to do there.
By the way. Getting started with transient is way easier with this tutorial
than with the rather abstract info pages:
https://github.com/magit/transient/wiki/Developer-Quick-Start-Guide
Best,
Anders Johansson
- Suggestion: convert dispatchers to use transient, Hugo Heagren, 2022/02/03
- Re: Suggestion: convert dispatchers to use transient, Tom Gillespie, 2022/02/03
- Re: Suggestion: convert dispatchers to use transient, Tim Cross, 2022/02/03
- Re: Suggestion: convert dispatchers to use transient, Jim Porter, 2022/02/03
- Re: Suggestion: convert dispatchers to use transient, Tim Cross, 2022/02/03
- Re: Suggestion: convert dispatchers to use transient, Jim Porter, 2022/02/03
- Re: Suggestion: convert dispatchers to use transient, Christopher M. Miles, 2022/02/04
- Re: Suggestion: convert dispatchers to use transient, João Pedro de Amorim Paula, 2022/02/05
- Re: Suggestion: convert dispatchers to use transient, Samuel Wales, 2022/02/05
- Re: Suggestion: convert dispatchers to use transient, João Pedro de Amorim Paula, 2022/02/05
- Re: Suggestion: convert dispatchers to use transient,
Anders Johansson <=