Skip to content

Navigation

juxt has three navigation modes and a command mode. All modes share the same core key bindings; the modes differ only in how letter keys are interpreted.

Switch modes at runtime with :mode tap|seek|pin, or set a default in the config file.


Universal keys (all modes)

These bindings work identically regardless of which mode is active.

Image navigation

Key Action
← / → Cycle the primary axis (most recently focused)
↑ / ↓ Cycle the secondary axis (second most recently focused)
Scroll wheel Step forward / backward on the primary axis
Shift + scroll wheel Step forward / backward on the secondary axis
Space Toggle between current and previous position — the main comparison tool
Home / End Jump to first / last value on the primary axis
1 – 9 Jump to the Nth value on the primary axis

View controls

Key Action
double-click Fit image to window
0 Reset zoom to 100%
Ctrl + scroll wheel Zoom in/out, anchored under the cursor
Click + drag Pan the image
Right-click Context menu: copy the image path or the image itself
Enter Toggle fullscreen
Ctrl+Shift+H Toggle the status bar
Ctrl+Shift+I Toggle the info sidebar
Ctrl+Shift+G Open the grid builder dialogue
Ctrl+Shift+C Copy the current image path to the clipboard
Ctrl+Shift+K Toggle the shortcut sidebar
Ctrl+C Copy the text selected in a sidebar; with nothing selected it cancels a command or value picker (sidebar.copy : off never takes the chord for copying)

Fit mode. juxt starts with the image fitted to the window, and stays in fit mode: the image is fitted again when the window is resized and when you step to an image of a different size. Images of the same size keep the view as it is, so a pan along a fitted height or width survives flipping through congruent plots. Fit mode ends when you zoom (0, :zoom N, Ctrl + scroll wheel) or run :fit-off, which leaves the current zoom as it is. :fit, :fit-height, :fit-width or a double-click start it again.

Other

Key Action
: Open command mode
Escape Exit fullscreen or cancel an active selection / command

The focus stack

Arrow keys always navigate the two most recently focused axes, regardless of mode. The focus stack tracks which axes have been touched most recently:

  • ← / → navigate the primary axis, focus_stack[0] (the most recently focused axis)
  • ↑ / ↓ navigate the secondary axis, focus_stack[1] (the second most recently focused axis)

Any action that selects or navigates an axis promotes it to the top of the focus stack.


tap (default)

Each axis is assigned one letter key. Tap it to step forward (+1); hold Shift to step backward (−1). Every navigation is a single keypress — no prefix, no menu, no mode to enter first.

Key Action
Lowercase letter (e.g. s) Navigate +1 on that axis and focus it
Uppercase letter (e.g. S) Navigate −1 on that axis and focus it
Ctrl + letter Open the value picker for that axis

Arrow keys still work and navigate the top two entries in the focus stack, as in all modes.

Trade-off vs. pin: every step costs one keypress, but Shift is needed for the reverse direction. Pin removes the Shift cost for sustained cycling at the expense of an explicit focus step before navigating.

Swapping the modifiers: which of Ctrl and Shift opens the picker and which reverses is a setting — see Modifier roles.


seek

Every letter key starts an incremental search, first for an axis name, then for a value on that axis. Good when there are many axes or you don't want to memorise per-axis letter bindings.

Key Action
Letter Begin axis search with that letter as the initial query
Letter (during search) Narrow the candidate list
Enter Confirm the first candidate explicitly
Backspace Delete the last query character; on an empty value query, step back to axis search
Escape Cancel the search

Greedy auto-confirm: when exactly one candidate remains, it is selected automatically without pressing Enter.

Phase transition: after confirming an axis, the mode transitions immediately into value selection on that axis using the same matching. Backspace on an empty value query returns to axis selection.

Fuzzy matching: see Fuzzy matching below — typed characters need only appear in order, so smp finds SMAP.


pin

Optimised for comparing two axes at a time with no modifier keys in the hot path.

Key Action
Letter (e.g. s for sensor) Focus that axis; it becomes the primary axis (←/→), the previous primary becomes the secondary (↑/↓)
Ctrl + letter Open the value picker for that axis

