#1666·superfile

Make zoxide modal size configurable (visible results, width/height)

Author: Alex-2801Created Sep 30, 2026Updated Sep 30, 2026

Is your feature request related to a problem? Please describe. The zoxide modal (open_zoxide, default z) only ever shows 5 results at once and is fixed to half of the terminal width. With a larger zoxide database you have to scroll a lot, and long paths get truncated even on wide terminals, although there is plenty of space left on screen.

Looking at the source (v1.6.0 / current main), both values are hardcoded:

  • src/internal/ui/zoxide/consts.go: maxVisibleResults = 5
  • src/internal/model.go: m.zoxideModal.SetWidth(m.fullWidth / 2) and SetMaxHeight(m.fullHeight / 2)

So the modal can never grow beyond 5 rows, even though maxHeight would allow more.

Describe the solution you'd like Make the zoxide modal size configurable in config.toml, e.g.:

toml
# Maximum number of results visible at once in the zoxide modal (default: 5)
zoxide_max_visible_results = 10
# Width/height of the zoxide modal as percentage of the terminal (default: 50)
zoxide_modal_width = 70
zoxide_modal_height = 60

Alternatively, derive the number of visible results from the available modal height (maxHeight - renderOverhead) instead of the fixed constant, so the modal uses the space it already has.

Describe alternatives you've considered

  • Maximizing/zooming the terminal pane: makes the modal wider, but still only 5 rows.
  • Using zi (zoxide + fzf) in the shell: works, but leaves superfile.
  • Patching the constant locally: has to be redone on every update.

Additional context superfile v1.6.0, macOS, WezTerm. I'm happy to test a PR.