Skip to content

v0.12.0

Choose a tag to compare

@rsteube rsteube released this 02 May 18:55
· 3821 commits to master since this release
54529a6

Preinvoke

Generic alteration of completion before execution which enables features like directory change in git -C <DIR>:

2022-05-02-211114_1276x383_scrot

Spec

Experimental support for simple completions using yaml spec files:

name: example
description:
flags:
  --dynamic=: dynamic value
  -o, --optarg?: optarg flag
  -s, --styled=: styled values
completion:
  flag:
    dynamic: ["$(git branch --all | cut -c 3- | sed 's/$/\t\tblue/')", "static value"]
    optarg: ["first", "second", "third"]
    styled:
    - "blue\tblue\tblue"
    - "cyan\tcyan\tcyan"
  positional:
  -  ["pos1-a", "pos1-b", "pos1-c"]
  -  ["$_files"]

Changelog