Skip to content

Conversation

Octogonapus
Copy link
Contributor

@Octogonapus Octogonapus commented Mar 12, 2025

This PR extends the feature added in #54983 by allowing it to work when there is more than one completion (allowing you to always accept the autosuggestion) and adds End as another completion key.
This PR also centralizes the places where completions are managed, rather than in #54983 which split them up.
As in #54983, these two keys only accept completions when there is an autosuggestion presented (the gray text after what you have already typed). Pressing these keys repeatedly won't show a list of completions,
which matches the behavior of similar tools from other environments. These keys are the defaults for other autosuggestions tools I have used like zsh-autosuggestions
and fish shell. For users of zsh and fish, this is a more natural setup.

@Octogonapus Octogonapus marked this pull request as draft March 12, 2025 22:47
@Octogonapus Octogonapus force-pushed the extra_completion_keys branch from 4e2b095 to 663007d Compare March 12, 2025 23:25
@Octogonapus Octogonapus marked this pull request as ready for review March 12, 2025 23:28
@IanButterworth
Copy link
Member

I think this is related but different to #57273 right?

@IanButterworth IanButterworth added REPL Julia's REPL (Read Eval Print Loop) completions Tab and autocompletion in the repl labels Mar 13, 2025
@Octogonapus
Copy link
Contributor Author

Oh I wasn't familiar with that work because I've never seen this behavior work in Julia before. I'll review that stuff later.

@Octogonapus
Copy link
Contributor Author

Ok after review, I've merged up my work with those changes. This PR builds on top of it. Updated the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completions Tab and autocompletion in the repl REPL Julia's REPL (Read Eval Print Loop)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants