Raycast Window & Search Bar
Last updated
Last updated
Clear the text in the search bar.
Name | Description | Type |
---|---|---|
A Promise that resolves when the search bar is cleared.
Closes the main Raycast window.
You can use the popToRootType
parameter to temporarily prevent Raycast from applying the user's "Pop to Root Search" preference in Raycast; for example, when you need to interact with an external system utility and then allow the user to return back to the view command:
A Promise that resolves when the main window is closed.
Pops the navigation stack back to root search.
A Promise that resolves when Raycast popped to root.
Defines the pop to root behavior when the main window is closed.
Name | Description | Type |
---|---|---|
Name | Description | Type |
---|---|---|
Name | Description |
---|---|
options
Can be used to control the behaviour after the search bar is cleared.
Object
options.forceScrollToTop
Can be used to force scrolling to the top. Defaults to scrolling to the top after the the search bar was cleared.
boolean
options
Can be used to control the behaviour after closing the main window.
Object
options.clearRootSearch
Clears the text in the root search bar and scrolls to the top
boolean
options.popToRootType
Defines the pop to root behavior (PopToRootType); the default is to to respect the user's "Pop to Root Search" preference in Raycast
options
Can be used to control the behaviour after going back to the root search.
Object
options.clearSearchBar
boolean
Default
Respects the user's "Pop to Root Search" preference in Raycast
Immediate
Immediately pops back to root
Suspended
Prevents Raycast from popping back to root