Access Window properties and functions through the currentWindow property of the global app object.

Hierarchy

  • Window

Interface

canCreateTab: boolean

Returns true if tabbed windows are available (Mac only)

isActionListVisible: boolean

Is the action list side panel is visible.

isDraftListVisible: boolean

Is the draft list side panel is visible.

  • Close action list side bar.

    Returns void

  • Close draft list side bar.

    Returns void

  • 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

    Returns boolean

    true if successful. false if unable to open a new tab.

  • Open action list side bar.

    Returns void

  • Open command palette window, optionally providing a initial query value.

    Parameters

    • Optional initialQuery: string

    Returns void

  • Open the "Get Info" view for a draft. If no draft is passed, the current active draft in the editor will be used.

    Parameters

    Returns void

  • Open draft list side bar.

    Returns void

  • Open quick search window, optionally providing a initial query value.

    Parameters

    • Optional initialQuery: string

    Returns void

Other

selectedDrafts: Draft[]

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.

Generated using TypeDoc