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