Letter keys only shift focus — they do not advance the axis. Use arrow keys after focusing to cycle through values. This keeps sustained rapid cycling (dozens of presses) free of modifier keys.

Example workflow: press s to put sensor on ←/→, press d to put date on ←/↓ (sensor shifts to ↑/↓), then use arrow keys freely to compare any combination.


Value picker

Ctrl + a letter key opens an incremental value picker for that axis in any mode. Type to filter the list; the match is case-insensitive and fuzzy. When exactly one candidate remains it is confirmed automatically; press Enter to confirm the first candidate explicitly at any point; press Escape to cancel.


Modifier roles

Two modifiers act on an axis key, and which does what is configurable:

Value picker Navigate −1 (tap only)
Default Ctrl + letter Shift + letter
modifiers.swap: true Shift + letter Ctrl + letter
modifiers:
  swap: true

Bare letters are unaffected — they still step +1 in tap mode and focus the axis in pin mode. Pin mode has no reverse binding, so under the swap Ctrl + letter simply does nothing there, exactly as Shift + letter does today.

The startup warning about custom keybindings that shadow navigation follows the swap, so it names the chord that is actually shadowed.


Fuzzy matching

Every search surface — command mode, seek mode, the value picker and the :grid argument list — matches the typed characters as a subsequence: they must appear in order, but need not be adjacent. smp finds SMAP, fh finds fit-height, gsx finds grid-sharex.

Candidates are ranked so the likely reading comes first, which is what Enter takes and what greedy auto-confirm acts on:

  1. an exact match, then a prefix match, then a plain subsequence
  2. fewer jumps — a gap that lands right after -, _, ., /, : or a space reads as an initial, so fh prefers fit-height over fit-width
  3. an earlier first match, then a tighter span, then a shorter candidate

Ties keep the order the candidates already had (axis order, value order, alphabetical for commands).

Set seek.fuzzy: false in ~/.juxt/settings.yaml for the older strict prefix matching (hyphens and underscores are still skipped there, so gridl finds grid-layout):

seek:
  greedy: true
  fuzzy: false

Command mode

Press : to open command mode. The status bar shows your input and a fuzzy-filtered list of matching commands as you type; a short description of the highlighted command is shown right-aligned. Press Enter to execute, Escape or Backspace-to-empty to cancel.

Command Action
:q / :quit Quit the application
:fit Fit image to window (both dimensions)
:fit-height Fit image height to the viewport
:fit-width Fit image width to the viewport
:fit-off Stop fitting and keep the current zoom
:zoom N Set zoom to N% (e.g. :zoom 50, :zoom 200)
:fullscreen Toggle fullscreen
:mode tap Switch to tap mode
:mode seek Switch to seek mode
:mode pin Switch to pin mode
:keys Toggle the shortcut sidebar (same as Ctrl+Shift+K)
:switch-last Toggle between current and previous position (same as Space)
:theme [auto\|dark\|light] Switch the colour theme for this session; without an argument, flip between dark and light
:version Show the juxt version in the status bar (juxt --version prints it from the shell)
:axis-h NAME Lock the primary axis (←/→) to a named axis
:axis-v NAME Lock the secondary axis (↑/↓) to a named axis
:axis-auto Restore dynamic axis-to-arrow assignment
:swap-axes Swap the primary and secondary axes
:grid [AXIS] Expand an axis into a tiled grid of independent viewports (defaults to the primary axis)
:grid AXIS VAL … Same, but show only the listed values
:grid AXIS NxM Same, with an explicit layout (e.g. :grid sensor 2x2)
:grid AXIS VAL … NxM Values and explicit layout combined
:grid-dialog Open the grid builder dialogue (same as Ctrl+Shift+G)
:grid-layout NxM Change the layout of the current grid without exiting (e.g. :grid-layout 1x3)
:grid-off / :ungrid Return to single-image view
:grid-sharex [on\|off] Toggle or set synchronized horizontal pan/zoom across cells (default: on)
:grid-sharey [on\|off] Toggle or set synchronized vertical pan/zoom across cells (default: on)
:reload Re-detect axes and reload images from the current source
:copy-path Copy the current image's file path to the clipboard
:copy-cli-command Copy a juxt command line that reopens this view: the template, every axis pinned to its current values (so an interactively picked or :subset-edited selection returns without a scan or dialogue), the locked ←/→ / ↑/↓ axes, and the grid view. Also on the copy CLI command button at the bottom of the info sidebar. The cursor position, custom key letters, the session name and an SSH port or key file are not part of it
:reveal Show the current image file in the system file manager
:copy-image Copy the current image to the clipboard
:write [PATH] / :w [PATH] Write the current config to a YAML file; opens a file dialog if PATH is omitted
:pattern PATH Change the template / source path without restarting (see below); --keep-subset / --ignore-subset decide what happens to the current values
:subset AXIS [VALUES] Edit the values of an axis: delete, reorder, rename or add (see below)
:subset-interactive Pick the values of every axis from those found on disk, one column per axis (see below)
:values AXIS Pick the values of one axis from those found on disk: add or remove (see below)
:watch / :watch true Enable live file watching / polling
:watch false Disable live file watching / polling
:watch N Set remote poll interval to N seconds
:info Toggle the info sidebar

