denisidoro/navi

Manually filled in variables aren't populated in output command

isabelgk opened this issue · 2 comments

Describe the bug
I cannot populate an output command when I type a value in manually.

To Reproduce
Example cheatsheet:

% examples
# Display contents of a file
cat <file>

# Echo text
echo <some_text>

$file: ls
  1. Start navi via widget
  2. Use the cat cheat.
  3. Select a file from the list.
  4. Command populates as expected.
  5. Use the echo cheat.
  6. Manually enter a string to echo.
  7. Whether that manually entered value is wrapped in " or not, the output doesn't have the manually entered value.

Expected behavior
As in the documentation, I expect that

If there's a corresponding line starting with $ for a variable, suggestions will be displayed. Otherwise, the user will be able to type any value for it.

Screenshots
asciicast

Versions:

  • zsh 5.8
  • Tested on MacOS, Arch Linux, and Ubuntu 20.04
  • navi version 2.20.1

Additional context
Using skim as fuzzy finder

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! :)

I confirm this is working when using fzf but not skim.

navi's support for skim is minimal, unfortunately.

I'll try to find the root cause but, considering it may be upstream, it's possible there won't be much I can do, besides filing a bug in the skim repo.