diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-08-17 15:45:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-08-17 15:45:01 +0100 |
| commit | 541ec58d763993c2ae8306bd655fd4aeaebc09a5 (patch) | |
| tree | 266c13a646b53d588f45d6cab0bcea91a7e30d3d | |
| parent | 6ba3017a8ea91c9733f29f63aea55de76dfceec3 (diff) | |
git-tools: list available commands in git docstring
| -rw-r--r-- | rc/git-tools.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/git-tools.kak b/rc/git-tools.kak index ac76e2f1..ddb1d490 100644 --- a/rc/git-tools.kak +++ b/rc/git-tools.kak @@ -23,12 +23,12 @@ decl line-flag-list git_blame_flags decl line-flag-list git_diff_flags def -shell-params \ - -docstring "git wrapping helper" \ + -docstring %sh{printf "%%{git wrapping helper\navailable commands:\n add\n blame\n checkout\n diff\n hide-blame\n log\n show\n show-diff\n status\n update-diff}"} \ -shell-completion %{ shift $(expr ${kak_token_to_complete}) prefix=${1:0:${kak_pos_in_token}} ( - for cmd in show log diff status blame hide-blame show-diff update-diff checkout add; do + for cmd in add blame checkout diff hide-blame log show show-diff status update-diff; do expr "${cmd}" : "^\(${prefix}.*\)$" done ) | grep -v '^$' |
