how to add user-configured spotters? #3093
-
What system are you running Yazi on?Linux X11 What terminal are you running Yazi in?kitty 0.42.2
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
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. yazi/yazi-plugin/preset/plugins/file.lua Lines 19 to 30 in b65a880 For example: |
Beta Was this translation helpful? Give feedback.
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.
yazi/yazi-plugin/preset/plugins/file.lua
Lines 19 to 30 in b65a880
For example:
plugins/test-spotter.yazi/main.luaThen in
yazi.tomladd your plugin in spotters sections:Use
name/urlormime: