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
fish compatibility #171
Comments
What does |
Does this work when using bash, for instance? |
It's up-to-date (GitHub HEAD), v0.17.0. |
In Bash everything works fine, i.e., in the example, I get the expected prompt to select a service. |
Could you please check the behavior when calling |
There was a typo on my previous message. I've fixed it |
Then I do get an input prompt. So one cause appears to be having input-only variables (that would auto-select to none). However, in another case, I observe the same effect (artifical example):
Here, I too get that |
Hi, @curio77. Sorry for the extremely late response. I was on vacations. I'm not able to reproduce the problem. Using Do you still face this issue in the latest version? I know I'm asking too much, but maybe you could find a minimal docker image that has this problem? I wonder if there's a system-level config/binary determining this, as you reported two bugs I'm not able to reproduce. |
I've run this in a docker container and wasn't able to reproduce as well: https://www.katacoda.com/denisidoro/scenarios/navi: cd "$(navi home)/cheats"
vi test.cheat # and paste the code below
cd
echo foo > "my file.txt"
echo bar > "my 'file.txt"
navi # eventually it will print foo/bar
|
Ah, so after some further experimentation, I've found out that my issue only crops up if I invoke navi via Ctrl+G. When I enter I set up navi in fish via |
Instead of pressing Ctrl+G, you can of course also run function navi-widget -d "Show cheat sheets"
begin
stty sane
env NAVI_USE_FZF_ALL_INPUTS=true navi --print query (commandline) | perl -pe 'chomp if eof' | read -lz result
and commandline -- $result
end
commandline -f repaint
end |
Fixed by #174 |
Describe the bug
In fish, navi works as expected for some variables in commands, while for others, it just inserts
query
instead of prompting for a selection. It is not clear to me what the discriminating factor is.To Reproduce
Steps to reproduce the behavior:
docker-compose up -d <service_name>
cheat that ships with navi.docker-compose up -d query
.Expected behavior
navi should prompt for a service name.
Versions:
The text was updated successfully, but these errors were encountered: