openage icon indicating copy to clipboard operation
openage copied to clipboard

zsh completion module

Open TheJJ opened this issue 11 years ago • 2 comments

There should be an openage completion module allowing to select the demos, tests and (soon) benchmarks.

This file is installed to /usr/share/zsh/site-functions but it should also be available for developers somehow (the least elegant solution would be sourcing that file manually).

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

TheJJ avatar Nov 26 '14 00:11 TheJJ

As part of the dist folder? I guess that would be OK... but don't forget the bash completions file for our more poorly-equipped friends :P

Also what's the folder on OSX?

Note that you can add fpath=(~/git/openage/dist/zshcompletion $fpath) to your .zshrc before compinit

Also have a look at the genzshcomp python module, which we could use if argument parsing would ultimately happen in the python part of openage.

mic-e avatar Nov 26 '14 06:11 mic-e

This completion file should ideally be created by the buildsystem:

  • Definition of the available options and its callbacks in a separate file (or the cmakelists.txt?)
  • Generation of the python/C++-code that handles the arguments
  • Generation of the zsh/bash completion code

TheJJ avatar Jan 05 '15 04:01 TheJJ