Repository navigation
Mouse and Selection
Mouse handling is on by default (mouse = true in config.toml).
📸 Screenshot coming here: A drag selection highlighted inside a pane. 🎬 Video coming here: Click to focus, drag to select, wheel to scroll.
| Where you click | What happens |
|---|---|
| Inside a pane | Focus that pane (and its column). The click is swallowed unless the app asked for mouse reporting. |
| Apps with mouse mode (vim, htop, ranger…) | They get every mouse event, remapped to their own coordinates. Hold shift while clicking to force ananta's own selection/focusing instead. |
| On the status bar | Workspace tabs are clickable — click one to switch workspace. |
| On a border | Focuses only; no drag begins. |
| In the overview | Focuses the clicked pane, zooms back in, and centers it. The release right after is swallowed so the app does not receive a phantom click. |
Dragging inside one pane selects text there. The selection stays inside that pane — never borders, never neighbours.
- Press and drag — a character-wise selection highlights as you move.
- Drag past the top or bottom edge — the pane auto-scrolls its history while you drag.
- Release — the text is copied immediately (see Copy and Paste). A press-and-release without moving cancels.
Selection coordinates are logical: history rows first, then the live screen, so a selection keeps meaning across new app output.
- Any keypress clears the highlight.
- A pane dying clears its selection; so does entering copy mode.
📸 Screenshot coming here: Dragging a selection past the bottom edge, auto-scrolling. 🎬 Video coming here: Drag-selecting text inside a pane and copying it on release.
| Mode | Wheel effect |
|---|---|
| Pane on the primary screen | Scroll its history (3 lines per tick) |
| App in mouse mode | Forwarded as raw scroll events |
| Full-screen app without mouse mode | Arrow keys (less / vim-style pagers behave like scrolling) |
| Overview | Vertical wheel changes workspaces; horizontal wheel changes column focus |
| Help overlay | Scrolls the help text |
Ananta decides per event:
- A drag in progress owns its motion and release.
- Wheel is dispatched by pane mode (see the table above).
- Motion with a button is forwarded only to apps in a motion mouse mode; otherwise ignored.
- Releases and other buttons go to the focused app if it requested mouse reporting.
Mouse events reach ananta only when your client terminal is in mouse mode (requested by mouse = true).
🎬 Video coming here: Wheel scrolling in a pane, then in less, then in the overview.