1
1

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】ホットキーでHTTPクライアントツールを表示する方法

Last updated at Posted at 2025-01-23

Postingをインストール

以下のコマンドを実行してPostingをインストールします。

brew install posting

Zedのタスクを作成する

Postingを起動するタスクを作成するためにtasks.jsonに以下を追記します。


  {
    "label": "Posting",
    "command": "posting",
    "hide": "always",
    "allow_concurrent_runs": false,
    "use_new_terminal": true
  }

タスクにホットキーを設定する

ホットキーでタスクを実行できるようにkeymaps.jsonに以下を追記します。

  {
    "bindings": {
      "alt-p": [
        "task::Spawn",
        {
          "task_name": "Posting",
          "reveal_target": "center"
        }
      ]
    }
  }

上記のように記述した場合、alt + pを入力すると画像のようにHTTPクライアントツールが表示されます。

スクリーンショット 2025-01-23 23.52.01のコピー.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?