< Back

Invoke-SublimeText

Sat Jan 18, 2020 8:32 pm

NAME Invoke-SublimeText



SYNOPSIS

PowerShell wrapper for Sublime Text's subl.exe utility.





SYNTAX

Invoke-SublimeText [[-Files] <String[]>] [[-Project] <Object>] [[-Command] <String>] [-NewWindow] [-Add] [-Wait]

[-Background] [-Stay] [-Help] [-Version] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Files <String[]>

Files to edit. File names may be given a :line or :line:column suffix to open at a specific location.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Project <Object>

Project to load.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Command <String>

Command to run.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-NewWindow [<SwitchParameter>]

Open a new window.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Add [<SwitchParameter>]

Add folders to the current window.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Wait [<SwitchParameter>]

Wait for the files to be closed before returning.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Background [<SwitchParameter>]

Don't activate the application.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Stay [<SwitchParameter>]

Keep the application activated after closing the file.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Help [<SwitchParameter>]

Show help and exit.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Version [<SwitchParameter>]

Show version and exit.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS