Skip to content

Search bar Vim mode #4569

Description

@jjw24

This issue proposes to add Vim mode to flow's search bar. If you are interested in having this feature added, please put a thumbs up.

PR #4541:

An opt-in Vim editing mode to the search bar. Toggle it in Settings → General → "Enable Advanced Vim Mode". It is off by default — when disabled, the search bar behaves exactly as before.

Modes

  • Insert (default) — normal Flow Launcher behavior
  • Normal — block caret; keys are interpreted as commands
  • Visual / Visual Line — character-wise / whole-query selection

A small color-coded dot at the left of the box shows the current mode (hidden in Insert).

Normal mode

  • Motions: h l w W b B e E 0 ^ $ %, f/F/t/T{char} with ;/, repeat, and j/k to move through the results
  • Editing: x X s S r{char} ~ dd cc D C Y p, gu/gU, undo u / redo Ctrl+R
  • Operators + text objects: d c y gu combined with iw/aw, i"/a", i'/a', i(/a(, i[/a[, i{/a{ (e.g. diw, ci", ya()
  • Repeat & counts: . repeats the last change; most motions/operators accept a count (3w, 5x, d3w, 3f,)
  • Mode switch: i I a A v V

Visual mode

Extend the selection with any motion, then operate on it: x/d, y, c/s, r{char}, ~, gu/gU. i/a start a text object, o swaps the selection ends, Esc returns to Normal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions