searching doesn't work for descriptions longer than terminal size
tkossak opened this issue · 0 comments
tkossak commented
Describe the bug
Searching doesn't work for words, that do not fit in one line on current terminal size. When running navi, snippet description line is truncated with ...
and words that would normally follow it (if terminal size was bigger) are not searched/found.
To Reproduce
Add snippet with long description, that doesn't fit in one line on your terminal, eg:
# bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla one
ls
- Press your key shortcut to display navi snippets (
ctrl+g
) - Write "one"
- Observe that above snippet is not displayed
Expected behavior
Navi should display above snippet # bla (...)
containg searched word "one".
Versions:
- OS: Linux Manjaro
- Shell Version: bash but I also tried different shells (xonsh) and the problem is the same.
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)