Files
tty7/assets/completions/bat.json
T
l0ng-ai 22e1ab1694 tty7: a GPU-rendered, daemon-backed terminal in pure Rust
tty7 is split into two Rust processes: a persistent daemon that owns the
shells and a GPU-rendered client that talks to it over a local socket.
Because the shells live in the daemon, quitting and reopening the app
leaves the session intact — detach and reattach, no tmux required.

- Persistent sessions — the daemon holds the PTYs and child processes, so
  closing a window or swapping in a new build never takes a shell down.
- Performance — an 11 MB `cat` completes in 95 ms and DOOM-fire renders at
  888 fps; the daemon drains the PTY at device speed off the render path.
- Shell-aware — new tabs and splits open in the current working directory;
  zsh, bash, fish, and PowerShell are set up automatically.
- Enhanced prompt — inline completion, syntax highlighting, history, and
  in-terminal search, with rich flag/subcommand signatures for common tools.
- Tabs, resizable splits, a command palette, click-to-open links, desktop
  notifications, eight themes, and CJK/IME input.

Native builds for macOS, Windows, and Linux.
Built on Zed's gpui and Alacritty's VT core.
2026-07-06 21:54:27 +08:00

1 line
7.1 KiB
JSON

{"description":"A cat(1) clone with syntax highlighting and Git integration","options":[{"names":["-A","--show-all"],"description":"Show non-printable characters","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-p","--plain"],"description":"Show plain style, no decorations","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-l","--language"],"description":"Explicitly set the language for syntax highlighting","args":[{"name":"<language>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bat","--list-languages"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["-H","--highlight-line"],"description":"Highlight the specified line ranges","args":[{"name":"<N:M> ","description":"Range of line","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--file-name"],"description":"Specify the name to display for a file. Useful when piping data to bat from STDIN when bat does not otherwise know the filename","args":[{"name":null,"description":"File(s)","optional":false,"variadic":true,"template":["filepaths"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-d","--diff"],"description":"Show lines that have been added/removed/modified with respect to the Git index","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--diff-context"],"description":"Include N lines of context around added/removed/modified lines when using '--diff'","args":[{"name":"<N> ","description":"Lines of context","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--tabs"],"description":"Set the tab width to T spaces. Use a width of 0 to pass tabs through directly","args":[{"name":"<T> ","description":"Spaces of tab width","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--wrap"],"description":"Specify when to use colored output","args":[{"name":"<mode>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","bat --wrap unknow 2>&1 >/dev/null | grep possible"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["--terminal-width"],"description":"Explicitly set the width of the terminal instead of determining it automatically","args":[{"name":"<width> ","description":"Width to wrap","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-n","--number"],"description":"Show line numbers, no other decorations","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--color"],"description":"Specify when to use colored output","args":[{"name":"<when>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","bat --color unknow 2>&1 >/dev/null | grep possible"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["--italic-text"],"description":"Specify when to use ANSI sequences for italic text in the output","args":[{"name":"<when>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","bat --italic-text unknow 2>&1 >/dev/null | grep possible"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["--decorations"],"description":"Specify when to use the decorations that have been specified via '--style'","args":[{"name":"<when>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","bat --decorations unknow 2>&1 >/dev/null | grep possible"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["-f","--force-colorization"],"description":"Alias for '--decorations=always --color=always'","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--paging"],"description":"Specify when to use the pager","args":[{"name":"<when>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bash","-c","bat --paging unknow 2>&1 >/dev/null | grep possible"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["--pager"],"description":"Determine which pager is used","args":[{"name":"<command>","description":"Command to pager","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-m","--map-syntax"],"description":"Map a glob pattern to an existing syntax name","args":[{"name":"<glob:syntax>","description":"Full path or the filename:language that highlighted","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--ignored-suffix"],"description":"Ignore extension","args":[{"name":"<ignored-suffix>","description":"Extension","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--theme"],"description":"Set the theme for syntax highlighting","args":[{"name":"<theme>","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[{"script":["bat","--list-themes"]}]}],"required":false,"repeatable":false,"hidden":false},{"names":["--list-themes"],"description":"Display a list of supported themes for syntax highlighting","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--style"],"description":"Display a list of supported themes for syntax highlighting","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-r","--line-range"],"description":"Only print the specified range of lines for each file","args":[{"name":"<N:M> ","description":"Range of line","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-L","--list-languages"],"description":"Display a list of supported languages for syntax highlighting","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-u","--unbuffered"],"description":"Make output unbuffered (exists for POSIX-compliance reasons and is simply ignored)","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--diagnostic"],"description":"Show diagnostic information for bug reports","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--acknowledgements"],"description":"Show acknowledgements","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-h","--help"],"description":"Print help message","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-V","--version"],"description":"Show version information","args":[],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":null,"description":"File(s)","optional":false,"variadic":true,"template":["filepaths"],"suggestions":[],"generators":[]}],"subcommands":[],"name":"bat"}