Linux command
zeditor 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open file
zeditor [file]
Open at line
zeditor [file]:[line]
Open multiple files
zeditor [file1] [file2]
New window
zeditor --new [file]
说明
zeditor is the command-line launcher for Zed, a modern code editor written in Rust. It opens files and directories in the Zed graphical editor from the terminal. Files can be opened at specific line numbers using the file:line syntax. The --new flag opens a new editor window instead of reusing an existing one, and --wait blocks the terminal until the editor window is closed, useful for git commit messages and other tools that invoke an editor. Zed itself is a high-performance editor featuring real-time collaborative editing, integrated AI code assistance, and a minimal interface designed for speed.
参数
- --new
- New window.
- --wait
- Wait for close.
- --help
- Show help.
FAQ
What is the zeditor command used for?
zeditor is the command-line launcher for Zed, a modern code editor written in Rust. It opens files and directories in the Zed graphical editor from the terminal. Files can be opened at specific line numbers using the file:line syntax. The --new flag opens a new editor window instead of reusing an existing one, and --wait blocks the terminal until the editor window is closed, useful for git commit messages and other tools that invoke an editor. Zed itself is a high-performance editor featuring real-time collaborative editing, integrated AI code assistance, and a minimal interface designed for speed.
How do I run a basic zeditor example?
Run `zeditor [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --new do in zeditor?
New window.