feat(rooms): fzf chat picker, unread line and room-only <C-^> #10

Merged
jmz merged 2 commits from feat/chat-switching into release/mirus 2026-11-26 21:19:51 +00:00
Owner

Three ways to move between chats faster.

  • :jump [query] picks a room or DM with fzf and opens it. Unread mentions are listed first (@3), then other unread chats (5, or U for marked unread), then the rest, each in the sort.chats order. Names that occur more than once get their room id appended, so every line maps back to exactly one chat.
  • Unread line: the right end of the command bar lists chats with unread notifications or mentions (except the focused one), e.g. ● M L 2 · Familie 5 +3. It is drawn only over trailing blank cells, so the mode, messages and typed commands stay visible. It is hidden while a dialog is shown.
  • :alternate, bound to <C-^> / <C-6>, toggles between the last two focused rooms. modalkit's default switches to the window's previous content, which is the chat list whenever a room was opened from it. From a list window it returns to the last room.

Tests: command parsing, alternate-room bookkeeping, picker lines and the unread-line layout. cargo test: 218 passed; clippy is clean.

🤖 Generated with Claude Code

Three ways to move between chats faster. - `:jump [query]` picks a room or DM with fzf and opens it. Unread mentions are listed first (`@3`), then other unread chats (`5`, or `U` for marked unread), then the rest, each in the `sort.chats` order. Names that occur more than once get their room id appended, so every line maps back to exactly one chat. - **Unread line**: the right end of the command bar lists chats with unread notifications or mentions (except the focused one), e.g. `● M L 2 · Familie 5 +3`. It is drawn only over trailing blank cells, so the mode, messages and typed commands stay visible. It is hidden while a dialog is shown. - **`:alternate`, bound to `<C-^>` / `<C-6>`**, toggles between the last two focused rooms. modalkit's default switches to the window's previous content, which is the chat list whenever a room was opened from it. From a list window it returns to the last room. Tests: command parsing, alternate-room bookkeeping, picker lines and the unread-line layout. `cargo test`: 218 passed; clippy is clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(rooms): fzf chat picker, unread line and room-only <C-^>
All checks were successful
nix / eval (pull_request) Successful in 1m41s
check / check (pull_request) Successful in 4m48s
13c54caa51
- :jump [query] picks a room or DM via fzf; unread mentions first, then
  other unread chats, then the rest, in sort.chats order.
- The command bar's right end lists unread chats with their counts,
  drawn only over blank cells and collapsing overflow into +N.
- :alternate (<C-^>, <C-6>) toggles between the last two focused rooms.
  modalkit's default alternate is the window's previous content, which
  is the chat list whenever a room was opened from it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(jump): map fzf picks by index, strip control chars from names
All checks were successful
nix / eval (pull_request) Successful in 1m28s
check / check (pull_request) Successful in 4m44s
8713acf7aa
Room names are set by other people, so a name with a newline or one that mimics another line could make the picker open the wrong chat. Lines now carry a hidden index field (--with-nth) and names are cleaned in the picker and the unread line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jmz merged commit 8713acf7aa into release/mirus 2026-11-26 21:19:51 +00:00
jmz deleted branch feat/chat-switching 2026-11-26 21:19:51 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/iamb!10
No description provided.