Skip to content

MoriRemote: sidebar quick filter, left-pinned keyboard dismiss, copy-mode cancel on switch - #106

Merged
vaayne merged 3 commits into
mainfrom
remote/session-filter-ui
Jul 29, 2026
Merged

vaayne merged 3 commits into
mainfrom
remote/session-filter-ui

Conversation

@vaayne

@vaayne vaayne commented Jul 27, 2026

Copy link
Copy Markdown
Owner

What

Three MoriRemote (iOS) UX fixes:

  1. Session quick filter — the workspace sidebar gains a bottom-anchored filter field (cmd+p style). Typing narrows projects, sessions, branches, and windows by name, title, or path; a session-name hit keeps the whole group, otherwise only matching windows are shown. The bar sits at the bottom edge (thumb-reachable) and rides above the keyboard via the safe-area inset. Includes a clear button and a "No matches" state.

  2. Keyboard dismiss pinned left — the dismiss button used to be the last item in the scrollable key row, so putting the keyboard away meant swiping to the far end first. It now lives outside the scroll view, pinned at the bar's far left with a divider, reachable at any scroll position.

  3. No more (repeat) N stuck panes — a pane scrolled into tmux copy-mode stays there across window switches; digit keys then hit tmux's default (repeat) command-prompt binding (bind -Tcopy-mode-vi 8 { command-prompt -P -Np'(repeat)' … }) and input is swallowed. Sidebar window/pane/session switches now append copy-mode -q -t <target> so the pane is typeable on arrival.

Why copy-mode -q

First attempt was if -F '#{pane_in_mode}' "send-keys -X cancel -t …", but testing against tmux 3.6a showed send-keys -X cancel -t x silently does nothing (-t after the key name parses as a key, not a target). copy-mode -q is simpler, verified working in a \; sequence, and is a no-op when the pane isn't in a mode. Requires tmux 3.2+; on older tmux it errors harmlessly after the switch has already happened.

Verification

  • mise run ios:build (iOS Simulator, Debug) passes.
  • tmux command shape tested against a scratch tmux -L server on tmux 3.6a: exact shell string enters/exits copy-mode as expected, no-op when not in mode.
  • Not verified on device: filter interaction and key-bar layout need a visual pass (screenshots welcome before merge).

Docs

  • CHANGELOG.md + CHANGELOG.zh-Hans.md updated under [Unreleased].
  • New strings localized in en + zh-Hans.

vaayne added 3 commits July 27, 2026 18:49
…mode cancel on switch

- Workspace sidebar gets a bottom quick-filter field (cmd+p style) that
  narrows projects/sessions/branches/windows by name, title, or path.
- Keyboard-dismiss button moves out of the scrollable key row and pins at
  the bar's far left, so it's always one tap away.
- Sidebar window/pane/session switches append 'copy-mode -q' for the
  target pane: a scrolled pane stays in copy-mode across switches, where
  digit keys hit tmux's default '(repeat)' command-prompt binding and
  swallow input. Verified against tmux 3.6a; -q is a no-op outside
  copy-mode (and requires tmux 3.2+; older tmux errors harmlessly).
- KeyBarButton gains horizontalContentPadding (intrinsicContentSize
  override) to replace deprecated contentEdgeInsets; geometry is
  identical for symmetric insets on centered content.
- Icon keys set the same image for .highlighted instead of the
  deprecated adjustsImageWhenHighlighted=false; touchDown styling
  already owns the pressed look.
- Discard resignFirstResponder()'s result explicitly.
- Drop redundant awaits in the shell inbound task: the Task inherits
  the coordinator's MainActor isolation, so isCurrentConnection and
  feedBytes are plain same-actor calls (MainActor.run was a no-op hop).
Same pattern as the previous commit: Tasks created in @mainactor methods
inherit the coordinator's isolation, so these are plain same-actor calls.
Verified with a forced recompile (the earlier zero-warning check was a
fully cached no-op build and missed these).
@vaayne
vaayne merged commit 851e6d5 into main Jul 29, 2026
5 checks passed
@vaayne
vaayne deleted the remote/session-filter-ui branch July 29, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant