Add inline suggestion display API#114
Closed
M09Ic wants to merge 1 commit into
Closed
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #114 +/- ##
==========================================
+ Coverage 38.33% 38.81% +0.47%
==========================================
Files 59 59
Lines 9516 9556 +40
==========================================
+ Hits 3648 3709 +61
+ Misses 5785 5762 -23
- Partials 83 85 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
Superseded by #115, which merged this change (recommitted as a signed commit with your authorship preserved) into |
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.
Background
Applications that build interactive shells often have suggestions that do not come from readline history: AI command suggestions, remote completions, or application-specific prediction engines. These suggestions are best displayed as ghost text after the cursor, similar to history autosuggest, but callers currently have no public API to provide such text.
Approach
Shell.SetInlineSuggestion,Shell.ClearInlineSuggestion, andShell.GetInlineSuggestion.Tests
go test ./...