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

Bash completion ends after directory #3606

Closed
DuckDuckWhale opened this issue Aug 30, 2022 · 2 comments · Fixed by #4648
Closed

Bash completion ends after directory #3606

DuckDuckWhale opened this issue Aug 30, 2022 · 2 comments · Fixed by #4648
Labels
C-bug Category: This is a bug

Comments

@DuckDuckWhale
Copy link
Contributor

DuckDuckWhale commented Aug 30, 2022

Summary

When I press tab on a directory, the completion ends and starts the second argument. This is very annoying when navigating to find a file and I'd have to backspace and / and tab again after every level.

Reproduction Steps

I tried this:

  1. hx con<tab>the<tab>

I expected this to happen:

hx contrib/themes or hx contrib/themes/

Instead, this happened:

hx contrib theme.toml

Helix log

No response

Platform

Ubuntu 22.04

Terminal Emulator

GNOME Terminal 3.44.0 for GNOME 42

Helix Version

helix 22.05 (8a75795)

@DuckDuckWhale DuckDuckWhale added the C-bug Category: This is a bug label Aug 30, 2022
@maxhille
Copy link
Contributor

maxhille commented Nov 8, 2022

I have the same problem on NixOS-unstable, helix 22.08.1 (66276ce) and bash.

#2022 added completion for bash, fish and zsh. I tested fish and zsh and they seem to work just fine.

I will try to fix this, but I have no idea how bash completions work (yet). Maybe @d12bb could drop a hint or two?

@diktomat
Copy link
Contributor

diktomat commented Nov 8, 2022

Maybe @d12bb could drop a hint or two?

Unfortunately no. I don't use Bash myself and only hacked this part together using lots of Google and Stack Overflow. Glad you've found a solution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants