Class Window
Interface
Readonlyare Filters Visible
Is the tag filters side panel is visible.
Readonlycan Create Tab
Returns true if tabbed windows are available (Mac only)
float On Top
Toggle whether "Float on Top" is enabled for the window, keeping it above other apps. This property only has effect on macOS, and is ignored on iOS.
Readonlyis Action List Visible
Is the action list side panel is visible.
Readonlyis Chat Console Visible
Is the Chat Console side panel is visible.
Readonlyis Draft List Visible
Is the draft list side panel is visible.
hide Action List
Close action list side bar.
Returns void
hide Chat Console
Close chat console side bar.
Returns void
hide Draft List
Close draft list side bar.
Returns void
hide Filters
Close tag filters side bar.
Returns void
load Action Bar Group
Load the ActionGroup in the action bar below editor.
Parameters
- actionGroup: ActionGroup
Returns boolean
load Action Group
open In New Tab
If able, open the requested draft in a new tab in the current window. This method only functions on Mac. The ability to open new tabs is not available on iPhone or iPad.
Parameters
- draft: Draft
Returns boolean
trueif successful.falseif unable to open a new tab.
show Action List
Open action list side bar.
Returns void
show Chat Console
Open chat console side bar, optionally providing initial options for new session.
Parameters
Optionalmode: modelSessionModeOptionalinitialPrompt: string
Returns void
show Command Palette
Open command palette window, optionally providing a initial query value.
Parameters
OptionalinitialQuery: string
Returns void
show Draft Info
Open the "Get Info" view for a draft. If no draft is passed, the current active draft in the editor will be used.
Parameters
Optionaldraft: Draft
Returns void
show Draft List
Open draft list side bar.
Returns void
show Filters
Open tag filters side bar.
Returns void
show Quick Search
Open quick search window, optionally providing a initial query value.
Parameters
OptionalinitialQuery: string
Returns void
Other
selected Drafts
Array of the drafts currently selected by the user in the draft list. Can be iterated to create custom actions which operate on the selection.
Workspace
current Workspace
Returns a workspace object configured like the workspace currently loaded in the draft list of the window. Useful when creating logic which reacts contextually to the workspace loaded.
apply Workspace
Apply the Workspace as if it was selected in draft list. Calling this function with no arguments will clear filters and apply the default workspace.
Parameters
Optionalworkspace: Workspace
Returns boolean

Access
Windowproperties and functions through thecurrentWindowproperty of the globalappobject.