Skip to content

Add document search to the command palette#208

Merged
priethor merged 16 commits into
mainfrom
priethor/add/palette-page-search
May 19, 2026
Merged

Add document search to the command palette#208
priethor merged 16 commits into
mainfrom
priethor/add/palette-page-search

Conversation

@priethor
Copy link
Copy Markdown
Collaborator

@priethor priethor commented May 19, 2026

What

Closes #149, closes #150.

Adds document search to the Cortext command palette. Users can search pages and collection rows, get a bit of context for each result, and open the one they choose.

A title match ranks above a weaker body or field match, and recents/commands (as there is only one command so far) stay out of the way while someone is searching.

Why

The command palette worked well for commands and recent items, but it was not useful enough for finding workspace content.

How

  • Searches pages and rows through /cortext/v1/documents while the palette is open.
  • Includes text, email, and URL field values when matching collection rows.
  • Ranks title prefix and title substring matches above body or field-only matches.
  • Hides recents and command suggestions during search so they do not steal the active selection.

Testing Instructions

  1. Create or use a page with unique text in its body.
  2. Create or use a collection row with unique text in its title or in a text, email, or URL field.
  3. Open the command palette and search for the page body text.
  4. Confirm the page appears under Search results with an excerpt and opens when selected.
  5. Search for the row text and confirm the row appears with its collection hint and opens directly.
  6. Type te. A page or row whose title starts with Te should rank above documents that only contain te in the body, even if the body match was modified more recently.

Screen recording

Grabacion.de.pantalla.2026-05-19.a.las.12.06.27.mov

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

Performance vs main

Workload changed in 4 scenarios. 6 scenarios with notable timing changes.

Scenario Workload Timing
Open rows page 50 - p50 +25.2%
Load rows with a wide schema - p50 -21.4%
Open collection (cold) - rows API +16.6%
Open row detail -1 REST request -
Create row - rows API -16.8%
Open page in editor +3 REST requests -
Open command palette - ready +32.0%
Open workspace home +1 REST request -
Warm shell navigation - rows API -15.8%
Navigate to next row -1 REST request -

Full numbers in the job summary.

@priethor priethor merged commit d5801c4 into main May 19, 2026
11 checks passed
@priethor priethor deleted the priethor/add/palette-page-search branch May 19, 2026 10:29
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.

Search collection rows from the palette Search pages from the palette

1 participant