Marc Joliet
fe3bca3a88
Prefer standard library lzma module if available
...
Prefer the standard library lzma module if available. This change prevents
using the backports-lzma when it is installed for a version of Python that
already has the lzma module in its standard library.
2013-11-09 19:46:42 +08:00
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
a1020b3e61
Remove useless semicolon in webconfig.py
2013-09-08 20:19:43 +02:00
Konrad Borowski
0479f0ad63
Remove useless debugging code
2013-07-27 17:08:06 +02:00
ridiculousfish
886c4320d6
Merge branch 'informative_git' of git://github.com/mariuszs/fish-shell into mariuszs-informative_git
2013-07-11 12:26:25 -07:00
Siteshwar Vashisht
379cf3d249
Converted tabs to spaces in webconfig script
2013-07-06 21:09:20 +05:30
Siteshwar Vashisht
0fe44f0e2a
Cleaned up commented lines and updated method names in create_manpage_completions script
2013-07-06 20:57:41 +05:30
Mariusz Smykuła
228fa38240
Renaming, cleanup
2013-06-18 22:26:43 +02:00
Mariusz Smykuła
a142c5e1ec
Support for defining color with bold/brighter color set
2013-06-18 22:20:28 +02:00
Mariusz Smykuła
918df393e6
Use tabs, sample prompt
2013-06-18 08:52:32 +02:00
Dag Odenhall
c06b1694a2
Parse man8 pages with fish_update_completions
...
Closes #727
2013-05-25 13:57:10 -07:00
Marc Qualie
9169a673d5
Slightly modified this theme to match robbyrussel
...
I recently switch from ZSH to Fish shell and noticed that this theme is slightly different to the one provided by ZSH. I edited my own using funced but thought it might be useful for other people who are used to the ZSH interface.
2013-05-24 23:18:24 -07:00
ridiculousfish
8befc474c1
Ugly hack to move functions in sample prompts inside fish_prompt to address #736
2013-05-13 10:17:31 -07:00
ridiculousfish
2f5016262a
Attempt again to fix UnicodeDecodeError (issue #658 )
2013-05-12 01:57:42 -07:00
ridiculousfish
2517832718
Teach fish_config how to find fish from __fish_bin_dir
...
Fixes https://github.com/fish-shell/fish-shell/issues/621
2013-04-15 14:15:47 -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
214ef3dd0b
Formatting
2013-01-16 14:50:08 -08:00
ciembor
406c8a6d1e
Ajax fix for Firefox, it isn't XML.
2013-01-16 14:45:59 -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
Anders Bergh
56dd25667d
Make fish_config compatible with Python 2.5
...
Try to import parse_qs from the cgi module, and simplejson instead of json.
Use old string formatting. str.format() was backported from Python 3
to 2.6 and isn't available in 2.5.
2012-12-12 12:51:55 +01: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
Siteshwar Vashisht
768f92303e
Removed python scripts to import bash settings
2012-10-27 23:57:15 +05:30
Terje Larsen
f56f84c6ac
Use echo -n instead of printf
...
- Remove useless comment, because multi-line prompt works good now.
2012-10-20 12:52:53 -07: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
211b9ea8b9
Added terlar's prompt, and robbyrussell which was inadvertently omitted
...
https://github.com/fish-shell/fish-shell/issues/329
2012-10-15 18:45:46 -07:00
Peter Ammon
86a978d9ee
Fixed web_config prompt to work with Python 2.6.1
2012-09-10 02:11:06 -07:00
ridiculousfish
f6fe3df59b
Fix to make prompt chooser work in Python3
2012-09-06 19:01:07 -07:00
ridiculousfish
e0764bb25e
Improve python3 compatibility in webconfig.py
2012-09-06 02:03:21 -07:00
ridiculousfish
1ba0bfd10c
Renamed hyperminamlist prompt
2012-09-06 01:52:21 -07:00
ridiculousfish
3589554028
Allow setting the prompt from web_config
2012-09-06 01:30:26 -07:00
ridiculousfish
3606664cf7
Merge branch 'webserver' of git://github.com/simukis/fish-shell into simukis-webserver
...
Conflicts:
share/tools/web_config/webconfig.py
2012-08-20 12:03:39 -07:00
ridiculousfish
81f45208b0
Make history deletion from web config work properly with Unicode under both Python2 and Python3
...
Make the filter search field hide properly in tabs where it's non-functional
Fixes https://github.com/fish-shell/fish-shell/issues/265
2012-08-20 11:58:54 -07:00
Simonas Kazlauskas
ef566836c4
Wipe unnecessary as
statement
2012-08-19 23:26:15 +03:00
Simonas Kazlauskas
10dfca1a75
Decode data in python3 – Fixes #265 .
...
In both in python2 and python3 parse_qs expects str object. In
python2 it worked ok, because self.rfile was open in binary mode and
str in python2 is actually a string of bytes. However in python3 str is
actually string of unicode literals, not bytes and file was still open
in binary mode. Thus, deleting any file with non-ascii byte inside
filename failed in python3.
Also, cgi.parse_qs is deprecated and shouldn't be used.
2012-08-19 23:19:07 +03:00
Simonas Kazlauskas
b3e3f041fe
Remove trailing spaces and replace tabs with spaces
2012-08-19 22:55:50 +03:00
ridiculousfish
f41a699f5d
Fix to make the choose-a-port loop work correctly for webconfig.py under Python3
2012-08-17 01:14:05 -07:00
ridiculousfish
f6b76e6ecb
Fix to allow specifying an initial tab in fish_config
...
For example, you can run "fish_config history"
2012-07-27 13:40:43 -07:00