Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document completion menu bindings #10994

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

chtenb
Copy link
Contributor

@chtenb chtenb commented Jun 19, 2024

Document bindings discussed in #10976

| ---- | ----------- |
| `Shift-Tab`, `Ctrl-p`, `Up` | Previous entry |
| `Tab`, `Ctrl-n`, `Down` | Next entry |
| `Escape` | Close menu and accept completion |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior is a little nuanced for escape - it's not directly handled by completion. It's actually ignored by completion and anything ignored by completion (arrow keys for example) cause the completion to be accepted. We may want to remove this from the table here and then have a blurb below that says that anything other than what's in the table causes the completion item to be accepted.

| `Shift-Tab`, `Ctrl-p`, `Up` | Previous entry |
| `Tab`, `Ctrl-n`, `Down` | Next entry |
| `Escape` | Close menu and accept completion |
| `Ctrl-c` | Close menu and reject completion |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only other one that's special cased I believe is Enter which just accepts the completion item

@the-mikedavis the-mikedavis added the A-documentation Area: Documentation improvements label Jun 19, 2024
@chtenb
Copy link
Contributor Author

chtenb commented Jun 20, 2024

Addressed feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-documentation Area: Documentation improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants