aboutsummaryrefslogtreecommitdiff
path: root/help/genhelp.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-29 18:01:40 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-29 18:03:10 -0500
commit1a1f4a5a54494f91a91c6cc85558d5f1e62e5ca9 (patch)
treebf70c32255c8f81405e8dfd1b64bc16749f1e8e7 /help/genhelp.bqn
parent224d6ed83efb86fa16ac802af65c63d1b97543e2 (diff)
Order help index table like keymap
Diffstat (limited to 'help/genhelp.bqn')
-rwxr-xr-xhelp/genhelp.bqn10
1 files changed, 5 insertions, 5 deletions
diff --git a/help/genhelp.bqn b/help/genhelp.bqn
index 4bf27e09..71251d01 100755
--- a/help/genhelp.bqn
+++ b/help/genhelp.bqn
@@ -1,15 +1,17 @@
#!/usr/bin/env bqn
files ← "README.md"⊸≢¨⊸/ (⍋(¬∊⟜"_.")⊸/¨)⊸⊏ ".md"⊸(-∘≠⊸↑≡⊣)¨⊸/ •file.List ""
+gl ← "+-×÷⋆√⌊⌈∧∨¬|≤<>≥=≠≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!˙˜∘○⊸⟜⌾⊘◶⎊⎉˘⚇¨⌜⍟⁼´˝`←⇐↩⋄,.(){};:?⟨⟩‿·•𝕨𝕎𝕩𝕏𝕗𝔽𝕘𝔾𝕤𝕊𝕣¯π∞@#"
-thing ← {
+rows ← (⍋gl⊸⊐)⊸⊏˝⍉> {
data ← •FLines 𝕩
names ← (⊣∾", "∾⊢)´{(¬·∧`' '⊸=)⊸/⌾⌽(»·∧`⌾⌽':'⊸≠)⊸/𝕩}¨("## "≡3⊸↑)¨⊸/data
t‿d ← ∾/¨(⊏data)=¨"()"
sym ← (+`·»⊸-˝(¬»∧«)∘=⟜'`'∧⎉1"()"=⌜⊢)⊸/ 2⊑data
+ g ← 1⊑sym
sym (1+'|'⊸=)⊸(/+(-´"\|")×{«⊒/𝕨})↩
sym "`,` or `⋄`"⍟("`,``⋄`"⊸≡)↩
- "| " ∾ sym ∾ " | [" ∾ names ∾ "]("∾𝕩∾ ") |"
+ ⟨g, ∾"| "‿sym‿" | ["‿names‿"]("‿𝕩‿") |"⟩
}¨ files
head ← ⟨
@@ -17,9 +19,7 @@ head ← ⟨
⟨⟩
"# REPL Help"
⟨⟩
-"Symbols are listed in alphabetical order of page name, ignoring syntactical roles."
-⟨⟩
"| Symbol | Link |"
"|--------|------|"
-"README.md" •FLines head ∾ thing #rename once you have a proper file.
+"README.md" •FLines head ∾ rows