Skip to content

Latest commit

 

History

History
110 lines (72 loc) · 2.71 KB

Get-WTKeyBinding.md

File metadata and controls

110 lines (72 loc) · 2.71 KB
external help file Module Name online version schema
WTToolBox-help.xml
WTToolBox
2.0.0

Get-WTKeyBinding

SYNOPSIS

Display Windows Terminal key binding information.

SYNTAX

Get-WTKeyBinding [-Action <String>] [<CommonParameters>]

DESCRIPTION

Get Windows Terminal key binding settings. If a keybinding from your settings.json file has the same key combination as a default, the default setting is overwritten. Use the Action parameter to filter for specific types of actions.

EXAMPLES

EXAMPLE 1

PS C:\Get-WTKeyBinding

Get Windows Terminal key bindings and display in the default formatted table view.

EXAMPLE 2

PS C:\> Get-WTKeyBinding -Action *font* | Format-List


      Source: Defaults


Action         : adjustFontSize
ActionSettings : delta = 1
Keys           : ctrl+=

Action         : adjustFontSize
ActionSettings : delta = -1
Keys           : ctrl+-

Action         : resetFontSize
ActionSettings :
Keys           : ctrl+0

Display a specific action. Wildcards are permitted.

EXAMPLE 3

PS C:\> Get-WTKeyBinding | where keys | sort keys | Format-Table -view keys

Keys              ActionSettings                   Action              Source
----              --------------                   ------              ------
alt+down          direction = down                 moveFocus           Defaults
alt+enter                                          toggleFullscreen    Defaults
alt+f4                                             closeWindow         Defaults
alt+left          direction = left                 moveFocus           Defaults
alt+right         direction = right                moveFocus           Defaults
alt+shift+-       split = horizontal               splitPane           Defaults
...

Get all key bindings where a key combination has been assigned and display the results the Keys table view.

PARAMETERS

-Action

Select an action type. The command should autocomplete possible choices.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

wtKeybinding

NOTES

This command has an alias of gwtk.

Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/

RELATED LINKS