yazi icon indicating copy to clipboard operation
yazi copied to clipboard

Expose the `confirm` component to plugin developers

Open hankertrix opened this issue 2 months ago • 0 comments

yazi --debug output

N/A

Please describe the problem you're trying to solve

The confirm component has been implemented since Yazi v0.3.1, so I think it's a good time to expose it to plugin developers.

Would you be willing to contribute this feature?

  • [X] Yes, I'll give it a shot

Describe the solution you'd like

Just a Lua API to show the confirm component.

Additional context

It seems like the API is marked with a TODO for a redesign. Maybe now that the component has somewhat stabilised, it may be easier to design the API for it.

Checklist

  • [X] I have searched the existing issues/discussions
  • [X] The latest nightly build doesn't already have this feature

hankertrix avatar Dec 22 '24 08:12 hankertrix