10000 Completion protocol: allow multi-line descriptions ? · Issue #221 · dbuenzli/cmdliner · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Completion protocol: allow multi-line descriptions ? #221

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

Open
dbuenzli opened this issue Apr 3, 2025 · 0 comments
Open

Completion protocol: allow multi-line descriptions ? #221

dbuenzli opened this issue Apr 3, 2025 · 0 comments

Comments

@dbuenzli
Copy link
Owner
dbuenzli commented Apr 3, 2025

Currently the protocol makes sure to output descriptions on a single line. I think we should rather switch the protocol for item from:

item = %s"item" nl completion nl description

to

item = %s"item" nl completion nl *(pchar / nl) %s"end-item"

It would then be for the completion scripts to do what they want with the multiple lines. The protocol would still remain quite easy to parse and it is easy for the completion scripts to collapse the multile line reads to a single line.

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

No branches or pull requests

1 participant
0