godot.fish 6.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. function godot_video_driver_args
  26. # Use a function instead of a fixed string to customize the argument descriptions.
  27. echo -e "GLES3\tOpenGL ES 2.0 renderer"
  28. echo -e "GLES2\tOpenGL ES 2.0 renderer"
  29. end
  30. # Erase existing completions for Godot.
  31. complete -c godot -e
  32. # General options:
  33. complete -c godot -s h -l help -d "Display the full help message"
  34. complete -c godot -l version -d "Display the version string"
  35. complete -c godot -s v -l verbose -d "Use verbose stdout mode"
  36. complete -c godot -l quiet -d "Quiet mode, silences stdout messages (errors are still displayed)"
  37. # Run options:
  38. complete -c godot -s e -l editor -d "Start the editor instead of running the scene"
  39. complete -c godot -s p -l project-manager -d "Start the project manager, even if a project is auto-detected"
  40. complete -c godot -s q -l quit -d "Quit after the first iteration"
  41. complete -c godot -s l -l language -d "Use a specific locale (<locale> being a two-letter code)" -x
  42. complete -c godot -l path -d "Path to a project (<directory> must contain a 'project.godot' file)" -r
  43. complete -c godot -s u -l upwards -d "Scan folders upwards for project.godot file"
  44. complete -c godot -l main-pack -d "Path to a pack (.pck) file to load" -r
  45. complete -c godot -l render-thread -d "Set the render thread mode" -x -a "unsafe safe separate"
  46. complete -c godot -l remote-fs -d "Use a remote filesystem (<host/IP>[:<port>] address)" -x
  47. complete -c godot -l remote-fs-password -d "Password for remote filesystem" -x
  48. complete -c godot -l audio-driver -d "Set the audio driver" -x
  49. complete -c godot -l video-driver -d "Set the video driver" -x -a "(godot_video_driver_args)"
  50. # Display options:
  51. complete -c godot -s f -l fullscreen -d "Request fullscreen mode"
  52. complete -c godot -s m -l maximized -d "Request a maximized window"
  53. complete -c godot -s w -l windowed -d "Request windowed mode"
  54. complete -c godot -s t -l always-on-top -d "Request an always-on-top window"
  55. complete -c godot -l resolution -d "Request window resolution" -x
  56. complete -c godot -l position -d "Request window position" -x
  57. complete -c godot -l low-dpi -d "Force low-DPI mode (macOS and Windows only)"
  58. complete -c godot -l no-window -d "Disable window creation (Windows only), useful together with --script"
  59. complete -c godot -l enable-vsync-via-compositor -d "When Vsync is enabled, Vsync via the OS' window compositor (Windows only)"
  60. complete -c godot -l disable-vsync-via-compositor -d "Disable Vsync via the OS' window compositor (Windows only)"
  61. # Debug options:
  62. complete -c godot -s d -l debug -d "Debug (local stdout debugger)"
  63. complete -c godot -s b -l breakpoints -d "Specify the breakpoint list as source::line comma-separated pairs, no spaces (use %20 instead)" -x
  64. complete -c godot -l profiling -d "Enable profiling in the script debugger"
  65. complete -c godot -l remote-debug -d "Enable remote debugging"
  66. complete -c godot -l debug-collisions -d "Show collision shapes when running the scene"
  67. complete -c godot -l debug-navigation -d "Show navigation polygons when running the scene"
  68. complete -c godot -l frame-delay -d "Simulate high CPU load (delay each frame by the given number of milliseconds)" -x
  69. complete -c godot -l time-scale -d "Force time scale (higher values are faster, 1.0 is normal speed)" -x
  70. complete -c godot -l disable-render-loop -d "Disable render loop so rendering only occurs when called explicitly from script"
  71. complete -c godot -l disable-crash-handler -d "Disable crash handler when supported by the platform code"
  72. complete -c godot -l fixed-fps -d "Force a fixed number of frames per second (this setting disables real-time synchronization)" -x
  73. complete -c godot -l print-fps -d "Print the frames per second to the stdout"
  74. # Standalone tools:
  75. complete -c godot -s s -l script -d "Run a script" -r
  76. complete -c godot -l check-only -d "Only parse for errors and quit (use with --script)"
  77. complete -c godot -l export -d "Export the project using the given preset and matching release template" -x
  78. complete -c godot -l export-debug -d "Same as --export, but using the debug template" -x
  79. complete -c godot -l export-pack -d "Same as --export, but only export the game pack for the given preset" -x
  80. 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
  81. complete -c godot -l no-docbase -d "Disallow dumping the base types (used with --doctool)"
  82. complete -c godot -l build-solutions -d "Build the scripting solutions (e.g. for C# projects)"
  83. complete -c godot -l gdnative-generate-json-api -d "Generate JSON dump of the Godot API for GDNative bindings"
  84. complete -c godot -l benchmark -d "Benchmark the run time and print it to console"
  85. complete -c godot -l benchmark-file -d "Benchmark the run time and save it to a given file in JSON format" -x
  86. complete -c godot -l test -d "Run a unit test" -x