denisidoro / navi

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

zsh widget results vary with terminal width #878

Open jkroes opened 9 months ago

jkroes commented 9 months ago

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: