joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
174 stars 14 forks source link

Switch to using transient? #97

Open galeo opened 4 years ago

galeo commented 4 years ago

Thanks for this awesome package.

Instead of using hydra, maybe it is more elegant to implement the UI with transient.

joostkremers commented 4 years ago

Yes, it's something I've always wanted to look at. transient seems a much better fit because its use-case is exactly what pandoc-mode does: call a shell command with lots of different command line arguments.

The current hydra-based implementation has a big advantage (for me as the maintainer, I mean). If a new option or switch is added to pandoc, it usually takes only a single line of code to add support for it to pandoc-mode. It took a bit of work to set that up, but it works quite nicely, now. I will have to look at transient more closely to see if that can be made to work.

galeo commented 4 years ago

Hope to hear good news from you soon. Thanks.