Skip to content

[FR] Support controlled searchText prop on List (Raycast API parity) #650

Open

Description

@symbiodev

Feature request

Support the controlled searchText prop on List (and ideally Grid), matching the Raycast API: when an extension passes/updates searchText, the native search bar text should update accordingly.

Motivation

I'm building a quick-entry flow in a Raycast extension running in SuperCmd. The extension reads context (an e-shop checkout page via AppleScript + AI) and derives a suggested entry line. The ideal UX is to pre-fill the List search bar with that suggestion so the user can immediately edit it as plain text and press Enter.

Today there is no way for an extension to set the search bar text:

  • ListRoot in extension-host/host.js only wires onSearchTextChange (→ hasSearchHandler); the searchText prop passes through to sc-list but the native side doesn't apply it (only searchTextChanged events flow native → JS).
  • Workarounds fail: Clipboard.paste() hides the launcher window and pastes into the previous frontmost app (Raycast semantics), so it can't target SuperCmd's own search field.

Related gap

Form field focus control is also unavailable: autoFocus on Form.TextField is not implemented, useForm().focus() is a no-op, and there's no RPC to focus a field. Extension forms currently open with no first responder, so the user must click/Tab before typing. Controlled searchText + autoFocus together would unlock keyboard-first extension UX.

Environment

  • SuperCmd.app (native Swift build, bundle id com.supercmd.SuperCmd), bun 1.2.5 extension runtime
  • macOS 15 (Darwin 25.5.0)

Thanks for the great Raycast-compatible runtime — happy to test a beta of this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions