Back to blog
Nov 04, 2026
3 min read
MRU Pane History: Like Browser Back, for Your Panes

MRU Pane History: Like Browser Back, for Your Panes

Dozens of panes across several workspaces and no back button. I built a Herdr plugin with an fzf popup that lists every pane most-recently-focused first, previews the pane you would land in, and jumps straight to it — plus previous/next keys that step through the focus order.

Every browser has a back button. Every editor has “recently used files”. Terminals? Once you have two dozen panes spread over a handful of workspaces — agents, servers, logs, repl — “go back to where I just was” turns into a tab-hunting exercise.

So I built MRU Pane History for Herdr: one key opens a popup listing every pane across every workspace, most recently focused first, with a live preview of the pane you would land in. Enter jumps to the exact pane. Like a browser’s back history, but for your panes.

Two halves that only make sense together

The plugin is really two pieces shipping as one:

  1. An event hook that records the focus order — the MRU list the picker sorts by.
  2. A popup picker (fzf) that replays that order and previews each candidate pane.

This split is forced by a platform detail: Herdr exposes no last-focused timestamp per pane. There is nothing to sort by after the fact — the order has to be observed as it happens. Hence the hook. Without it the picker is just an unsorted pane list, which is barely better than the sidebar.

The picker itself runs fzf in a popup pane with a preview pane attached, so you see the pane’s live contents before committing:

  • type / backspace — fuzzy-filter the list
  • enter — focus the selected pane (its exact pane, not just its tab)

Keys

Three bindings cover the workflow — one to open the picker, two to step through history linearly:

Key Action
super+u Open the pane-history dialog
super+ctrl+j Previous pane — step back through the focus order
super+ctrl+k Next pane — undo the step

The previous/next pair is what I actually use most. The picker is for “somewhere back there”; the pair is for “the thing I was just looking at,” which is the single most common jump in an agent-heavy session.

Install

Needs Herdr 0.7.4+, plus fzf, jq, and python3 on PATH.

herdr plugin install riogesulgon/herdr-history

Bind keys in ~/.config/herdr/config.toml (any free keys work):

[[keys.command]]
key = "super+u"
type = "shell"
command = "herdr plugin pane open --plugin pane-history --entrypoint picker"
description = "pane history dialog"

[[keys.command]]
key = "super+ctrl+j"
type = "plugin_action"
command = "pane-history.previous"
description = "previous pane"

[[keys.command]]
key = "super+ctrl+k"
type = "plugin_action"
command = "pane-history.next"
description = "next pane"

Reload with herdr server reload-config and start bouncing around.

Source is at riogesulgon/herdr-history, also listed on the Herdr plugin marketplace under the herdr-plugin topic.