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

complete the words that contain spaces #83

Open
sigoden opened this issue Nov 22, 2023 · 0 comments
Open

complete the words that contain spaces #83

sigoden opened this issue Nov 22, 2023 · 0 comments

Comments

@sigoden
Copy link

sigoden commented Nov 22, 2023

Recently, I've been preparing to add tcsh support to argc and argc-completions.

complete argc 'p@*@`echo "$COMMAND_LINE'"''"'" | xargs argc --argc-compgen tcsh ""`@@';

argc --argc-compgen may generate words containing spaces, how to make it work?

Testing can be simplified as follows:

complete cmd 'p@*@`cat /tmp/file`@@'

The content of /tmp/file maybe:

Coldark-Cold
Monokai Extended
Solarized (dark)
Solarized (light)
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