Skip to content

0.9.9: search in a chat, case and regex switches, the chat's media and files - #45

Merged
Ege-BULUT merged 4 commits into
mainfrom
search-0.9.9
Nov 5, 2026
Merged

Ege-BULUT merged 4 commits into
mainfrom
search-0.9.9

Conversation

@Ege-BULUT

Copy link
Copy Markdown
Owner

Search

  • searchMatches finds every match in a text and searchMatcher the first. searchMessages takes { caseSensitive, regex }. The default stays case-insensitive in the app's locale (Turkish İ/ı) and plain text. A regex that does not parse throws, and empty matches are left out.
  • Sidebar: Aa (match case) and .* (regex) beside the search box. Results mark what matched, and a bad regex says so.
  • In a chat: 🔍 in the header opens a search bar.
    • The newest match comes first and its message is outlined. ↑ or Enter goes to an older one, ↓ back, Escape or back closes the bar.
    • The bar has the same Aa and .* switches, plus "Search older messages" for that chat alone.
    • Every match is marked inside the bubbles with the CSS Custom Highlight API, so rendered Markdown is untouched. The current one is marked more strongly.
  • CLI: opencom search … [--case] [--regex].

Media and files

  • A chat's details list its photos and videos in a grid and its other files in a list, newest first, from the loaded messages.
    • A tile shows the picture when it is on the device already, else the ~1 KB preview.
    • "Look in older messages too" reads further back.
  • A photo or video opens full screen; the Lightbox now also plays videos and shows a spinner while loading. Show in chat closes the viewer and the details and jumps to the message.
  • useBack: entries of overlays closed in the same moment go back together. Before, closing a sheet and the picture opened from it left one stale history entry.

Agents' app setup (follow-ups to 0.9.8)

  • The link goes to the owner's device seen last. In 0.9.8 the first one went to an old device of the same account.
  • watch --once waits for a setup step under way before exiting. Exiting between trading the code and posting the install link left the page waiting, which happened on a second computer.
  • While waiting for the install, an install link missing from the topic is posted again.

Tests

  • Unit: 91/91, including case and regex search and every match's place.
  • CLI: 47/47, including the search switches, a lost install link coming back, and the link going to the last-seen device.
  • MCP: 18/18.
  • Browser: 99/99. The new section covers sidebar switches and bad regex; in-chat navigation, outline, marks, Aa and Escape; the gallery tabs; Show in chat closing both and leaving no stale history entry; and the files tab.

… media and files; the agents' app setup survives a watch --once that exits mid-way and resends a lost install link
@Ege-BULUT
Ege-BULUT merged commit 6aff26f into main Nov 5, 2026
1 check passed
@Ege-BULUT
Ege-BULUT deleted the search-0.9.9 branch November 5, 2026 09:21
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