Closed akinomyoga closed 1 week ago
Thanks for the patch.
This is painful, though. So this is the only way?
I added another fix: 49356cb6fc726145357235b9261e3c6566c4eef9.
This is painful, though. So this is the only way?
Yeah, I agree, but as far as I know, there is no other way. Usually the option names are escaped like \-\-help
in man-page sources.
Merged, thanks!
Thanks!
ASCII hyphens (U+002D HYPHEN-MINUS) in the option names (e.g.
-x
and--extended
) and the code examples in the man page source should be escaped as\-
(e.g.\-x
and\-\-extended
) to prevent them being converted to Unicode hyphens in some environments.For example, in openSUSE Tumbleweed, the raw ASCII hyphens in the man-page sources are configured to become the Unicode hyphen (U+2010 HYPHEN). This makes it impossible to search the option names on the
fzf
man page by e.g./--extended
RET. A problem also arises in copying and pasting option names and code examples from the man page. It appears to be a normal ASCII hyphen by appearance (in typical terminal fonts) but is not recognized as the ASCII hyphen when specified in command-line arguments of thefzf
command.An explanation can also be found in the corresponding section in
man man-pages
: