-
Notifications
You must be signed in to change notification settings - Fork 510
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
Create widgets for bash+zsh+fish #37
Comments
Problem: I don't know how to get input from user in a ZSH widget |
In case anyone is interested in trying it out (for zsh): navi_home="$(echo "$(brew --prefix navi 2>/dev/null)/libexec" || echo "/opt/navi")"
source "${navi_home}/shell/widget.zsh"
# hit alt+g |
this is cool! I would love to have this for the fish shell. |
Looks like this isn't working for navi installed via Linuxbrew:
|
@adworacz the path in the instructions were wrong. I've just updated it. Could you confirm if it's working now? |
I'll do you one better - instead of having the user embed the navi version into their .zshrc, it looks like we can use
That just worked for me, using the 0.9.4 version installed via Note that I had to add |
|
Just want to share this question and this one from stackexchange The second answer from the first question has an excellent detailed description of how to achieve this in Bash. I hope this is helpful. |
There's an initial version for a fish widget here. It doesn't allow editing the command before executing it, though. Could anyone help me? |
Hitting
Ctrl-G
for example could start the script.When selecting an entry, instead of executing it, it could fill the prompt (similarly to ctrl-r).
This way the history will be kept clean and there will be the possibility to edit the command as you like.
Edit: this is done for zsh, bash and zsh already!
Please refer to README.md.
The text was updated successfully, but these errors were encountered: