Skip to content

Releases: xonsh/py-bash-completion

0.2.8

04 Feb 22:43
Compare
Choose a tag to compare
Updated CHANGELOG for 0.2.8

0.2.7

02 Mar 04:28
Compare
Choose a tag to compare

Changed:

None

  • Use the command's basename instead of the absolute path (see xonsh/xonsh#4104)

0.2.6

19 Jun 18:55
Compare
Choose a tag to compare

Fixed:

  • Fix completion which uses a subshell environment
  • Fix for string index error in stripped prefix

0.2.5

01 Oct 22:37
Compare
Choose a tag to compare

Fixed:

  • bash_completions to include special characters in lprefix

    Previously, glob expansion characters would not be included in lprefix for replacement

    .. code-block:: sh

    $ touch /tmp/abc
    $ python

    from bash_completion import bash_completions

    def get_completions(line):
    ... split = line.split()
    ... if len(split) > 1 and not line.endswith(' '):
    ... prefix = split[-1]
    ... begidx = len(line.rsplit(prefix)[0])
    ... else:
    ... prefix = ''
    ... begidx = len(line)
    ... endidx = len(line)
    ... return bash_completions(prefix, line, begidx, endidx)
    ...
    get_completions('ls /tmp/a*')
    ({'/tmp/abc '}, 0)

    Now, lprefix begins at the first special character:

    .. code-block:: sh

    $ python

    from bash_completion import bash_completions

    def get_completions(line):
    ... split = line.split()
    ... if len(split) > 1 and not line.endswith(' '):
    ... prefix = split[-1]
    ... begidx = len(line.rsplit(prefix)[0])
    ... else:
    ... prefix = ''
    ... begidx = len(line)
    ... endidx = len(line)
    ... return bash_completions(prefix, line, begidx, endidx)
    ...
    get_completions('ls /tmp/a*')
    ({'/tmp/abc '}, 7)

0.2.4

17 Sep 15:35
Compare
Choose a tag to compare

Fixed:

  • If there are no files to source, a set() will no longer be inserted
    into the completion script.

0.2.3

05 Jul 14:03
Compare
Choose a tag to compare

Fixed:

  • Fixed issue with incorrect strip lengths for prefixes with quotes in them
  • Fixed bash script to also consider leading double quotes and not just single
    quotes
  • bash_completion will not return negative prefix lengths for files that need
    to be string-escaped (files/folders with spaces in name)

0.2.2

06 May 23:50
Compare
Choose a tag to compare

Fixed:

  • Fixed issue with completing quotes and spaces.

0.2.1

17 Apr 00:27
Compare
Choose a tag to compare

Fixed:

  • Fixed extra comma in rever hook.

0.2.0

17 Apr 00:23
Compare
Choose a tag to compare

Added:

  • New command line interface.

Fixed:

  • Fixed whitespace deduplication issue.