ZL

zenbu-labs/terminal-code

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

2214 stars 品質 67 トレンド 44MIT

端末内のVSコード

概要

https://github.com/user-attachments/assets/4ba0d434-896a-4ab3-9c91-5d351dacee08 terminal codeはterminal-browser(端末内のブラウザ)とcode-server(ブラウザ内のVS Code)を組み合わせて、VS Codeをターミナルに届けます。詳細はこれらのプロジェクトをぜひご覧ください! 重要なショートカットで端末と端末コードが競合する可能性が高く、時にはそのキー入力が端末コードに表示されないこともあります。ショートカットの競合を解決するには、tode -shortcut-setupを実行すると、インタラクティブなウィザードに切り替えられ、端末や端末のショートカットが競合しないように変更できます sshよりもターミナルコードを使う推奨方法は、ローカルマシンでtode --sshを実行することです。 代替案としては、シッとしているマシン上で直接実行することです。

概要(AI 翻訳)

端末内のVSコード

https://github.com/user-attachments/assets/4ba0d434-896a-4ab3-9c91-5d351dacee08

インストール(macOS および Linux):

使用法

どうやって動くんだ?

terminal codeはterminal-browser(端末内のブラウザ)とcode-server(ブラウザ内のVS Code)を組み合わせて、VS Codeをターミナルに届けます。詳細はこれらのプロジェクトをぜひご覧ください!

ショートカット

重要なショートカットで端末と端末コードが競合する可能性が高く、時には端末コードがキー入力を受け取らないこともあります。解決方法 ショートカットの競合はtode --shortcut-setupを実行し、端末や端末コードのショートカットを変更できるインタラクティブウィザードに入ります だからもはや衝突しません

シャッ

sshよりもターミナルコードを使う推奨方法は、ローカルマシンでtode --ssh を実行することです。

代替案としては、シャッと入ったマシン上で直接todeを実行する方法があります。これでうまくいきますが、 必要条件:

  • ネットワーク上で送信されるVSCODEで描画されたすべてのフレーム
  • VSCoDが反応する前に、すべてのユーザー入力がネットワーク上で送信される
  • いくつかの追加の最適化を見逃す

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

terminal-code

VS Code inside your terminal

https://github.com/user-attachments/assets/4ba0d434-896a-4ab3-9c91-5d351dacee08

Install (macOS & Linux):

curl -fsSL https://tode.sh/install | bash

Usage

Usage: tode [path...] [options]
       tode --

  tode                  Open the folder in the current working directory
  tode          Open the specified folder
  tode            Open the specified file

Options:
  -g, --goto     Open a file at a line and column
  -a, --add     Add a folder to the active workspace
  -n, --new-window      Open a new pane even for a file
  -w, --wait            Wait until the file is closed again
  -d, --diff      Compare two files
  -r, --reuse-window    Open folder in this window rather than a new pane
  --install-extension   Install an extension by id or vsix path
  --uninstall-extension Remove an extension
  --list-extensions     List installed extensions
  --split    Open in a new pane: right, left, down, up
  --size      The % a new split will take up (0.2 to 0.95)
  --timing              Report how long each stage of this open took
  --review              Open on the source control panel
  --ssh      Run terminal-code on an ssh server

Commands, each as the first argument:
  --shortcut-setup      Resolve shortcut conflicts between terminal-code and the current terminal
  --timing              Profile terminal-code launch
  --import [editor]     Bring settings, keybindings, snippets and extensions
                        over from vscode compatible editors
  --theme [file]        Set editor theme
  --enable-transparency Make the editor transparent
  --disable-transparency Make the editor opaque again
  --serve [path]        Start code server and print its url
  --skill               An agent skill to assist with modifying terminal-code
  --upgrade [--check]   Upgrade terminal-code to the latest version
  --shutdown            Stop all terminal-code activities
  --uninstall [--yes]   Remove all terminal-code data from this machine

How does it work?

terminal-code combines terminal-browser (a browser in the terminal) and code-server (VS Code in the browser) to bring VS Code to the terminal. You should look into these projects for more details!

Shortcuts

Your terminal and terminal-code will likely conflict on important shortcuts, meaning sometimes terminal-code will never even receive your key press. To resolve shortcut conflicts you can run tode --shortcut-setup, and you will be placed into an interactive wizard that lets you change terminal or terminal-code shortcuts so they no longer conflict

SSH

The recommended way to use terminal-code over ssh is running tode --ssh on your local machine.

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add zenbu-labs/terminal-code
MCP 初心者?mcpskill.org のガイドから始めましょう →