Linux command
o 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open a file
o [file]
Open at a specific line
o [file]:[line]
Open at a line and column
o [file]:[line]:[column]
Open the first file whose name matches a substring
o -g [substring]
Format a file
o -F [file]
Build the project
o -b [file]
Monitor a file
o -m [file]
Paste the clipboard
o -p [file]
List all digraphs
o -s
说明
o (the executable name of orbiton) is a small, snappy, configuration-free text editor and mini-IDE for the terminal. It detects the language from the filename and provides syntax highlighting, rainbow parentheses, a macro recorder, cut/paste "portals" between sessions, jump-to-error from compiler output, LSP support, and simple gdb/dlv frontends. Invoking `o` with a file opens it; appending `:line` or `:line:col` jumps to that position. The editor has no config file by design: most behavior is inferred from file type and environment. A companion binary `ko` opens in light theme; `lo` reduces colors for low-bandwidth terminals.
参数
- -c, --copy
- Copy the file into the clipboard.
- -p, --paste
- Paste the clipboard into the given file (combine with `-f` to overwrite).
- -f, --force
- Ignore file locks when opening.
- -m, --monitor
- Monitor the file for changes; open read-only.
- -t, --list
- Print the file with syntax highlighting and exit.
- -b, --build
- Build the file/project instead of editing.
- -F, --format
- Format the file instead of editing.
- -k, --create-dir
- Create parent directories as needed for new files.
- -d, --debug
- Start in debug (gdb/dlv) mode.
- -r, --release
- Build in release mode instead of debug when applicable.
- -l, --last-command
- Print the last used build/format/export command and exit.
- -e, --clear-locks
- Clear all file locks and close portals.
- -n, --no-cache
- Do not write history, highscore, or last-command caches.
- -i, --input-file _FILE_
- Use _FILE_ as stdin for programs launched with Ctrl-Space.
- -a, --nano
- Emulate Pico/Nano keybindings.
- -o, --ollama
- Enable Ollama AI features (model from `$OLLAMA_MODEL`).
- -q, --quick-help
- Always show the quick-help pane at startup.
- -z, --no-quick-help
- Never show the quick-help pane.
- -x, --noapprox
- Disable approximate filename matching.
- -g, --glob _SUBSTRING_
- Open the first filename matching the substring.
- -s, --digraphs
- List all supported digraphs and exit.
- -v, --version
- Print version information.
- -h, --help
- Show help.
FAQ
What is the o command used for?
o (the executable name of orbiton) is a small, snappy, configuration-free text editor and mini-IDE for the terminal. It detects the language from the filename and provides syntax highlighting, rainbow parentheses, a macro recorder, cut/paste "portals" between sessions, jump-to-error from compiler output, LSP support, and simple gdb/dlv frontends. Invoking `o` with a file opens it; appending `:line` or `:line:col` jumps to that position. The editor has no config file by design: most behavior is inferred from file type and environment. A companion binary `ko` opens in light theme; `lo` reduces colors for low-bandwidth terminals.
How do I run a basic o example?
Run `o [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --copy do in o?
Copy the file into the clipboard.