-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transient interface #13
Comments
Resolves louietan/anki-editor#79 and allows local binding of, for example, the transient interface (#13).
Create a transient user interface for all anki-editor commands. See #13 for discussion.
Okay, the first version of the transient is out. Feel free to give it a try and come with suggestions for how the anki-editor workflow can be made more smooth. @cmirdesouza @doolio The transient is in a separate module. In my setup with straight.el I load it like this: (use-package anki-editor-ui
:defer t
:after anki-editor
:straight (:host github :repo "louietan/anki-editor" :fork "orgtre")
:bind (:map anki-editor-mode-map
("C-c e" . anki-editor-ui))) |
I really liked the idea, i was thinking on how the org-agenda works and i didn't think about magit, but it seems like a wonderful feature for better user experience. |
@cmirdesouza Thanks for testing! Indeed I see the same issue appearing randomly also without Doom, but very rarely and I fail to find a way to reliably reproduce it. The problem seems to be that when a command called by the transient user interface immediately calls a We could work around this by passing all the user input using the transient user interface (or maybe by introducing a delay?), but this would be awkward in this setting and we shouldn't have to. As the |
This is a great addition, thank you. Curious why you kept in separate from the main file? One thing I've noticed when using this UI is that the (I'm starting to use this more now so I'll report any other issues I encounter as and when they arise.) |
Thanks for testing this and reporting issues! I'll try to resolve the issue with I kept it separate to not force transient as a dependency for anki-editor. The transient package is quite big (4000+ lines) so one wouldn't want to load it unless necessary. Also, this seems to be almost standard practice for Emacs packages. |
That's fair. Though isn't |
The UI allows one to delete a note but does so only in Anki. Perhaps, an option to delete in Anki and the Org file should be included? |
Yes, this option is already there actually: With a universal prefix argument ( |
I'm working on a transient user interface to anki-editor and am opening this issue to collect feedback and suggestions. It would resolve issues like louietan/anki-editor#79 and beyond. An alternative would be a hydra, but I am already familiar with transient and think it is more flexible.
The text was updated successfully, but these errors were encountered: