Skip to content

wishlist: completing (complete -C) with cursor in the middle of line strips string after the cursor #52

@perlancar

Description

@perlancar

Another issue which I noticed while writing #51 is that completing with the cursor in the middle of command-line is not fully supported. For example, this command line:

% remove-pdf-password -<tab> foo

will cause bash-completion.el to set this (truncated):

__EMACS_COMPLETE_WRAPPER=COMP_LINE='remove-pdf-password -'; COMP_POINT=$(( 1 + ${#COMP_LINE} )); COMP_CWORD=1; COMP_WORDS=( remove-pdf-password - ); ...

i.e., the part after the cursor position ( foo) is stripped, while this is information that can be useful for the completer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions