Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
perlancar opened this issue Jul 24, 2021 · 0 comments

Comments

@perlancar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant