0.942   2020-03-04  Released-By: PERLANCAR; Urgency: medium

	- [test] Adjust to Complete::Sah 0.005.

0.941   2019-12-18  Released-By: PERLANCAR; Urgency: medium

	- [refactor] Extract complete_from_schema() to its own distro
	  Complete-Sah. complete_from_schema() is still available from
	  Perinci::Sub::Complete for the time being, for backward compatibility

0.940   2019-09-11  Released-By: PERLANCAR; Urgency: low

	- No functional changes.

	- [test] Adjust tests to Complete::Util 0.603 [RT#130485].

0.939   2019-07-19  Released-By: PERLANCAR; Urgency: medium

	- Replace adding completion from Sah attribute
	  'x.examples'/'x.examples.summaries' with from Sah clause
	  'examples' (Sah 0.9.46).

0.938   2019-07-06  Released-By: PERLANCAR; Urgency: medium

	- Add completion from schema's x.examples attribute.

0.937   2019-06-29  Released-By: PERLANCAR; Urgency: low

	- Get summaries from schema's x.in.summaries attribute. To try this out,
          update Perinci::Examples::Completion to 0.813+ then install
          peri-eg-complete-fruits-any from Perinci-Examples-Bin-Any-Completion
          distribution. Then try to complete --category. The 'category' argument
          has a schema of 'str' with 'in' clause and 'in.x.summaries' attribute.

0.936   2019-06-28  Released-By: PERLANCAR; Urgency: low

	- No functional changes.

	- [dist] Try out new release note style in Changes.

0.935   2019-06-26  Released-By: PERLANCAR

	- Update to Complete::Getopt::Long 0.471, no longer uses

0.934   2019-06-25  Released-By: PERLANCAR

	- Pass summaries (from Perinci::Sub::To::CLIDocData's
	  gen_cli_doc_data_from_meta() to

0.933   2019-04-15  Released-By: PERLANCAR

	- Update to Rinci 1.1.88 (slurpy).

	- [logging] Log gen_completion() arguments.

0.932   2018-12-07  Released-By: PERLANCAR

	- Complete from argument examples.

0.931   2018-06-01  Released-By: PERLANCAR

	- No functional changes.

	- Add more helpful log statements for debugging.

0.930   2018-06-01  Released-By: PERLANCAR

	- No functional changes.

        - Add a couple of log statements to aid debugging.

0.92    2017-07-10  Released-By: PERLANCAR

	- No functional changes.

	- Replace Log::Any with Log::ger.

0.91    2017-01-15  Released-By: PERLANCAR

	- Handle x.completion being coderef or scalar, in addition to
	  arrayref (Perinci::Sub::XCompletion 0.07).

0.90    2016-12-11  Released-By: PERLANCAR

	- No functional changes.

	- Bump prereq version Perinci::Sub::Normalize 0.19 (to force update
	  of Sah::Schema::rinci::function_meta to 1.1.82).

0.89    2016-12-10  Released-By: PERLANCAR

	- Handle completion of hash option (--arg k1=v1 --arg k2=v2 ...). Grok
          'index_completion' argument spec property.

0.88    2016-10-29  Released-By: PERLANCAR

	- No functional changes.

	- Depend on Sah::SchemaR::* instead of Sah::Schema::* [RT#118535].

0.87    2016-10-28  Released-By: PERLANCAR

	- Provide 'parsed_opts' to handler in
	  'completion'/'element_completion' properties for more

0.86    2016-08-03  Released-By: PERLANCAR

	- Replace code to check for installed module from using
	  Module::Path::More to using Module::Installed::Tiny (works with
	  fatpacked/datapacked scripts).

0.85    2016-07-22  Released-By: PERLANCAR

        - complete_from_schema(): look up Sah::SchemaR::* modules when schema's
          type is not a known built-in type.

        - complete_from_schema(): observe x.completion in schema, just like in
          arg spec.

0.84    2015-12-30  Released-By: PERLANCAR

	- No functional changes.

	- Adjust to Complete::Bash 0.23.

	- Bump prereq version Log::Any::IfLOG to 0.07.

0.83    2015-12-05  Released-By: PERLANCAR

	- Adjust to Complete::Common 0.21.

        - [Removed] For more consistent user experience, remove per-function
	  options ci, users are now encouraged to set these behaviors globally
	  via Complete::Common.

0.82    2015-09-09  Released-By: PERLANCAR

	- [dist] Use Complete::Setting instead of Complete, the settings
	  have been split to a separate module in 0.13.

0.81    2015-09-03  Released-By: PERLANCAR

	- No functional changes.

	- [dist] Move spec prereqs from RuntimeRequires to
	  DevelopRecommends to reduce deps but still allow indicating spec

0.80    2015-08-11  Released-By: PERLANCAR

	- No functional changes.

	- Avoid using experimental (+Carp) to shave off a few milliseconds
	  of startup time.

0.79    2015-04-27  Released-By: PERLANCAR

	- No functional changes.

        - Adjust tests to Complete::Getopt::Long 0.32 [CT].

0.78    2015-04-09  Released-By: PERLANCAR

	- Replace Log::Any with Log::Any::IfLOG.

0.77    2015-04-02  Released-By: PERLANCAR

	- Observe x.completion & x.element_completion attributes in
	  argument specification (experimental).

0.76    2015-03-30  Released-By: PERLANCAR

	- complete_from_schema(): Handle 'any' type by combining answers
	  from all of its alternate types.

0.75    2015-03-09  Released-By: PERLANCAR

	- Adjust to Complete::Getopt::Long 0.30 (escmode renamed to

0.74    2015-03-03  Released-By: PERLANCAR

	- No functional changes.

	- [Bugfix] Forgot to 'use Complete', d'oh.

0.73    2015-03-03  Released-By: PERLANCAR

	- Observe $Complete::OPT_CI as default for 'ci' options.

0.72    2015-03-01  Released-By: PERLANCAR

	- Use completion routine from Perinci::Sub::ArgEntity::* modules.

0.71    2015-01-09  Released-By: PERLANCAR

	- Add option: func_arg_starts_at which is a workaround for

0.70    2014-12-27  Released-By: PERLANCAR

	- No functional changes.

	- Tweak logging messages to make it easier to debug (preparing

0.69    2014-12-20  Released-By: PERLANCAR

	- [Bugfix] 'args' arg for completion routine was not set correctly.

0.68    2014-12-20  Released-By: PERLANCAR


        - Following Complete::Getopt::Long 0.19, to make writing completion
          routine simpler, we now also merge keys from 'extras' argument into
          the final %args passed to the completion routine. Previously 'extras'
          is put into a single key in %args as 'extras'.

0.67    2014-12-11  Released-By: PERLANCAR

	- [Bugfix] static should be 0 when word length is not zero.

0.66    2014-12-09  Released-By: PERLANCAR

	- Return 'static' key in completion answer (see Complete 0.05 for
	  more details).

0.65    2014-11-30  Released-By: PERLANCAR

	- No functional changes.

        - Forgot to adjust some tests [CT], [RT#100605].

0.64    2014-11-28  Released-By: PERLANCAR

	- Adjust to Complete 0.04 (in hash form, words are now put in
	  'words' instead of 'completion').

0.63     2014-09-03  Released-By: PERLANCAR

         - Use ignore_converted_code option to keep tab completion working when
           there is coderef cmdline_aliases property.

0.62     2014-08-06  Released-By: SHARYANTO

         - [Bugfix] When producing 'args' by calling get_args_from_argv(),
           forgot to set strict => 0.

0.61     2014-08-06  Released-By: SHARYANTO

         - Provide 'words', 'cword', 'args' in 'extras' passed to completion

0.60     2014-07-27  Released-By: SHARYANTO

         - Now uses Complete::Getopt::Long instead of implementing completion
           logic ourselves. The code is now much shorter and completion is now
           more proper, fixing some deficiencies, e.g. inability to expect
           option value for common option (like '--format=s' used by


         - To simplify code, remove argument 'custom_arg_completer' and
           'custom_arg_element_completer', because 'custom_completer' (now
           'completion') can assume the task.

         - To be more generic, rename argument 'extra_completer_args' to


         - To be more consistent with naming of completion routine in other
           modules, rename argument from 'custom_completer' to 'completion'. It
           must only be a coderef instead of coderef or hash of coderefs. Some
           of the arguments it receives also change.

         - To simplify code, no longer does parse_cmdline() when 'words' and
           'cword' is not defined. Instead, now the args are required and you
           need to parse cmdline yourself.

0.59     2014-07-25  Released-By: SHARYANTO

         - No functional changes.

         - Adjust to Complete::Bash 0.09.

0.58     2014-07-24  Released-By: SHARYANTO

         - No functional changes.

         - Some minor updates to tests.

         - Use Data::Sah::Normalize instead of Data::Sah, to reduce deps.

0.57     2014-07-19  Released-By: SHARYANTO

         - No functional changes.

         - Adjust to Complete::Bash 0.06.

0.56     2014-07-18  Released-By: SHARYANTO

         - [Bugfix] Excluded the option we're trying to complete ('cmd --help^'
           or 'cmd -h^' didn't work because we excluded that option from the

0.55     2014-07-18  Released-By: SHARYANTO

         - Adjust to Perinci::Sub::GetArgs::Argv 0.44, which makes it more
           convenient for us to do completion (get_args_from_argv() returns the
           result from gen_getopt_long_spec_from_meta(), which contains all
           sorts of goodies ready for use, like func.opts_by_arg,
           func.opts_by_common, etc.


         - To make it easy to work with the new get_args_from_argv(),
           'common_opts' has been changed to be in the same format that that
           function expects, which is a hash of Getopt::Long opt spec &

0.54     2014-07-18  Released-By: SHARYANTO

         - No functional changes.

         - Adjust to Complete::Bash 0.04.

0.53     2014-07-02  Released-By: SHARYANTO


         - Rename function shell_complete_arg() to complete_cli_arg() for
           consistency (all completion routine now uses /^complete_/).

0.52     2014-07-02  Released-By: SHARYANTO

         - No functional changes.

         - Adjust to Complete::Util 0.12.

0.51     2014-07-01  Released-By: SHARYANTO

         - No functional changes.

         - [Bugfix] Avoid Perl autovivification which cause an arg that has no
           schema to have a schema of [].

0.50     2014-06-29  Released-By: SHARYANTO

         - No functional changes.

         - Re-upload.

0.49     2014-06-29  Released-By: SHARYANTO

         - shell_complete_args() allows completion routines to return hash
           (completion reply + metadata) instead of just array (completion
           reply) (Rinci 1.1.52).

0.48     2014-06-27  Released-By: SHARYANTO


         - shell_complete_args() now returns hashref instead of plain arrayref,
           to return extra metadata to give hints to formatter (like
           Complete::Util's format_shell_completion()) on how to properly
           display/escape special characters to the shell. For example, if we're
           completing environment variables (type=>'env') we don't need to
           escape the dollar sign.

0.47     2014-06-26  Released-By: SHARYANTO

         - No functional changes.

         - [Bug fix] Remove perl undef warning when arg doesn't have schema.

0.46     2014-06-25  Released-By: SHARYANTO

         - [Bug fix] Forgot to remove complete_array() in

0.45     2014-06-25  Released-By: SHARYANTO


         - No longer filter completion routine with complete_array(), it's now
           up to the routine to filter it, this allows case-insensitive matching
           or spelling correction.

0.44     2014-06-25  Released-By: SHARYANTO

         - No functional changes.

         - Use Complete::Util which replaces SHARYANTO::Complete::Util.

0.43     2014-06-19  Released-By: SHARYANTO


         - [silly] complete_from_schema(): Do a digit-by-digit completion for

0.42     2014-06-19  Released-By: SHARYANTO


         - [tweak] Don't switch to complete arg name when word starts with '-'
           but opt before word expects value. For example, '--bool -^' will
           switch to completing arg name, but '--str -^' will still try to
           complete str's value because it expects value.

         - [silly] complete_from_schema(): Do a digit-by-digit completion for

0.41     2014-06-19  Released-By: SHARYANTO

         [BUG FIXES]

         - Fix completion of array argument's element ('--ary ^' not yet
           completed as element).

0.40     2014-06-19  Released-By: SHARYANTO

         - Third attempt, only riap_server_url is needed, riap_uri is optional
           because the former can contain the latter.

0.39     2014-06-18  Released-By: SHARYANTO

         - Second attempt, we also need riap_server_url.

0.38     2014-06-18  Released-By: SHARYANTO


         - Add riap_client & riap_uri arguments to
           shell_complete_args,complete_arg_{val,elem} to allow requesting to
           server when completion/element_completion coderef has been cleansed
           into string (currently no tests yet).

0.37     2014-06-18  Released-By: SHARYANTO


         - Don't die if arg spec's completion is not a coderef, decline instead.

0.36     2013-11-14  Released-By: SHARYANTO


         - Implement argument element completion (Rinci 1.1.42).

         - Add functions: complete_arg_elem, complete_from_schema.

         [BUG FIXES]

         - complete_arg_val() now returns undef when it can't find completion
           from schema, so shell_complete_arg() can fallback to files.

         - Complete greedy argument names, always (allow us to complete e.g.
           --file F1 --file F2 etc).

0.35     2013-11-08  Released-By: SHARYANTO

         [BUG FIXES]

         - No functional changes. Avoid CT failure reports by forcing
           Perinci::Sub::Wrapper version.

0.34     2013-11-05  Released-By: SHARYANTO


         - shell_complete_arg(): Accept 'extra_completer_args' argument to pass
           to custom completion routines.

         - Pass 'parent_args' argument to all custom completion routines
           (previously only 'custom_completer' gets it, now
           'custom_arg_completer' and 'completion' arg spec also get it).

         - complete_arg_val(): observe 'is' clause.

         - complete_arg_val(): complete [0, 1] for bool type.

         [BUG FIXES]

         - A few bug fixes.

0.33     2013-11-04  Released-By: SHARYANTO


         - Allow 'custom_arg_completer' to decline with undef, just like


         - 'custom_arg_completer' is now expected to return arrayref instead of
           list, just like the other completion routines.

0.32     2013-11-04  Released-By: SHARYANTO


         - Rename dist from Perinci-BashComplete to Perinci-Sub-Complete because
           I want to extract non-Perinci-related routines to another module and
           I want to support other shells (someday).

         - Split generic (non-Rinci/Riap-related) functions to

         - Rename some functions.

0.31     2013-09-08  Released-By: SHARYANTO

         - No functional changes. Remove references to Perinci::Access::InProcess.

0.30     2013-08-10  Released-By: SHARYANTO


         - Allow other line parser to be used, e.g. one that doesn't call out to
           bash (currently undocumented).

0.30     2013-08-10  Released-By: SHARYANTO


         - Allow other line parser to be used, e.g. one that doesn't call out to
           bash (currently undocumented).

0.29     2012-06-22  Released-By: SHARYANTO


         - Support --dry-run for function which has dry_run feature

0.28     2012-03-22  Released-By: SHARYANTO

         - Support with.dot function arguments

         - Normalize --foo_bar into --foo-bar

0.27     2012-03-16  Released-By: SHARYANTO


         - file completion inserted "." on every file/dir on the current dir.

         - file completion cut intermediate dirs ("dir/a" completed into ["aa",
           "ab"] instead of ["dir/aa", "dir/ab"]


         - Add trick in dir completion so that a single "dir/" match won't cause
           bash to insert space after the "/".

0.26     2012-03-07  Released-By: SHARYANTO

         - No functional changes. Deal with test failure reports from CT (change
           'replace $HOME with ~' test in t/_line_to_argv.t into a warning, as I
           don't know the workaround yet).

0.25     2012-03-04  Released-By: SHARYANTO

         [BUG FIXES]

         - More fixes to complete_file() so it more closely resembles bash
           (symlink traversal is still different though).

0.24     2012-03-04  Released-By: SHARYANTO

         [BUG FIXES]

         - complete_file() now behaves more like bash (though not nearly
           so, due to glob()'s quirks): First it works with files/dirs outside
           curdir. When word is '' or ends with '/', it uses readdir() to
           include dotfiles. Otherwise it treats word as wildcard and glob() it.

0.23     2012-03-03  Released-By: SHARYANTO

         - No functional changes. Change implementation of _line_to_argv() from
           calling Perl binary and dumping @ARGV, to using bash's own "$@". On
           my Atom N570 netbook, this shaves time from about 0.1s to 0.03s.

0.22     2012-02-28  Released-By: SHARYANTO

         - No functional changes. Fix to avoid numerous CT failure reports
           (calling perl binary using $^X instead of the hardcoded "perl"). I
           haven't quoted $^X, hope that won't cause much trouble though.

0.21     2012-02-28  Released-By: SHARYANTO

         - Handle argument name completion of one-letter args and cmdline_aliases.

0.20     2012-02-27  Released-By: SHARYANTO

         - No functional changes. Make _line_to_argv() report errors (lots of
           failure reports from CPAN Testers with apparently undef result from

0.19     2012-02-23  Released-By: SHARYANTO

         - Rename distribution from Sub-Spec-BashComplete to Perinci-BashComplete.
           Follow Rinci v1.1 specification.

0.18     2011-11-23  Released-By: SHARYANTO

         - No functional changes. _parse_schema() moved from Data::Sah::Util to
           normalize_schema() in Data::Sah.

0.17     2011-10-31  Released-By: SHARYANTO

         - No functional changes. _parse_schema() is moved from Sub::Spec::Utils
           to Data::Sah::Util.

0.16     2011-08-25  Released-By: SHARYANTO

         - No functional changes. Adjust to Sub::Spec 0.15.

0.15     2011-07-26  Released-By: SHARYANTO

         - No functional changes. Adjust to use the new Sub::Spec::GetArgs::Argv.

0.14     2011-05-31  Released-By: SHARYANTO

         - No functional changes. Skip tests on systems which don't have bash.

0.13     2011-02-23  Released-By: SHARYANTO

         - Add missing dependency: Log::Any [CT].

0.12     2011-02-23  Released-By: SHARYANTO

         - Add missing dependency: Sub::Spec::CmdLine [CT].

0.11     2011-02-22  Released-By: SHARYANTO

         - Use Sub::Spec::Utils.

0.10     2011-02-19  Released-By: SHARYANTO

         - Incompatible change: arg_complete & custom_completer now expected to
           return arrayref instead of list.

         - More fixes for remaining_words for custom_completer.

0.09     2011-02-18  Released-By: SHARYANTO

         - Handle backspaced whitespace.

         - Don't escape output (let completer program do it) to avoid double

         - Fix cword & remaining_words for custom_completer.

0.08     2011-02-18  Released-By: SHARYANTO

         - Backslash-escape output.

         - Spec: cmdline_aliases renamed to arg_aliases.

0.07     2011-02-17  Released-By: SHARYANTO

         - bash_complete_spec_arg(): Also add --nofoo completion for bool

0.06     2011-02-17  Released-By: SHARYANTO

         - bash_complete_spec_arg(): Add 'custom_completer' option, parse
           'cmdline_aliases' in arg spec.

0.05     2011-02-17  Released-By: SHARYANTO

         - Fix cword counting.

0.04     2011-02-16  Released-By: SHARYANTO

         - Small fix on detecting arg name/value.

0.03     2011-02-16  Released-By: SHARYANTO

         - Complete arg name instead of value if user type '-' (indicates he/she
           wants arg name).

0.02     2011-02-16  Released-By: SHARYANTO

         - Fix dependency version (requires Sub::Spec::CmdLine 0.10+).

0.01     2011-02-16  Released-By: SHARYANTO

         - First release.