Skip to content

Add a completion acceptance callback - #120

Open
hiroki23 wants to merge 7 commits into
reeflective:masterfrom
hiroki23:feat/completion-accept-callback
Open

hiroki23 wants to merge 7 commits into
reeflective:masterfrom
hiroki23:feat/completion-accept-callback

Conversation

@hiroki23

Copy link
Copy Markdown

Summary

  • add an optional OnAccept callback to each completion candidate
  • invoke it only after the candidate is inserted into the real input line
  • cover callback timing and cursor state

This lets callers associate application-specific follow-up behavior with the exact menu candidate the user accepted, without affecting virtual candidate selection.

Tests

  • GOCACHE=/tmp/type-rb-go-cache go test ./...

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