-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
oilshell escapes completion candidates #915
Comments
Basically I ran into a lot of problems doing what I want with GNU readline. It may be that we have to go back to bash-style completion with scrolls the screen, and has the annoying "Display 100 candidates?" prompt. And then we provide APIs so people can write stuff like ohmyzh or ble.sh in Oil -- issue #663 |
It's just something i noticed as other shells don't do this. |
Yeah there are a lot of other choices, issue #460 is related. Unfortunately we need contributions for all the interactive stuff; I'm still focused on the language and runtime mainly.
I'm not sure if there are fancy ones in C/C++ -- I think zsh and fish have them tightly integrated and not reusable. But in theory we can reuse one in Rust if it exposes a shared library interface. |
Hi @rsteube , we just noticed the https://github.com/rsteube/carapace-bin project over on the Oil Zulip: I wonder how it's going and if this escaping issue is still a problem? Glad to see this effort I haven't thought about it that much, but I just did some stuff with GNU readline, so maybe we can figure out a solution ... |
Well it's not really a problem, but yes it still has this behaviour. Descriptions are kinda "hacked in" anyway. Recently learned about ble.sh which managed to replace readline in pure bash 😮 : |
In that screenshot, is that the default ble.sh, or is that running with some of your enhancements? And yes ble.sh is almost certainly the biggest shell program in the world! We've been working on it on #653 and #1069 https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Programs-in-the-World I've never seen the stackoverflow trick for descriptions ... So does it actually work with OSH? |
Default ble.sh with starship prompt - just enhanced with the completions. |
Specifically, for complete -F bashfunc This makes upstream git-completion.bash work! (one old copy is in testdata/completion/git-completion.bash) It uncovered some bugs in 'complete -W' though. There are more tests we can do. This is issue #915.
Sorry for the long delay on this -- we had sort of lost steam on completion, and are now back to it, for YSH So OSH is more compatible now Released - https://www.oilshell.org/blog/2023/09/release-0.18.0.html |
Oil escapes special characters in the completion view which makes descriptions a bit harder to read.
Btw. is there no pager for completions?
The text was updated successfully, but these errors were encountered: