0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Zed】タブ切り替えを巡回しないようにする方法

0
Posted at

デフォルトの挙動

Zedのタブ切り替えには以下のアクションが使われています。

アクション 説明
pane::ActivateNextItem 次のタブへ移動
pane::ActivatePreviousItem 前のタブへ移動

デフォルトでは巡回が有効になっており、タブの端まで到達すると反対側の端へ折り返します。

設定方法

keymap.json に以下のように記述することで、タブの端で止まるように変更できます。

macOSの場合

[
  {
    "bindings": {
      "cmd-shift-]": ["pane::ActivateNextItem", { "wrap_around": false }],
      "cmd-shift-[": ["pane::ActivatePreviousItem", { "wrap_around": false }]
    }
  }
]

wrap_aroundfalse にすることで、最後のタブで次へ進もうとしても最初に戻らず、最後のタブにとどまるようになります。

参考

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?