Skip to content

✨ feat(mq-repl): complete string literals from loaded document structure - #2223

Merged
harehare merged 2 commits into
mainfrom
feat/repl-document-structure-completion
Aug 19, 2026
Merged

✨ feat(mq-repl): complete string literals from loaded document structure#2223
harehare merged 2 commits into
mainfrom
feat/repl-document-structure-completion

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

Offer heading text, YAML/TOML frontmatter keys, and dict keys found in the currently loaded input as completions inside string literals (e.g. select(to_string() == "..." or get("...")), instead of only static builtins/selectors.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

Offer heading text, YAML/TOML frontmatter keys, and dict keys found in
the currently loaded input as completions inside string literals (e.g.
select(to_string() == "..." or get("...")), instead of only static
builtins/selectors.
…ndex

Consolidate the heading/frontmatter-key/dict-key completion caches,
which are always rebuilt together, into a single DocumentIndex struct
built up-front (mirroring how hir is constructed) instead of three
loose fields mutated in place.
@harehare
harehare merged commit e0c1966 into main Aug 19, 2026
10 checks passed
@harehare
harehare deleted the feat/repl-document-structure-completion branch August 19, 2026 12:51
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