:pattern — changing the source at runtime

A command that takes an argument is entered in two steps: type its name and press Enter, or type a space right after the name to go straight to the argument (:grid-layout 2x3, :gridl 2x3, :mode pin). While the argument is empty the status bar shows the expected format, e.g. NxM for :grid-layout. Commands without arguments ignore the space.

:pattern accepts the same forms as the CLI PATH argument: a local template with {placeholders}, a local directory, a YAML config file, or a remote SSH path. The argument is pre-filled with the current template so you can edit it in place. A leading ~ is expanded to your home directory, here as well as in the PATH argument and in YAML configs. A progress dialog blocks the window while images are loaded or downloaded.

Keeping the current subset

:pattern is mostly used to refine the pattern: turn a fixed directory into a new {placeholder}, or fix a typo. If you picked values beforehand (with --subset-interactive, :values, :subset or --NAME VALUE pins), a fresh scan would bring every value on disk back. So by default, axes the new template keeps (placeholders of the same name) stay pinned to their current values, and only new placeholders are scanned. Images already loaded are reused, so only the new ones are read.

Widening the pattern can also turn up values the old pattern never had on disk, e.g. a dmm that only exists in the sibling directory a new {ref} now reaches. Then juxt opens the value picker on the axes with such values (current values ticked, new ones unticked) and on the new axes (all ticked), so you choose which to load. Values you had left out before are not offered again; they stay available in :values. If the tree is symmetric, so the new axis only multiplies the image count, nothing is asked.

This is the smart mode of pattern.subset in ~/.juxt/settings.yaml:

pattern:
  subset: smart    # smart | keep | ignore | gui | cli
Mode Behaviour
smart (default) Keep the subset; open the value picker for values the old pattern did not have
keep Keep the subset, never ask; new values stay available in :values
ignore Scan the disk afresh for every axis
gui Ask keep or ignore in a dialogue listing each axis's value count and the image count of either choice
cli Ask the same in the status bar: k or Enter keeps the subset, i ignores it, Esc cancels

A pattern with no placeholder in common with the current one, a directory, a YAML config or a wildcard is always scanned afresh. Append --keep-subset or --ignore-subset to the pattern to override the setting for one run:

:pattern plots/{run}/{sensor}/{date}.png --ignore-subset

smart, gui and cli scan the new pattern both ways (and smart the old one as well) before loading anything, so they take a little longer to start than keep.

Free-text arguments (:pattern, :write, …) support full cursor editing: ←/→ move the caret, Ctrl+←/Ctrl+→ jump a word, Home/End jump to the ends, Delete removes the character at the caret, and Ctrl+Backspace/Ctrl+Delete remove the word before or after it. A word runs over letters, digits and _, so sm_vs_peatclsm goes in one stroke. A click in the text puts the caret there. The argument gets the full width of the status bar, apart from a hint on the right. Tab completes the path: local paths use the filesystem; remote paths use the existing SFTP connection when the typed host matches the current session. For :remove-value, :remove-axis and :change-key, Tab completes the axis name instead, and after it (:remove-value AXIS) one of that axis's values; several matches are listed on the right.

