Skip to content
0.2.0-dev Download ZIP
95 lines ·7.6 KB Raw
1#compdef godot
2
3# zsh completion for the Godot editor
4# To use it, install this file as `_godot` in a directory specified in your
5# `fpath` environment variable then restart your shell.
6#
7# Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md).
8# Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.
9#
10# Permission is hereby granted, free of charge, to any person obtaining a copy
11# of this software and associated documentation files (the "Software"), to deal
12# in the Software without restriction, including without limitation the rights
13# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14# copies of the Software, and to permit persons to whom the Software is
15# furnished to do so, subject to the following conditions:
16#
17# The above copyright notice and this permission notice shall be included in all
18# copies or substantial portions of the Software.
19#
20# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26# SOFTWARE.
27
28_arguments \
29 "1::path to scene or 'project.godot' file:_files" \
30 '(-h --help)'{-h,--help}'[display the full help message]' \
31 '--version[display the version string]' \
32 '(-v --verbose)'{-v,--verbose}'[use verbose stdout mode]' \
33 '(-q --quiet)'{-q,--quiet}'[quiet mode, silences stdout messages (errors are still displayed)]' \
34 '(-e --editor)'{-e,--editor}'[start the editor instead of running the scene]' \
35 '(-p --project-manager)'{-p,--project-manager}'[start the project manager, even if a project is auto-detected]' \
36 '--debug-server[start the editor debug server]:editor debugger listen address' \
37 '--quit[quit after the first iteration]' \
38 '(-l --language)'{-l,--language}'[use a specific locale (<locale> being a two-letter code)]:two-letter locale code' \
39 "--path[path to a project (<directory> must contain a 'project.godot' file)]:path to directory with 'project.godot' file:_dirs" \
40 '--main-pack[path to a pack (.pck) file to load]:path to .pck file:_files' \
41 '--render-thread[set the render thread mode]:render thread mode:(unsafe safe separate)' \
42 '--remote-fs[use a remote filesystem]:remote filesystem address' \
43 '--remote-fs-password[password for remote filesystem]:remote filesystem password' \
44 '--audio-driver[set the audio driver]:audio driver name' \
45 '--audio-output-latency[override audio output latency in milliseconds (default is 15 ms)]:number of milliseconds' \
46 '--display-driver[set the display driver]:display driver name' \
47 "--rendering-method[set the renderer]:renderer name:((forward_plus\:'Desktop renderer' mobile\:'Desktop and mobile renderer' gl_compatibility\:'Desktop, mobile and web renderer'))" \
48 "--rendering-driver[set the rendering driver]:rendering driver name:((vulkan\:'Vulkan renderer' opengl3\:'OpenGL ES 3.0 renderer' dummy\:'Dummy renderer'))" \
49 "--gpu-index[use a specific GPU (run with --verbose to get available device list)]:device index" \
50 '--text-driver[set the text driver]:text driver name' \
51 '--tablet-driver[set the pen tablet input driver]:tablet driver name' \
52 '--headless[enable headless mode (--display-driver headless --audio-driver Dummy), useful for servers and with --script]' \
53 '--log-file[write output/error log to the specified path instead of the default location defined by the project]:path to output log file' \
54 '--write-movie[write a video to the specified path (usually with .avi or .png extension)]:path to output video file' \
55 '(-f --fullscreen)'{-f,--fullscreen}'[request fullscreen mode]' \
56 '(-m --maximized)'{-m,--maximized}'[request a maximized window]' \
57 '(-w --windowed)'{-w,--windowed}'[request windowed mode]' \
58 '(-t --always-on-top)'{-t,--always-on-top}'[request an always-on-top window]' \
59 '--resolution[request window resolution]:resolution in WxH format' \
60 '--position[request window position]:position in X,Y format' \
61 '--single-window[use a single window (no separate subwindows)]' \
62 '--xr-mode[select Extended Reality (XR) mode]:Extended Reality (XR) mode:(default off on)' \
63 '(-d --debug)'{-d,--debug}'[debug (local stdout debugger)]' \
64 '(-b --breakpoints)'{-b,--breakpoints}'[specify the breakpoint list as source::line comma-separated pairs, no spaces (use %20 instead)]:breakpoint list' \
65 '--profiling[enable profiling in the script debugger]' \
66 '--gpu-profile[show a GPU profile of the tasks that took the most time during frame rendering]' \
67 '--gpu-validation[enable graphics API validation layers for debugging]' \
68 '--gpu-abort[abort on graphics API usage errors (usually validation layer errors)]' \
69 '--remote-debug[enable remote debugging]:remote debugger address' \
70 '--debug-collisions[show collision shapes when running the scene]' \
71 '--debug-navigation[show navigation polygons when running the scene]' \
72 '--debug-stringnames[print all StringName allocations to stdout when the engine quits]' \
73 '--frame-delay[set a maximum number of frames per second rendered (can be used to limit power usage), a value of 0 results in unlimited framerate]:maximum frames per seocnd' \
74 '--frame-delay[simulate high CPU load (delay each frame by the given number of milliseconds)]:number of milliseconds' \
75 '--time-scale[force time scale (higher values are faster, 1.0 is normal speed)]:time scale' \
76 '--disable-vsync[disable vertical synchronization even if enabled in the project settings]' \
77 '--disable-render-loop[disable render loop so rendering only occurs when called explicitly from script]' \
78 '--disable-crash-handler[disable crash handler when supported by the platform code]' \
79 '--fixed-fps[force a fixed number of frames per second (this setting disables real-time synchronization)]:frames per second' \
80 '--print-fps[print the frames per second to the stdout]' \
81 '(-s, --script)'{-s,--script}'[run a script]:path to script:_files' \
82 '--check-only[only parse for errors and quit (use with --script)]' \
83 '--export-release[export the project in release mode using the given preset and output path]:export preset name then path' \
84 '--export-debug[export the project in debug mode using the given preset and output path]:export preset name then path' \
85 '--export-pack[export the project data only as a PCK or ZIP file using the given preset and output path]:export preset name then path' \
86 '--convert-3to4[converts project from Godot 3.x to Godot 4.x]' \
87 '--validate-conversion-3to4[shows what elements will be renamed when converting project from Godot 3.x to Godot 4.x]' \
88 '--doctool[dump the engine API reference to the given path in XML format, merging if existing files are found]:path to base Godot build directory (optional):_dirs' \
89 '--no-docbase[disallow dumping the base types (used with --doctool)]' \
90 '--build-solutions[build the scripting solutions (e.g. for C# projects)]' \
91 '--dump-gdextension-interface[generate GDExtension header file 'gdextension_interface.h' in the current folder. This file is the base file required to implement a GDExtension.]' \
92 '--dump-extension-api[generate JSON dump of the Godot API for GDExtension bindings named "extension_api.json" in the current folder]' \
93 '--benchmark[benchmark the run time and print it to console]' \
94 '--benchmark-file[benchmark the run time and save it to a given file in JSON format]:path to output JSON file' \
95 '--test[run all unit tests; run with "--test --help" for more information]'