Skip to content

Nash: builtin autocomplete on [ - #3

Open
MicroProofs wants to merge 1 commit into
mainfrom
auto-complete-builtin
Open

Nash: builtin autocomplete on [#3
MicroProofs wants to merge 1 commit into
mainfrom
auto-complete-builtin

Conversation

@MicroProofs

Copy link
Copy Markdown
Contributor

Add a CodeMirror autocomplete popup to the Nash tab that opens on the first word character typed after [, filters by fuzzy subsequence, and inserts the chosen builtin name with a trailing space. Suppressed inside let [ binding vectors, strings, line comments, and #hex literals. UPLC tab is unaffected.

  • src/lib/nash/builtin-meta.ts: BUILTIN_META table (category + signature) for all 101 DefaultFunction entries
  • src/lib/components/playground/nash-completion.ts: CompletionSource, shadcn-themed popup, nashCompletion() extension
  • src/lib/components/playground/nash-language.ts: compose nashCompletion() into nash()'s LanguageSupport
  • src/lib/plutus/index.ts: re-export defaultFunctionArity and siblings
  • src/lib/nash/index.ts: re-export BUILTIN_META and helpers
  • tests covering isBindingVectorBracket and the from anchor

Add a CodeMirror autocomplete popup to the Nash tab that opens on the
first word character typed after `[`, filters by fuzzy subsequence, and
inserts the chosen builtin name with a trailing space. Suppressed inside
`let [` binding vectors, strings, line comments, and `#hex` literals.
UPLC tab is unaffected.

- src/lib/nash/builtin-meta.ts: BUILTIN_META table (category + signature)
  for all 101 DefaultFunction entries
- src/lib/components/playground/nash-completion.ts: CompletionSource,
  shadcn-themed popup, nashCompletion() extension
- src/lib/components/playground/nash-language.ts: compose nashCompletion()
  into nash()'s LanguageSupport
- src/lib/plutus/index.ts: re-export defaultFunctionArity and siblings
- src/lib/nash/index.ts: re-export BUILTIN_META and helpers
- tests covering isBindingVectorBracket and the `from` anchor

Signed-off-by: microproofs <kwhitemsg@gmail.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
uplc 93d454c Commit Preview URL

Branch Preview URL
Apr 18 2026, 10:30 AM

@MicroProofs
MicroProofs requested a review from rvcas April 18, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant