0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows Terminalのキーバインドを設定する

Posted at

まだプレビュー版なので今後変更される可能性があります。

参考:https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md

設定ファイルを開く

タブの右の矢印から「Settings」を開くか、ショートカット「Ctrl + ,」でprofiles.jsonを開く。

profiles.jsonを編集する

{
    // 

    "keybindings":
    [
        {
            "command": "prevTab",
            "keys": ["ctrl+pgup"]
        },
        {
            "command": "nextTab",
            "keys": ["ctrl+pgdn"]
        },
        {
            "command": "copy",
            "keys": ["ctrl+insert"]
        },
        {
            "command": "paste",
            "keys": ["shift+insert"]
        },
        {
            "command": "newTab",
            "keys": ["ctrl+t"]
        },
        {
            "command": "closeTab",
            "keys": ["ctrl+w"]
        },
        {
            "command": "splitHorizontal",
            "keys": ["ctrl+shift+down"]
        },
        {
            "command": "splitVertical",
            "keys": ["ctrl+shift+right"]
        },
        {
            "command": "moveFocusDown",
            "keys": ["ctrl+down"]
        },
        {
            "command": "moveFocusLeft",
            "keys": ["ctrl+left"]
        },
        {
            "command": "moveFocusRight",
            "keys": ["ctrl+right"]
        },
        {
            "command": "moveFocusUp",
            "keys": ["ctrl+up"]
        },
        {
            "command": "closePane",
            "keys": ["ctrl+shift+w"]
        }
    ]
}

キーバインドの他にもいろいろ設定できる。

各項目の説明

  • prevTab, nextTab
    • タブを移動する
  • copy, paste
    • コピー、ペースト
  • newTab, closeTab
    • タブを開く、タブを閉じる
  • splitVertical
    • 画面を縦方向に分割する(右にできる)
  • splitHorizontal
    • 画面を横方向に分割する(下にできる)
  • moveFocus~
    • 分割した画面(ペイン)間でフォーカスを移動する
  • closePane
    • 分割した画面(ペイン)を閉じる
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?