denisidoro/navi

zsh widget results vary with terminal width

jkroes opened this issue · 0 comments

jkroes commented

Describe the bug
The zsh widget returns different lists of candidates for the same input when using a full-screen and half-screen terminal. The issue seems linked to width_percentage in config.yaml.

Expected behavior
The same input should lead to the same list of candidates.

Screenshots
Half-width terminal:
image

Full-width terminal:
image

** Configuration **

style:
  tag:
    width_percentage: 10
  comment:
    width_percentage: 45
  snippet:
    width_percentage: 45

Versions:

  • OS: macos
  • zsh 5.9 (x86_64-apple-darwin23.0)