1937 Commits

Author SHA1 Message Date
ZyX
1348472f1e Rename setcolors to setenv, add documentation 2014-11-29 19:32:28 +03:00
ZyX
d62336f7a2 Add a way to specify configuration paths to powerline-config
One still cannot override various configuration options from the command-line.
2014-11-29 19:32:27 +03:00
ZyX
f3ba38e53d Move all configuration to powerline-base.conf
Reasoning: for some reason it does not work after `powerline-config tmux
setcolors`.

Fixes #717
2014-11-29 19:32:07 +03:00
ZyX
e6fc2911c2 Get color configuration from variables exported by setcolors 2014-11-29 13:28:45 +03:00
Nikolai Aleksandrovich Pavlov
ddac11a64a Merge pull request #1198 from ZyX-I/fix-shell-unicode-error
Fix shell unicode error when current directory name is not ASCII
2014-11-28 23:16:55 +03:00
ZyX
c8286e96b0 Fix tcsh escaping
`!` gets expanded to the prompt count, so it needs to be escaped.
2014-11-28 23:03:06 +03:00
ZyX
c949f4ce95 Output list of failed shell tests 2014-11-28 23:02:12 +03:00
ZyX
c81ef95c27 Use newline for dash, not CR 2014-11-28 23:01:19 +03:00
ZyX
5c75bef18c Add integration tests for unicode directory names 2014-11-28 22:58:53 +03:00
ZyX
7b89533224 Fix UnicodeDecodeError in keyvaluesplit reported by @jottr
Ref #788
2014-11-28 21:33:17 +03:00
ZyX
386d0f0d5e Merge branch 'troubleshooting' into develop 2014-11-28 20:51:02 +03:00
ZyX
774ec6dd42 Add note about pip and $PATH
Closes #1189
2014-11-28 20:37:53 +03:00
ZyX
f1399dc5d6 Add information about tmux green bar 2014-11-28 20:31:24 +03:00
ZyX
410dccd870 Add warning about additional_escapes option 2014-11-28 20:25:07 +03:00
Nikolai Aleksandrovich Pavlov
ef0e5039a1 Merge pull request #1188 from ZyX-I/zsh-ZLE_PROMPT_INDENT
Support ZLE_RPROMPT_INDENT
2014-11-22 23:05:19 +03:00
ZyX
b23ea8322a Support ZLE_RPROMPT_INDENT
Fixes #1145
2014-11-22 22:53:42 +03:00
ZyX
4bb4c3f50b Merge commit 'HEAD@{1}' into develop 2014-11-18 23:36:01 +03:00
ZyX
9fbd25608d Update documentation regarding powerline-status 2014-11-18 23:35:46 +03:00
Nikolai Aleksandrovich Pavlov
6b6245c5b3 Merge pull request #1147 from ZyX-I/fix-1146
Use different fallback for old Vims
2014-11-11 01:15:28 +03:00
ZyX
8afb35bd5d Use different fallback for old Vims
Reasoning: currently used fallback works well only if relatively recent patches 
are there: specifically the one that transforms Vim errors to Python exceptions.

This variant should work in any case, but it has a downside: it does not test 
whether function exists, it tests whether argument given to vim_func_exists 
denote some callable object (which may as well be global variable with the same 
name). When it comes to CapsLockStatusline I do not care much as I am using 
`vim.eval` to call it and not saving reference to this function somewhere.

Fixes #1146
2014-11-11 00:57:18 +03:00
Nikolai Aleksandrovich Pavlov
a6ba63a8e5 Merge pull request #1144 from ZyX-I/vim-plugins
Add support for csv and capslock and Command-T vim plugins
2014-11-10 01:19:08 +03:00
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