Skip to content
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

Update Examples to Include 0.7.0+ Conveniences #32

Open
psionic-k opened this issue Oct 19, 2024 · 2 comments
Open

Update Examples to Include 0.7.0+ Conveniences #32

psionic-k opened this issue Oct 19, 2024 · 2 comments

Comments

@psionic-k
Copy link
Member

Many behaviors are likely a bit simpler in 0.7.0.

See changelog:

https://github.com/magit/transient/blob/main/CHANGELOG#v070----2024-06-18

PR's welcome :-)

@psionic-k
Copy link
Member Author

psionic-k commented Dec 2, 2024

  • transient-scope usage in existing scope example.

  • refresh-suffixes is in use.

  • transient-prefix-value hmmmmmmmmmm

  • transient-init-scope slot on prefixes. (Not a priority. Prefixes can set their scope within their own body before calling setup)

  • The new prefix slots display-action and mode-line-format

  • transient-suffix-object to read the suffix (and likely modify)

  • transient-active-prefix for use with timers

  • transient-with-help-window 🆘 Idk yet.

@psionic-k
Copy link
Member Author

psionic-k commented Dec 7, 2024

https://github.com/magit/transient/blob/main/CHANGELOG#v080----2024-12-06

Now that 0.8 is out, there are more potential updates.

The transient-prefix-value generic function is of particular interest. If a prefix overrides this, its suffixes may use an alternate reality version of transient-args. It appears this can be used to create prefix classes that are less bound to the CLI style design decisions and perhaps more similar to "normal" interactive commands.
https://github.com/magit/transient/blob/main/lisp/transient.el#L3645-L3650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant