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
Completion generation from pandoc manpage is broken #2937
Comments
I've gisted the man page here: https://gist.github.com/daenney/4cd81d2795cd5221b0a06e4277a8c78e |
Yes, it's borked. Seems we choke on some of the YAML-blocks. Though my preferred solution would be just writing a pandoc completion - there's a few things here that the generated ones won't do anyway, like formats, and it doesn't seem too complicated. |
I agree a more complete one should be written by hand. In this case though as long as we could skip the YAML blocks I think that would solve most problems. |
This is not a bug other than in the most narrow sense. Completions generated from man pages is always best effort and seldom optimal. Improving the parsing of random man pages is an enhancement. Although, frankly in this case I think it makes more sense for someone who uses |
I've written a completion for pandoc. I'm new to fish, so doubtless there are ways it could be improved. |
@dsanson, would you be willing to submit that for inclusion in fish? It would mean relicensing as GPL 2. |
@zanchey: I changed the license to GPL 2. What is the process ofr submitting it for inclusion? |
@dsanson: A PR that adds it to share/completions/ would work. Or do you mean something else? |
Thanks - I've included this as 7926b69. |
Taken from https://github.com/dsanson/fish-completion-pandoc under the GNU GPL as at 7195da6fc4bcbdd49ea63d47c27e4bfec2135660. Closes fish-shell#2937.
Reproduction Steps:
MANPATH
fish_update_completion
pandoc -<tab>
Expected behavior:
Get completions for the long and short options in the man page.
Observed behavior:
Get completions for long and short options in the man page riddled with a lot of garbage:
Fish version:
fish, version 2.2.0
Operating system: OS X 10.11 and Homebrew
Terminal or terminal emulator: iTerm2
The text was updated successfully, but these errors were encountered: