#4184·k9s

feat: vim-style relative line numbers and numeric jump (11j / 11k)

Author: s-patCreated Aug 20, 2026Updated Sep 20, 2026
Labelsstale



Is your feature request related to a problem? Please describe. Navigating long resource lists (many pods, events, etc.) requires holding arrow keys with no visual reference for how far away a target row is. Users familiar with vim expect to be able to type 11j to jump 11 rows down instantly, but there is currently no count-prefix support and no gutter to reference.

Describe the solution you'd like Two complementary additions modeled on vim's relativenumber + count-prefix:

  1. Relative gutter — a narrow column showing 0 at the cursor row and ascending numbers above and below it, so you can see at a glance "that pod is 7 rows away":
  7  default    my-pod-abc        Running   0   4d
  6  default    my-pod-def        Running   0   4d
  3  default    my-pod-ghi        Running   0   4d
  2  default    my-pod-jkl        Running   0   4d
  1  default    my-pod-mno        Running   0   4d
  0  default    my-pod-pqr        Running   0   4d   ← cursor
  1  default    my-pod-stu        Running   0   4d
  2  default    my-pod-vwx        Running   0   4d
  1. Numeric jump — prefix any movement with a count: 11j moves down 11 rows, 5k moves up 5. Without a prefix, j/k move 1 row.

Both would be opt-in via config (default off):

yaml
k9s:
  ui:
    relativeLineNumbers: true

Describe alternatives you've considered

  • Gutter only (no jump) — loses half the value; relative numbers only matter if you can act on them.
  • Always-on gutter — better as opt-in to not surprise existing users or break narrow terminal layouts.

Additional context Happy to implement this if there is interest. The change would touch internal/config/k9s.go (new config field), internal/view/table.go (digit buffering + j/k handlers), and internal/ui/table.go (gutter rendering via SetSelectionChangedFunc) based on initial research/findings.