Embed fzf binary #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
wbij uses quite new features of fzf and my friends have hard time setting up wbij, because default fzf version in ubuntu and debian is too old.
fzf is GO application and can be built into a statically-linked binary. I've managed to do so with attached PKGBUILD.
We can embed fzf binary with
@embedFile, write it to a temporary file, and then execute it withstd.process.Child.runas we do currently. Temporary file creation can be done like instd.fs.AtomicFileor like inpersistance.zig.@kbity what do you think?
jsyk: i've already started work on this; i've decided to just use
std.fs.AtomicFilefor now, since pulling out thewbij.api.persistence.HierarchicalFileStorefeels like overkill for a single filenote to myself: the code i'm intending to push will have to be refactored in #13, refer to https://codeberg.org/ziglang/zig/pulls/30686