-
Notifications
You must be signed in to change notification settings - Fork 515
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/bash/zsh]: Placeholder completions missing #422
Comments
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :) |
Are you using skim instead of fzf? |
nope! > fzf --version
0.23.0 (brew) |
I'm not able to reproduce the problem :( Is there a |
Could you share your |
here's my
|
I'm still not able to reproduce it. Do you mind running the following?
|
|
still unable to see the placeholders in anything after 2.10.0, not sure how I can help here
|
I really don't know how to investigate this 😢 But I assume this is a very local problem because no one else has reported it yet (or maybe they gave up using navi?) Are you a software developer? If so, could you try debugging this from your end to give me more input? You just need to:
Hopefully this will help me narrow the root cause down Thanks! |
i am! let me repro in a clean install on a parallels vm. it could be people don't use the parameterization to fill out commands very often (and use it more like i have 2.10.0 pinned (which has always worked) and not later versions but will definitely help to try to help debug this more |
Ok! Please let me know if I can be of any help |
@denisidoro let me know if this is any of use! the bug looks is maybe related to the rework around v2.10 let value = if let Ok(e) = env_value {
e
} else {
variables
.get_suggestion(&tags, &variable_name)
.ok_or_else(|| anyhow!("No suggestions"))
.and_then(|suggestion| {
let mut new_suggestion = suggestion.clone();
new_suggestion.0 = replace_variables_from_snippet(&new_suggestion.0, tags, variables.clone(), config)?;
prompt_with_suggestions(variable_name, &config, &new_suggestion, interpolated_snippet.clone())
})
.or_else(|_| prompt_without_suggestions(variable_name, &config))?
}; v2.13 let value = if let Ok(e) = env_value {
e
} else if let Some(suggestion) = variables.get_suggestion(&tags, &variable_name) {
let mut new_suggestion = suggestion.clone();
new_suggestion.0 =
replace_variables_from_snippet(&new_suggestion.0, tags, variables.clone(), config)?;
prompt_finder(variable_name, &config, Some(&new_suggestion), variable_count)?
} else {
prompt_finder(variable_name, &config, None, variable_count)?
}; from my simplified
the verbose step by step (with 2 placeholders)
we can see here
|
Thanks! This is very helpful! While I debug it, would you mind pasting the output for the following command (assuming there are no credentials): env | grep before |
Also, could you share the output for |
What if you run |
we're still is missing the placeholders with fish (but did the same with set -gx FZF_DEFAULT_OPTS ""
target/release/navi --finder fzf here's my
and my
nothing shows up here: > env | grep before
<EMPTY> |
i ran into a new error with an empty
|
You're using the version you built from master (>=v2.13.0), right? Then, internally it's calling the system-level navi (<=v2.10.0), which doesn't contain the Please try to make your local build be the system-level one, at least temporarily. Something like (I could try reusing the same binary used as entry-point but the code would become more complex, possibly a little bit slower. I may revisit that, though) |
so having gone through a few different steps with my config, it looks like i have this disabled by default because of large globs of code can slow down the experience |
Alternativetly, you can add something like this to your alias navi='FZF_DEFAULT_OPTS="" navi' |
i use also, is there a place for us within |
yeah. you can run |
No, but given that navi requires this flag to be a certain value, it doesn't make sense to read it from |
thank you so much for helping me figure this out! also, just noticed your comment 🤦♂️
|
Related: #447 |
Describe the bug
The original issue in #419 seems fixed, but I'm missing the placeholders when filling in my commands
To Reproduce
Steps to reproduce the behavior:
navi
(completion should contain<placeholder>
<placeholder>:
is missingExpected behavior
<placeholder>:
should appearScreenshots
2.12.1
2.10.0
Versions:
Additional context
I also noticed
maybe related to the bug?
The text was updated successfully, but these errors were encountered: