1916 Commits

Author SHA1 Message Date
ZyX
b845cc25b4 Fix tests on python-2.6
csv module does not appear to work will with multiline strings in csv, 
especially incomplete.
2014-11-10 01:08:37 +03:00
ZyX
90ed328350 Change powerline.segments.vim to not import *from* csv
One cannot really tell what are things like `Sniffer` or `reader`. It is better 
to use `csv` module directly rather than write `from csv import reader as 
csv_reader`.
2014-11-10 00:40:12 +03:00
ZyX
c9cb856acd Add support for vim_func_exists to tests/vim.py 2014-11-10 00:35:40 +03:00
ZyX
a4fddff1fa Improve documentation of Command-T support code 2014-11-10 00:22:37 +03:00
ZyX
8cf2a86672 Add support for capslock plugin 2014-11-09 23:54:49 +03:00
ZyX
d392cf3322 Add support for csv files
Equivalent to airline csv Christian Brabandt plugin integration, but uses Python
own facilities.

Note: filetype detection is out of the scope of the powerline responsibilities.
      CSV is supported by powerline, but only as long as filetype detection is
      done by Vim correctly. By default CSV files are neither detected nor
      highlighted.

Some known differences between powerline code and @chrisbra plugin with
corresponding airline integration:

1. Detection work differently. I cannot say which is better because I have not
   tested it much, but it is definitely different.
2. My variant is able to detect whether there is (no) header. (Of course,
   relying on Python code.) Airline is using a setting. (Both do not allow
   manual per-filetype setting.) Of course, user can force either variant (no
   headers at all or headers always).
3. My variant makes it possible to configure header output format, including
   truncating it at 15 characters (the default).
4. CSV plugin does not work with multiline CSV items (in some dialects one can
   use code like `abc;"I<CR>am<CR>multiline<CR>string"`). See `:h csv-column` on
   how to fix this if possible (will require also changing `<sid>WColumn`
   function because currently it only works with one line).
5. AFAIK Python does not such a thing as “fixed width CSV”. Thus I do not work
   with this, but CSV plugin does. Not sure whether it is different with
   space-separated CSV files though.
2014-11-09 23:54:49 +03:00
ZyX
28435f05d2 Add support for Command-T 2014-11-09 23:54:48 +03:00
ZyX
7139021c45 Merge commit 'HEAD@{1}' into develop 2014-11-04 16:41:25 +03:00
ZyX
fe3bebc609 Remove some debugging prints 2014-11-04 16:41:16 +03:00
ZyX
491ac113fb Merge commit 'HEAD@{1}' into develop 2014-10-27 08:11:49 +03:00
ZyX
eb0b1986d1 Fix location of the which function 2014-10-27 08:11:07 +03:00
ZyX
cf01f5c938 Merge commit 'HEAD@{1}' into develop 2014-10-26 14:19:45 +03:00
ZyX
21f332bd76 Fix Debian and Wheezy first letters’ case 2014-10-26 14:19:32 +03:00
ZyX
53880b6a9f Merge branch 'reference-debian-package' into develop 2014-10-25 22:56:28 +04:00
ZyX
61c2a45827 Reference debian powerline package
Fixes #1129
2014-10-25 22:55:59 +04:00
Nikolai Aleksandrovich Pavlov
7e766f0ec8 Merge pull request #1134 from ZyX-I/man
Generate manual pages

Replaces #1132
2014-10-25 22:41:04 +04:00
ZyX
1dd4269baf Update powerline-release script to use live ebuild as the base
Reasoning: I am going to add man pages support to the live ebuild, but it does 
not make sense to add this to the 1.0 ebuild previously used as the base. Since 
new features will likely continue to appear in the live ebuild powerline-release 
script was modified to do the right thing under new circumstances.
2014-10-25 22:24:24 +04:00
ZyX
9b03ff6936 Also add documentation for powerline-lint 2014-10-25 22:03:33 +04:00
ZyX
bed2cc8d0f Add new documents to the main TOC tree 2014-10-25 22:03:33 +04:00
ZyX
9c57255dec Add man documentation target
Fixes #1131
2014-10-25 22:03:33 +04:00
ZyX
99e531ec0e Make all metavars uppercased 2014-10-25 22:03:33 +04:00
ZyX
e58aa8f62d Improve powerline-config help and require --shell argument 2014-10-25 22:03:33 +04:00
ZyX
fadd1eec17 Move all parser definitions to powerline.commands.*.get_argparser()
Reasoning: they will be easier to reach there. It will also be possible to use
specific ArgumentParser class that will just collect data for sphinx.
2014-10-25 22:03:33 +04:00
Nikolai Aleksandrovich Pavlov
c2425f6a2a Merge pull request #1133 from ZyX-I/build-version
Record git hash in dev version
2014-10-25 14:53:07 +04:00
ZyX
4a689ad648 Strip trailing newline returned by rev-parse 2014-10-25 13:06:46 +04:00
ZyX
2106be4066 Save git hex revision in powerline version string if possible
Only useful for `pip install git+git://` or `pip install /some/directory` 
installations (note: commands come without `--editable`/`-e`).
2014-10-19 00:05:51 +04:00
Nikolai Aleksandrovich Pavlov
f0d2f2884e Merge pull request #1123 from ZyX-I/weather-diagnostics
Include raw_response in error message in weather segment
2014-10-18 21:38:06 +04:00
ZyX
1350fbe88e Include raw_response in error message in weather segment
Closes #1112
Ref #1119
2014-10-18 20:36:13 +04:00
Nikolai Aleksandrovich Pavlov
f5b9fc24e4 Merge pull request #1122 from ZyX-I/fix-powerline-config
Make “powerline-config” without arguments show proper message (python-3*)
2014-10-18 20:16:39 +04:00
ZyX
cb877e75ab Make powerline-config without arguments show proper message
In Python-3* it used to show the following:

    Traceback (most recent call last):
    File "/usr/lib/python-exec/python3.3/powerline-config", line 66, in <module>
        args.function(pl, args)
    AttributeError: 'Namespace' object has no attribute 'function'

now it shows

    usage: powerline-config [-h] {tmux,shell} ...
    powerline-config: error: too few arguments

in both python-2.7 and -3.3.

Fixes #1120.
2014-10-18 20:01:31 +04:00
ZyX
a96b429b8a Make quotes in powerline-config --help same as in powerline --help 2014-10-18 19:35:37 +04:00
ZyX
f293d6fff6 Merge branch 'fix-latex-output' into develop 2014-10-12 19:38:26 +04:00
ZyX
b307ad7891 Fix default value of SPHINXBUILD variable 2014-10-12 19:37:59 +04:00
ZyX
2e1df4461e Update Makefile: remove unused gh-pages target and add latexpdf & help 2014-10-12 19:37:58 +04:00
ZyX
80b50733a0 Fix latex build: make some unicode characters found in help work 2014-10-12 19:37:15 +04:00
ZyX
b378a4c3d2 Merge branch 'release-script-2' into develop 2014-10-12 17:08:45 +04:00
ZyX
09ca7aa623 Merge commit 'HEAD@{1}' into develop 2014-10-12 17:04:02 +04:00
ZyX
2666491438 Document pyuv problem in troubleshooting section
Closes #5463
2014-10-12 17:03:34 +04:00
ZyX
5635eea233 Merge branch 'enhance-now_playing' into develop 2014-10-12 16:54:30 +04:00
ZyX
425e8f744d Remove self.STATE_SYMBOLS reference: there is no such attribute 2014-10-12 16:53:53 +04:00
ZyX
b8a4d9b054 Add some workarounds for powerline-lint 2014-10-12 16:42:06 +04:00
ZyX
8551e51b6d Prioritize now_playing highlight group, but remove it from colorscheme
Reasoning for first: backwards compatibility. If user defined `now_playing`
highlight group it is what should be used.

Reasoning for second: it is useless there. If user has defined its own group its
effect will not be affected, if he has not then there is nothing to talk about.
2014-10-12 16:35:42 +04:00
ZyX
dad1197284 Add "player" segment data 2014-10-12 16:35:42 +04:00
ZyX
cdb030ec03 Rename highlight groups 2014-10-12 16:35:42 +04:00
ZyX
f233c1f77e Fix mpd support 2014-10-12 16:35:42 +04:00
ZyX
a37f90921f Refactor powerline.segments.common.players to use multiple functions
Also adds documentation. Still have to update top-level themes.

Fixes #445
2014-10-12 16:35:42 +04:00
Nikolai Aleksandrovich Pavlov
0eeab7fda0 Merge pull request #1114 from ZyX-I/fix-1104
Specify $TERM in place of assuming it is set to something working
2014-10-12 00:55:49 +04:00
ZyX
0d3609fb96 Specify $TERM in place of assuming it is set to something working
Ref #1104
2014-10-12 00:41:06 +04:00
ZyX
218f72e7db Merge commit 'HEAD@{1}' into develop 2014-10-12 00:39:00 +04:00
ZyX
d1ac624c7f Fix broken tests 2014-10-12 00:36:53 +04:00