Skip to content

Releases: carapace-sh/carapace-bin

v0.12.5

21 May 09:08
56d4428
Compare
Choose a tag to compare

Changelog

v0.12.4

14 May 11:36
153ae6b
Compare
Choose a tag to compare

Changelog

v0.12.3

10 May 11:54
7d840b2
Compare
Choose a tag to compare

Changelog

v0.12.2

10 May 09:30
340f076
Compare
Choose a tag to compare

Changelog

  • 5e918cb Merge pull request #1090 from rsteube/macro-signature
  • fe1b3cf Merge pull request #1091 from rsteube/macro-fix-actions
  • 378e5c0 Merge pull request #1092 from rsteube/doc-macros
  • f0a937a Merge pull request #1093 from rsteube/doc-fix-macro
  • ccf02b1 Merge pull request #1094 from rsteube/doc-artifact
  • f7de1c2 Merge pull request #1095 from rsteube/artifact-location
  • 9e89c2e Merge pull request #1096 from rsteube/test
  • 1e24d08 Merge pull request #1097 from rsteube/fix-permissions
  • 738f6b6 Merge pull request #1098 from rsteube/ps-actions
  • 94ef732 Merge pull request #1099 from rsteube/color-actions
  • 6a9f719 Merge pull request #1100 from rsteube/complete-macros
  • f0cd637 Merge pull request #1102 from rsteube/git-colors
  • 7b6e4c4 Merge pull request #1102 from rsteube/git-colors
  • d609adf Merge pull request #1103 from rsteube/dependabot/go_modules/github.com/rsteube/carapace-spec-0.0.15
  • 0424efe Merge pull request #1106 from rsteube/tmux-subcommands
  • 6488d3d Merge pull request #1107 from rsteube/tmux-actions
  • 6f97bfc Merge pull request #1109 from rsteube/tmux-killwindow
  • d389cbe Merge pull request #1110 from rsteube/tmux-killsession
  • c3f3da8 Merge pull request #1111 from rsteube/update-spec
  • a9554ed Merge pull request #1112 from rsteube/git-stash-style
  • 48c5907 Merge pull request #1113 from rsteube/spec-quote-path
  • 340f076 Merge pull request #1114 from rsteube/spec-default
  • 2ba1bfa actions: moved color related actions to separate package
  • 3dbf138 actions: moved process related actions to separate package
  • e19c3ae build(deps): bump github.com/rsteube/carapace-spec from 0.0.14 to 0.0.15
  • b016cce doc: added macros
  • ac5f4f4 doc: fix macro gen
  • 99ceda3 doc: pass bin as artifact
  • 9d86e0f fix download path
  • 453ce27 fix permissions
  • c167cac git: color config style
  • 46c129c git: fix stash style
  • 1e27864 macro: fix actions
  • 8d2462a macro: fix signature
  • 63d9bb3 macros: complete examples
  • 28427db set artifact location
  • ea0bfeb spec: default arg
  • d1bcd86 spec: quote path
  • cc965e2 tmp
  • 0a40da5 tmux: added ACtionSessions and ActionWindows
  • 92c128d tmux: kill-session
  • d29a629 tmux: kill-window
  • 68eed50 upated spec

v0.12.1

06 May 12:13
a70de34
Compare
Choose a tag to compare

Spec Autoloading

Specs placed in ${UserConfigDir}/carapace/specs/ (UserConfigDir) are now registered with carapace _carapace.
File name must be the command to be completed and match ^[0-9a-zA-Z_\-.]+\.yaml$ (sanity check to avoid breakage in scripts).

Custom Macros

Exposed actions as custom macros (list with carapace --macros).
Removed the _ prefix from core macros to avoid clashes (e.g. $files, $directories).

Macro Arguments

Arguments are parsed as yaml ($macro(yaml) - e.g.: $_tools.gh.Users({users: true})).
Brackets are optional when no argument is passed ($files instead of $files()).

Variable Substitution

Variables are replaced using drone/envsubst for contextual completion:

name: myzip
completion:
  positional:
    - ["$files([.zip])"] # ${C_ARG0}
  positionalany: ["$_fs.ZipFileContents(${C_ARG0})"] # ${C_ARG1},${C_ARG2},...

Flags are only added to env when their value changed (thus: ${C_FLAG_FLAGNAME:-default}):