Placeholder-aware completion

Completion treats every {placeholder} as a wildcard, so a template is built top-down instead of completing a concrete path first and deleting the components that should vary:

:pattern plots/⇥                        →  ASCAT/  SMAP/  SMOS/
:pattern plots/{sensor}/⇥               →  AM/  PM/          (all sensors merged)
:pattern plots/{sensor}/{overpass}/2⇥   →  2024-03-15.png  2024-03-16.png

Only the text after the last placeholder is completed, so placeholders already typed survive. A component that ends on a placeholder completes with whatever the candidates share — / when they are all directories, the common extension for files.

Two shortcuts make the placeholders themselves quicker to type:

  • { followed by Tab completes the current axis names: plots/{s⇥ → plots/{sensor}.
  • {} needs no name at all. Anonymous placeholders are numbered when the pattern is applied, so plots/{}/{}.png becomes plots/{axis_1}/{axis_2}.png.

While a free-text argument is being typed, each placeholder is coloured by position in the status bar, which keeps a multi-axis template readable.

Placeholders that stand for a known value

A placeholder ending a component has no partial word to extend, so completion falls back to what the candidates share. For a placeholder whose name says what kind of value it holds, that is too much: over 2024-03-15_L2.png and 2024-03-16_L3.png, {date} would complete to {date}_L, and the L then has to be deleted to make room for the next placeholder.

Names with a known value shape stop at the end of the value instead:

:pattern plots/{sensor}/AM/{date}⇥        →  plots/{sensor}/AM/{date}_
:pattern plots/{sensor}/AM/{yyyy-mm-dd}⇥  →  plots/{sensor}/AM/{yyyy-mm-dd}_

Which names those are is entirely up to placeholders: in ~/.juxt/settings.yaml. juxt writes the section on first run with the names it ships:

placeholders:
  date: [yyyy-mm-dd, yyyy_mm_dd, yyyymmdd]
  datetime: [yyyy-mm-ddThh:mm:ss, yyyy-mm-dd_hhmmss, yyyymmdd_hhmmss]
  time: [hh:mm:ss, hh-mm-ss, hhmmss]
  year: yyyy
  month: mm
  day: dd
  doy: ddd
  orbit: 'o\d{5}'      # add your own: a regex, a shorthand, or a list of either

Nothing is assumed beyond that file, so deleting an entry really does remove it. A value is a date-style shorthand (yyyy, yy, mm, dd, hh, ss, ddd, T and separators), a regular expression, or a list of alternatives.

Independently of the file, a placeholder whose name is itself a shorthand is recognised on sight, so {yyyy-mm-dd} and {yyyymmdd} work with no configuration at all. And a shape only ever guides the completion: when it matches nothing, the placeholder falls back to matching anything, so an unusual date format still completes.

Shorthand names double as axis names, so {yyyy-mm-dd} can stand in a template as it is.


:subset — editing the values of an axis

:subset picks an axis (type a few letters, Enter) and opens its current values as one editable line, much like :pattern opens the template:

:subset sensor  ASCAT SMAP SMOS▌

Edit the line and press Enter; the line becomes the axis, in the order written.

  • Delete a value by removing it from the line.
  • Reorder by moving it. Images follow their values.
  • Add or rename by typing a value that is not in the axis yet. Its images are loaded from the template for every combination of the other axes; combinations without a file show the usual missing placeholder. A value with no file at all is refused, which catches typos.
  • A value containing blanks is written in double quotes. Values that differ from an existing one only in case are taken to be that value.

Tab completes the word under the caret with the values found on disk and lists the candidates when several match, which is also how to see what can be added. Escape cancels. Your position is kept when its value survives.

The whole edit can be given in one go, e.g. :subset sensor SMAP ASCAT. In a remote session the images of added values are downloaded over the session's SSH connection, with a progress dialogue; Tab completion of values on disk is local only.

Picking values from disk (:subset-interactive, :values)

:subset-interactive opens a checklist of the values found on disk for every axis, one column per axis. :values AXIS, or a click on the [+] next to an axis in the info sidebar, opens the same checklist for that one axis:

Value picker: SMOS ticked to add, one date unticked to remove, L3 on offer

The dialogue opens at once with the current values and a spinner while the disk is searched; the values found then join each column as its axis is done, keeping any ticks you already changed. Current values are ticked, values on disk the axis does not have yet are unticked and shown in the accent colour. Tick to add, untick to remove, then Apply: only the images of the added values are loaded (with the same progress dialogue as on startup), everything already loaded stays. This is the quick way to pull in a new run or sensor without restarting juxt.

  • The search pins every other axis to the values it has now, so a value is listed only if it has at least one image among the combinations you are looking at. This keeps the search fast, also over SSH.
  • New values slot into place when the axis is sorted; an axis you reordered keeps its order and the new values follow it.
  • The filter field narrows the list as you type; All and None act on the rows it shows. ↓ moves from the filter into the list.
  • Several rows at once: select them (click, Shift+click for a range, Ctrl+click to add one, or drag over the row text), then press Space or double-click one of them. Space ticks them all, or unticks them all if they all were ticked; a double-click gives them all the opposite of the clicked row's state. Rows the filter hides are left alone.
  • Or paint: press on a check box and drag across rows; each row passed over takes the state that first box got. A double-click followed by a drag paints the same way.
  • A current value with no file on disk is marked no files.
  • Changes on several axes apply in one go: every combination involving an added value is loaded, and an added value that has no image among the combinations you end up with is refused, which catches a value that only exists next to one you dropped.
  • To pick the values before anything is loaded, start juxt with --subset-interactive.

Remote sessions reuse their SSH connection (and the password already entered), so neither the listing nor the download asks again.

Grid view

Grid view tiles all (or a subset of) values from one axis into a grid of independent viewports, letting you compare them side by side without flipping.

:grid sensor              # show all sensor values in a grid
:grid sensor SMAP SMOS    # show only SMAP and SMOS
:grid sensor 2x2          # explicit 2×2 layout
:grid sensor SMAP SMOS 1x2
:ungrid                   # back to single-image view

The layout is chosen automatically to best match the viewport's aspect ratio given the image dimensions; use NxM to override.

Layouts smaller than the value count

NxM is a hard cap, not a hint: :grid sensor 2x1 gives you exactly two panes even when the axis has more values. Each pane holds its own value, and the values that don't fit stay reachable through the focused pane — the one drawn with a highlighted border and label.

Stepping the grid axis scrolls only the focused pane, through the values no other pane is currently showing. The focus never moves on its own and the other panes hold still, so you can flip one tile against a fixed reference:

:grid sensor 2x1        # sensor = ASCAT SMAP SMOS
                        # panes  [ASCAT] SMAP
s                       # panes  [SMOS]  SMAP    ← only the focused pane moved
s                       # panes  [ASCAT] SMAP    ← wraps; SMAP is never offered

Click any pane to focus it. The grid axis then acts on that pane instead, and its list of candidates updates to exclude whatever the other panes hold.

The status bar names the focused pane, e.g. [tap grid:sensor[pane 1/2 +1]] — pane 1 of 2, with 1 value not on screen. When every value already has a pane there is nothing left to cycle and the grid axis does nothing; use a smaller layout if you want to scroll through them.

The grid builder dialogue

Ctrl+Shift+G (or :grid-dialog) opens a small dialogue that builds the same grid without typing a command — useful when you don't remember the axis or value spellings.

Field Meaning
Axis Which axis to tile. Defaults to the current grid axis, or the primary axis when not in grid view.
Values Tick the values to show. All / None / Invert set them in bulk.
Layout With auto ticked the spin boxes show the layout that fits the viewport; stepping either one takes it off auto and sets rows × cols by hand. Re-tick auto to go back. A layout smaller than the value count gives the focused pane something to cycle, as above.
Sync pan/zoom The :grid-sharex / :grid-sharey toggles.

The line above the buttons previews the result, e.g. 3 cells → 2×2 (auto), and says so when an explicit layout has fewer panes than selected values — those values stay reachable through the focused pane. Show grid applies the settings; when opened from inside grid view the dialogue also offers Exit grid, equivalent to :ungrid.

Opening the dialogue while a grid is active pre-fills every field from that grid, so it doubles as an editor for the current view.

:grid — interactive completion

:grid supports interactive argument completion. After pressing Enter to confirm the verb, the status bar shows axis name candidates:

:grid ▌  →  [sensor]  date  overpass  level

Use ←/→ to cycle candidates or type a prefix to narrow them. Press Tab to accept the highlighted axis and move to value selection:

:grid sensor ▌  →  [SMAP]  SMOS  ASCAT

Press Tab again on each value to append it to the filter list. Press Enter to execute with the current selection — or just type the arguments manually if you know them.

Navigation in grid mode works the same as normal for every axis except the grid axis: arrow keys and letter keys advance all other axes simultaneously, and every cell updates together. The grid axis is confined to the focused pane — it swaps that one pane's value for another that is not already on screen, leaving the rest of the grid as a fixed reference. With a value subset, only values from that subset are ever offered.

Pan and zoom are synchronized across all cells by default. Each cell is an independent QGraphicsView, so you can also pan/drag within a single cell independently when sync is off.

:grid-sharex off    # allow independent horizontal pan/zoom per cell
:grid-sharey off    # allow independent vertical pan/zoom per cell

CLI flags — open directly in grid view:

juxt "plots/{sensor}_{date}.png" --grid sensor
juxt "plots/{sensor}_{date}.png" --grid sensor --grid-values SMAP SMOS
juxt "plots/{sensor}_{date}.png" --grid sensor --grid-layout 1x3
juxt "plots/{sensor}_{date}.png" --grid sensor --no-sharex --no-sharey

The status bar shows the active grid axis in the mode indicator, e.g. [tap grid:sensor], and names the focused pane when there is more than one, e.g. [tap grid:sensor[pane 2/2 +1]] — the trailing +1 counts values with no pane of their own.


Status bar

The status bar at the bottom shows:

  • Current navigation mode — [tap], [seek], or [pin]; a ● is appended outside the brackets when live file watching is active (e.g. [tap] ●)
  • Current axis values (e.g. sensor=ASCAT date=2024-03-15 overpass=AM source=L2)
  • The primary (←/→) and secondary (↑/↓) axes
  • Letter-to-axis assignments; axes with no available letter binding are shown in red
  • Active query and candidate list when value picker or seek is active
  • Command being typed in command mode; description of the highlighted command shown right-aligned

Toggle the status bar with Ctrl+Shift+H. Toggle the info sidebar with Ctrl+Shift+I or :info; it docks to the right side and shows the current image path and all axis values with the current value highlighted. Values in the sidebar are clickable: a left click jumps to that value and focuses its axis. Clicking the path copies it to the clipboard (same as :copy-path); Ctrl+click shows the file in the system file manager (same as :reveal).

Highlight format

The colour and delimiters used for the current value (info sidebar, last-moved axis, candidate lists) are set in ~/.juxt/settings.yaml; see Highlight format.

Custom keybindings

Any action (including every :command plus toggle-statusbar, toggle-info and toggle-keys) can be bound to a key chord in ~/.juxt/settings.yaml:

keybindings:
  Ctrl+Shift+H: toggle-statusbar
  Ctrl+Shift+G: grid-dialog
  Ctrl+Shift+C: copy-path
  Ctrl+Shift+K: toggle-keys
  F11: fullscreen
  Ctrl+R: reload

Rebinding an action moves the shortcut shown next to it in the right-click menu, so the menu always names the chord that actually works.

Conflict warning. Navigation keys are mode-specific:

Chord type Conflicts with
Bare letter (e.g. H) seek mode always (any letter starts a search); tap + pin if the letter is an axis key
Shift+letter axis key tap mode (navigate −1)
Ctrl+letter axis key tap + pin mode (opens value picker)

The last two rows exchange places under modifiers.swap.

When juxt detects a conflict it logs a warning and flashes a notice in the status bar — both at startup and whenever the settings file is saved. The binding still takes effect; the warning is advisory.