Open Omikhleia opened 2 years ago
Confession time? I've actually never made any use of the inline help system at all. Maybe zero. If the documentation doesn't get me going on something I go straight to the source code via a fancy fuzzy grep system to find the function definition. When things go wrong the stack trace is far more useful for finding where things are being done.
This should probably be overhauled to be consistent, but before we do that I think we should decide who and what it is for, when and where it shows, and from there how it should function. Then we should overhaul the built in functions and packages to actually meet that need.
I didn't even know we had an inline help system. I usually just ripgrep
inside /usr/share/sile
:upside_down_face:
Greetings
SILE 0.10.15 on Ubuntu 20.04
Here is a dump subset of the
SILE.Help
keys, and thewhere
field of each element.What's wrong with it:
\define
)SILE.registerCommand
)(some personal path)/packages/epigraph-experimental.lua
). It turns out thatSILE.registerCommand
uses an incorrect regexp:SILE.registerCommand
can take an explicit package name as argument:It doesn't seem to be widely used (if at all), but the concept seems broken to me, it the "where" field sometimes refer to a path or file name, and sometimes to some string a user / package writer could have (possibly incorrectly) passed.