Skip to content
Discussion options

You must be logged in to vote

Make a plugin return spot function. Because spot function is async context, you can use Command to call shell command and get output. Then display it as you want.

function M:spot(job)
ya.spot_table(
job,
ui.Table(self:spot_base(job))
:area(ui.Pos { "center", w = 60, h = 20 })
:row(1)
:col(1)
:col_style(th.spot.tbl_col)
:cell_style(th.spot.tbl_cell)
:widths { ui.Constraint.Length(14), ui.Constraint.Fill(1) }
)
end

For example: plugins/test-spotter.yazi/main.lua
Then in yazi.toml add your plugin in spotters sections:
Use name/url or mime:

[plugin]
prepe…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@svonjoi
Comment options

@boydaihungst
Comment options

@svonjoi
Comment options

@svonjoi
Comment options

@boydaihungst
Comment options

Answer selected by svonjoi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants