Konrad Borowski
2a6eb83fb4
Merge pull request #1015 from marcecj/add_bz2_lzma_xz_support
...
Support bzip2 and lzma/xz compressed man pages
2013-10-18 05:09:00 -07:00
Marc Joliet
6de9a92582
Change the way xz/lzma man pages are detected
...
This avoids the use of the global and puts the diagnostic message in a
self-contained location.
2013-10-17 12:12:04 +02:00
Marc Joliet
1c8c9a10b5
Only print an error when an lzma/xz manpage occurs
...
Only print an error when an lzma/xz compressed man page occurs. Also, use
add_diagnostic instead of print.
2013-09-25 18:16:47 +02:00
Konrad Borowski
4aa9f76d06
Fix one element tuple to be actually tuple.
...
While in this case it doesn't mean much (neither `z` or `-` would be
passed to options parser), it makes things possibly less buggy.
2013-09-25 16:39:22 +02:00
Marc Joliet
fc7c489ab6
Skip lzma/xz manpages if lzma module not available
...
Skip man pages compressed with lzma/xz if the lzma module is not available; also
print a corresponding diagnostic message.
2013-09-25 15:41:48 +02:00
Marc Joliet
4856567a2a
Only try "lzma" module on ImportError
2013-09-25 15:41:14 +02:00
Marc Joliet
7d0722bc18
Change an "if" to more appropriate "elif"
...
I overlooked an "if" that should have been an "elif". Oops.
2013-09-25 01:35:32 +02:00
Marc Joliet
4340368277
Support bzip2 and lzma/xz compressed man pages
...
Add support for bzip2 and lzma/xz compressed man pages. Support for bzip2 is
part of the Python standard library (at least for 2.7 and >=3.2), while lzma/xz
is only in Python >=3.3; however, there is a backports module for Python 2.7 and
3.2.
2013-09-24 15:49:59 +02:00
bathtub
df300e042b
Small fix for fish_update_completions (amended)
...
Amended from https://github.com/fish-shell/fish-shell/pull/1003 .
Fix a Unicode parsing error; search man6.
2013-09-19 13:15:15 +02:00
Konrad Borowski
0479f0ad63
Remove useless debugging code
2013-07-27 17:08:06 +02:00
Siteshwar Vashisht
0fe44f0e2a
Cleaned up commented lines and updated method names in create_manpage_completions script
2013-07-06 20:57:41 +05:30
Dag Odenhall
c06b1694a2
Parse man8 pages with fish_update_completions
...
Closes #727
2013-05-25 13:57:10 -07:00
ridiculousfish
2f5016262a
Attempt again to fix UnicodeDecodeError (issue #658 )
2013-05-12 01:57:42 -07:00
ridiculousfish
1c5556334d
Try to fix UnicodeDecodeError in create_manpage_completions.py
...
https://github.com/fish-shell/fish-shell/issues/658
2013-04-15 01:05:56 -07:00
ridiculousfish
0e24676144
Fix to make create_manpage_completions work with Python 3
...
Fixes https://github.com/fish-shell/fish-shell/issues/658 ?
2013-04-14 02:03:53 -07:00
ridiculousfish
e7c1cb7185
Move autogenerated completions to ~/.config/fish/generated_completions/
...
https://github.com/fish-shell/fish-shell/issues/576
2013-02-17 16:14:36 -08:00
ridiculousfish
cddf7e0986
Clean up man page parser output a bit
2013-01-27 12:58:52 -08:00
ridiculousfish
de084b4a0d
Make create_manpage_completions not generate empty files
...
https://github.com/fish-shell/fish-shell/issues/506
2013-01-08 14:58:27 -08:00
Jean-Daniel Dupas
43d2e15bb7
Try to fix create_manpage_completions script for system where sysgetdefaultencoding() returns ASCII.
2012-12-02 15:31:44 +01:00
ridiculousfish
be80e1a863
Improvements to man page parser, and to description truncation
...
Fixes https://github.com/fish-shell/fish-shell/issues/98
2012-11-22 20:32:19 -08:00
Łukasz Niemier
47df1ae40a
Remove trailing whitespaces and change tabs to spaces
2012-11-18 11:23:22 +01:00
ridiculousfish
c7bf1aa222
Handle some more escapes in de-groffing man pages
...
Fixes https://github.com/fish-shell/fish-shell/issues/10
2012-10-17 18:22:57 -07:00
ridiculousfish
0c8c32cd03
Fix for https://github.com/fish-shell/fish-shell/issues/105
...
Not sure why the escape character was being printed in the manpage completions script
2012-07-08 17:35:07 -07:00
ridiculousfish
9228dffe5e
Don't generate completions if we already have bespoke completions in the data directory
...
Fixes https://github.com/fish-shell/fish-shell/issues/148
Also fix some Python3 issues
2012-06-18 13:59:34 -07:00
ridiculousfish
1bead8adf7
Fix to create_manpage_completions.py to flush after every line (so you see more progress) and to put the cursor at the beginning (so it doesn't jump around)
2012-06-17 15:19:55 -07:00
Siteshwar Vashisht
23ce927301
Fixed a bug in manpage generator.
2012-06-07 20:48:54 +05:30
Siteshwar Vashisht
c7941fc7b0
Use manpath instead of man --path to find man page paths.
2012-06-07 00:00:43 +05:30
Adam
4e3acdcbdc
Unicode error fix in manpage completion with python3
2012-06-05 15:26:11 -07:00
Adam
85f808130d
Manpage generation now works with python3
2012-06-05 15:26:11 -07:00
ridiculousfish
725982cc5b
Fix to try to remove Python 2.7 dependency
2012-04-15 19:45:44 -07:00
ridiculousfish
15079fa3bd
Some more deroff optimizations
2012-04-15 04:41:20 -07:00
ridiculousfish
49ece586d5
Added a fish_update_completions function to run the manpage completion file
...
Added some pretty progress reporting to that script
Added some comments to deroff.py
2012-04-11 19:05:43 -07:00
ridiculousfish
2ec0778d78
Make create_manpage_completions output to ~/.config/fish/completions by default, and also discover man pages from reading the manpath
2012-04-11 18:26:26 -07:00
ridiculousfish
ceb32f63e7
Deroffing completion work
2012-04-09 20:17:54 -07:00
ridiculousfish
576c12b184
Deroffer work
2012-04-09 20:17:54 -07:00
ridiculousfish
8585e0e9b8
Various improvements on completion tool
2012-04-04 12:43:12 -07:00
ridiculousfish
7394374a15
Work on improving the output of the manpage completion script
2012-04-03 18:38:25 -07:00
ridiculousfish
0f63e1f988
Some work towards improving manpage completions
2012-03-30 10:00:01 -07:00
ridiculousfish
fa346cec3b
Moved some Python scripts into new share/tools/ directory.
...
Added fish_config function to launch web config
2012-03-25 18:38:33 -07:00