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

make tab completion case insensitive #2

Open
siduck opened this issue Aug 28, 2021 · 2 comments
Open

make tab completion case insensitive #2

siduck opened this issue Aug 28, 2021 · 2 comments

Comments

@siduck
Copy link

siduck commented Aug 28, 2021

Making tab completion case insensitive so it'll match the results well!

@siduck
Copy link
Author

siduck commented Sep 3, 2021

on bash I just have to add this

$include /etc/inputrc
set completion-ignore-case On
set completion-ignore-case On

in ~/.inputrc and the tab completion gets case insensitive

@seankhl
Copy link
Owner

seankhl commented Sep 3, 2021

mksh doesn't have any built-in options to make completion or globbing case-insensitive. There are some workarounds, but it requires a decent amount of reworking of the code. I've been a bit busy, but I will get to this.

You can try feat-case-insensitive, but it's not perfect. It leverages the "query" option in FZF, it'll be easier to see the differences if you try it out. But it won't work in all cases, in particular when there's exactly one case-sensitive autocompletion candidate, it will take it without considering case-insensitive alternatives. But if there's 2 or more candidates, it should work properly whether you type capital or lowercase letters.

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

No branches or pull requests

2 participants