denisidoro / navi

An interactive cheatsheet tool for the command-line
Apache License 2.0
14.93k stars 498 forks source link

problems displaying snippets using variables with `--- --no-sort` #847

Open tkossak opened 1 year ago

tkossak commented 1 year ago

Describe the bug Snippet that uses variable with --- --no-sort, doesn't work properly. Maybe navi has problems parsing fzf parameters containing single dash?

To Reproduce Install this cheat file:

% test
$ a: echo "123" --- --no-sort
# test
echo <a>

Now start navi, write search query "test" and observe that above snippet is not displayed at all. But if you remove --no-sort from above file, then "test" is properly displayed by navi

Expected behavior "test" snippet should be displayed properly when I search for it using navi.

Versions:

welcome[bot] commented 1 year ago

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