Skip to content
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

searching doesn't work for descriptions longer than terminal size #882

Open
tkossak opened this issue Feb 19, 2024 · 0 comments
Open

searching doesn't work for descriptions longer than terminal size #882

tkossak opened this issue Feb 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tkossak
Copy link

tkossak commented Feb 19, 2024

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
  1. Press your key shortcut to display navi snippets (ctrl+g)
  2. Write "one"
  3. 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)
@tkossak tkossak added the bug Something isn't working label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant