Skip to content

fix(completion): keep semantic directories open - #16359

Open
Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-ylquwslvwtoo
Open

Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-ylquwslvwtoo

Conversation

@Alizter

@Alizter Alizter commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Adjust bash and zsh completion support so that directory candidates are not followed by a space.

Treat slash-terminated semantic values as directory-like in Bash and
Zsh, preventing completion from inserting a trailing space before the
path is complete.

Fixes ocaml#16357

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter changed the title test(completion): record semantic directory spacing fix(completion): keep semantic directories open Sep 8, 2026
@Alizter
Alizter marked this pull request as ready for review September 8, 2026 16:42
@Alizter
Alizter requested a review from ElectreAAS September 8, 2026 17:02

@ElectreAAS ElectreAAS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This PR fixes a currently unobservable bug: there are no command that complete directory names

Nonetheless this actually fixes it, so I am passively approving it.
I think it should stay open until a command actually makes use of the feature, but we could also merge it now if people prefer.

  • tested on zsh

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.

directory completion candidates still generate spaces

2 participants