I wish there was a way to pack shell completions and man pages together with the output binaries. Package distribution is tricky; it all being a single archive feels a lot nicer on the surface (though it may be entirely unfeasible).
-
Show this thread
-
Okay so if $MANPATH is where the OS looks for man pages, couldn't we create a virtual filesystem that can then interpret man pages from binaries? The question then becomes how to register those binaries with the file system... maybe a linear scan with magic bytes? maybe flags?
1 reply 0 retweets 1 likeShow this thread -
The auto completion should be feasible; I forget how to do that tho, but I believe there's a way (depending on which shell is used).
3 replies 0 retweets 1 likeShow this thread -
Replying to @yoshuawuyts
I believe fish shell parses man pages for autocompletion of flags.
1 reply 0 retweets 1 like
Heh, that's pretty cool. Though we can statically generate completions in Rust so there's not too much need for it. As long as we can redirect the shells to correctly interpret the completions I think we're good!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.