name: myrefs
flags:
  --tags: list tags # ${C_FLAG_TAGS}
  --localbranches: list local branches # ${C_FLAG_LOCALBRANCHES}
  --commits=: amount of commits # ${C_FLAG_COMMITS}
completion:
  positional:
    - ["$_tools.git.Refs({tags: ${C_FLAG_TAGS:-false}, localbranches: ${C_FLAG_LOCALBRANCHES:-false}, commits: ${C_FLAG_COMMITS:-0}})"] # refs based on flag values with defaults
    - ["$_tools.git.Refs"] # default refs
    - ["$(env)"] # env

Changelog

  • 4c1adb5 Merge pull request #1083 from rsteube/custom-macros
  • c15cc7b Merge pull request #1085 from rsteube/actions-http
  • 86282ef Merge pull request #1087 from rsteube/macros
  • a70de34 Merge pull request #1089 from rsteube/actions-gh-signature
  • 77209c6 actions: remove http prefix
  • 60f5609 actions: tools.gh.ActionUsers macro signature
  • 7806533 added custom macros
  • 3e442f8 spec: expose Actions as custom macros

v0.12.0

02 May 18:55
54529a6
Compare
Choose a tag to compare

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

v0.11.8

26 Apr 11:59
9971593
Compare
Choose a tag to compare

Changelog

v0.11.7

25 Apr 17:54
058b1a3
Compare
Choose a tag to compare

Changelog

v0.11.6

22 Apr 15:00
4d4a80e
Compare
Choose a tag to compare

Changelog

  • 6fda662 ActionKillSignals: added style
  • f5e0fb3 ActionMounts: added style
  • 02dfa98 ActionXtermColorNames: added style
  • 26b2f5d ActionarFileClasses: added style
  • 305643f Merge pull request #1037 from rsteube/gh-body-completion
  • 13687f6 Merge pull request #1038 from rsteube/gh-keyword-completion
  • df5ba50 Merge pull request #1039 from rsteube/gh-mentionable-users
  • 080cef6 Merge pull request #1040 from rsteube/gh-issue-list-mention
  • 58b2d7c Merge pull request #1041 from rsteube/actionmounts-style
  • 07de435 Merge pull request #1042 from rsteube/add-terragrunt
  • 7d09383 Merge pull request #1043 from rsteube/jarclass-style
  • 87cb8ae Merge pull request #1044 from rsteube/add-batgrep
  • 7d2bfbb Merge pull request #1045 from rsteube/add-batman
  • b1524c0 Merge pull request #1046 from rsteube/add-batdiff
  • 97524ff Merge pull request #1047 from rsteube/add-prettybat
  • c3dc453 Merge pull request #1048 from rsteube/inkscape-style
  • 86a46ad Merge pull request #1049 from rsteube/pkill-runstates
  • c1d2218 Merge pull request #1050 from rsteube/killsignal-style
  • b1c6843 Merge pull request #1051 from rsteube/actionxtermcolornames-style
  • c6daf01 Merge pull request #1052 from rsteube/dependabot/go_modules/github.com/pelletier/go-toml-1.9.5
  • b0e9c16 Merge pull request #1053 from rsteube/update-carapace
  • 4d4a80e Merge pull request #1054 from rsteube/doc-nushell
  • 5713a63 Update README.md
  • ffd6764 added batdiff
  • 04c2379 added batgrep
  • 775d1f1 added batman
  • 9dde803 added prettybat
  • 8d12ef2 added terragrunt
  • e40945e build(deps): bump github.com/pelletier/go-toml from 1.9.4 to 1.9.5
  • b158c93 doc: updated nushell
  • 20a7337 gh: added body link completion
  • a3fc5ad gh: additional keyword completion
  • 2871af7 gh: comment mentionable users completion
  • d74b648 gh: issue list - fix mention completion
  • 4fd1e09 inkscape: added style
  • b5208b4 pkill: runstates completion
  • 90f9284 updated carapace to v0.19.6

v0.11.5

13 Apr 19:13
c8dbdad
Compare
Choose a tag to compare

Changelog

  • fee8191 Merge pull request #1034 from rsteube/go-fix-delimiter
  • 5baf23b Merge pull request #1035 from rsteube/git-diff-dashcompletion
  • c8dbdad Merge pull request #1036 from rsteube/gh-updates-2.8.0
  • bac8d73 gh: updates from v2.8.0
  • 02a143e git: diff/tool - dash completion
  • 85766cb go: test - fix delimiter