Repository navigation
Preview package completions inline while typing - #29
Merged
nebuff merged 3 commits intoOct 25, 2026
Merged
Conversation
The branch was cut from v1.1.3 and had committed unresolved conflict markers in src/main.rs, so it neither built nor merged. Resolve by keeping main's inline-hint, history-picker and syntax-highlighting wiring and layering the package completion preview from issue #25 on top of it. Co-Authored-By: Codebuff <noreply@codebuff.com>
The repository had no workflow at all, so pull requests carried no checks. This mirrors the two gates the project already asks contributors to run locally: cargo test and cargo build --release. Co-Authored-By: Codebuff <noreply@codebuff.com>
nebuff
deleted the
25-typing-time-completion-preview-where-it-is-cheap
branch
October 25, 2026 15:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Shows the rest of a package-provided argument candidate inline in the dim
suggestion colour while the argument is typed:
preview alreads aspreview alpha, and→/End/Ctrl-Faccept it. Only the in-memorycompletion table is consulted, so typing never runs package code or touches
the filesystem (Tab completion still lists every match).
src/packages/lua_api.rs—completion_preview()returns the suffix of thefirst matching candidate, in the same order Tab lists them.
src/main.rs—package_completion_hint()previews the word at the cursorand falls back to the history suggestion when no candidate matches.
docs/packages.md— documents the preview for package authors.Reconciliation
The branch was cut from v1.1.3 and had unresolved conflict markers committed
in
src/main.rs, so GitHub reported it as unmergeable.mainhas beenmerged in and the conflict resolved by keeping main's inline-hint,
history-picker and syntax-highlighting wiring, then layering this feature on
top. The branch now differs from
mainby only these three files.Verification
cargo test: 101 tests passcargo build --release: cleanexecution, history fallback, plus the history-popup regression suite
CIworkflow runscargo test+cargo build --release— check is greenCloses #25
🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com