Add fztlib: fzt as a library for apps that draw the menu themselves #8

Merged
nelsong6 merged 1 commit from host-dll into main 2026-10-24 02:08:54 -07:00
nelsong6 commented 2026-10-24 01:54:58 -07:00 (Migrated from github.com)

Apps that want fzt's menu drawn in their own window (first: spotify_player's command palette) need fzt in-process, not a full-screen terminal program. host.Session runs a headless tree session and returns the rows, prompt and pick as data, and cmd/fztlib exports it as C functions over JSON, built as fzt-windows-amd64.dll on each release. A new PR check runs go test and builds the DLL, since the release would otherwise be its first build.

Apps that want fzt's menu drawn in their own window (first: spotify_player's command palette) need fzt in-process, not a full-screen terminal program. `host.Session` runs a headless tree session and returns the rows, prompt and pick as data, and `cmd/fztlib` exports it as C functions over JSON, built as `fzt-windows-amd64.dll` on each release. A new PR check runs `go test` and builds the DLL, since the release would otherwise be its first build.
Sign in to join this conversation.
No description provided.