ZyX
2d27f82122
Make lint checker work
2014-07-12 12:20:40 +04:00
ZyX
8ded14c3d8
Add mergedicts_copy: non-modifying mergedicts
2014-07-12 12:20:40 +04:00
ZyX
4d9157d7f1
Add MarkedDict class, add special code for .copy() in Marked
2014-07-12 12:20:40 +04:00
ZyX
ee71eac7b2
Check for dictionaries using isinstance(), not is
2014-07-12 12:20:40 +04:00
ZyX
7f94583324
Make attr colorscheme group key required
2014-07-12 12:20:40 +04:00
ZyX
d72e4f5081
Update documentation
2014-07-12 12:20:40 +04:00
ZyX
e79eada2a0
Move some color defintions to colorscheme/*.json
2014-07-12 12:20:40 +04:00
ZyX
97266b7ffc
Initial support for #770
...
What was done:
- Implemented loading using configuration hierarhy as proposed in the issue
- Implemented group aliasing
What was not:
- Some tests (config_reload) are failing
- Other (test_configuration) are spamming console with unexpected messages
- No support for powerline-lint
- No tests for new functionality
- Specifically I have not checked whether group aliasing actually works
- Colorschemes were not ported
Some other things: I have named this branch `config-ng` because I have other
ideas about configuration and it would be good to include them making only one
possibly backwards-incompatible merge commit instead of many. Specifically I am
going to rebase `merge-config` branch here.
2014-07-12 12:20:40 +04:00
ZyX
2d1a964e32
Merge branch 'disable-virtualenv-prompt' into develop
2014-07-10 23:40:26 +04:00
ZyX
ff7be9ac40
Set VIRTUAL_ENV_DISABLE_PROMPT to 1
...
Otherwise powerline prompt is being prefixed by `(virtualenv-name)` in zsh which
looks rather ugly. In bash prompt is always overridden by PROMPT_COMMAND, thus
there is no actual need to set this variable.
2014-07-10 23:40:15 +04:00
Nikolai Aleksandrovich Pavlov
0fb5405af6
Merge pull request #920 from ZyX-I/fix-not-implemented-tests
...
Improve vim tests
2014-07-10 23:30:53 +04:00
ZyX
93c3b28785
Use better type converted for python-3*
...
Converter already existed, just needed to make it used by getbufvar
2014-07-10 23:25:08 +04:00
ZyX
128921454f
Correct _construct_result for Python-3
2014-07-10 23:24:58 +04:00
ZyX
a92d72b5d7
Respect the fact that vim.eval in Vim returns str instances
2014-07-10 22:54:27 +04:00
ZyX
3ac75eeca6
Add window_title tests
2014-07-10 22:33:10 +04:00
ZyX
f9af425054
Add missing winnr key to segments_dictionary
2014-07-10 22:33:10 +04:00
ZyX
e436bdbbfa
Remove failing _index, use (self.number - 1) instead
2014-07-10 22:33:10 +04:00
ZyX
3f8c8c9426
Prefix _Windows.{append,insert,pop} methods with underscore
...
There are no such methods in Vim.
2014-07-10 22:32:59 +04:00
ZyX
0ab80742c4
Add _with('wvars')
2014-07-10 22:21:29 +04:00
ZyX
a3e29a6cd6
Get rid of lots of NotImplementedError’s in travis log
2014-07-10 22:12:08 +04:00
Nikolai Aleksandrovich Pavlov
497ddc97a3
Merge pull request #917 from ZyX-I/fix-powerline-config-shell
...
Refactor powerline to create loggers and use run_cmd in powerline-config
2014-07-10 21:34:56 +04:00
ZyX
44ce483ee5
Use powerline.shell.run_cmd to get tmux version
...
Closes #912
2014-07-10 21:27:42 +04:00
ZyX
3d8ce55e01
Move code that sets config.json/common defaults to a separate function
2014-07-10 21:27:41 +04:00
ZyX
8f442ac01b
Move some code from Powerline.create_renderer to create_logger
2014-07-10 21:27:41 +04:00
ZyX
0fc7856b1b
Rename create_renderer_kwargs to cr_kwargs for consistency
2014-07-10 21:27:41 +04:00
ZyX
c891d75c2b
Move _load_config body to a separate function
2014-07-10 21:27:41 +04:00
ZyX
768e64bcdb
Add generate_config_finder function
2014-07-10 21:27:41 +04:00
ZyX
289094362e
Rename find_config_file to _find_config_file
2014-07-10 21:27:41 +04:00
ZyX
c36e14fd3c
Move get_config_paths out from Powerline class
2014-07-10 20:23:41 +04:00
ZyX
585153466c
Replace on_*_change with callbacks generator
2014-07-10 20:19:11 +04:00
Nikolai Aleksandrovich Pavlov
0810f394f5
Merge pull request #909 from ZyX-I/pypy-support
...
Enable pypy tests in .travis.yml
2014-07-10 20:00:59 +04:00
ZyX
871ce5727b
Set use_mercurial and use_bzr to False in PyPy
2014-07-10 19:49:37 +04:00
ZyX
19195159ad
Only install mercurial and bazaar if using CPython
2014-07-10 19:36:20 +04:00
ZyX
6c0018b7a3
Purge use_errno argument from function prototype calls
...
- It is already contained in prototype definition.
- PyPy is not able to run code with use_errno there.
2014-07-10 19:16:27 +04:00
ZyX
d478c239a7
Enable pypy tests in .travis.yml
2014-07-10 19:07:57 +04:00
Nikolai Aleksandrovich Pavlov
d770a4121c
Merge pull request #915 from ZyX-I/better-line_percent_gradient
...
Default line_percent_gradient to (light|dark)_green_gray gradients
2014-07-10 19:06:29 +04:00
ZyX
e2a49417b6
Default line_percent_gradient to (light|dark)_green_gray gradients
...
dark_green_gray gradient was generated with
tools/generate_gradients.py 70 247
. It is used for non-insert modes in the current window. light_green_gray
gradient was generated with
./tools/generate_gradients.py 148 250
. It is used for insert mode in the current window.
2014-07-10 18:56:40 +04:00
Nikolai Aleksandrovich Pavlov
ce75d0575e
Merge pull request #914 from ZyX-I/better-battery-colors
...
Improve battery segment colors
2014-07-10 18:55:06 +04:00
ZyX
af2d73ad7b
Regenerate gui colors for white_red gradient
...
Command used to generate colors:
tools/generate_gradients.py -C 231 255 223 216 209 202 196 --weights='1 1 1 1 1 1 3'
2014-07-10 18:35:24 +04:00
ZyX
551c9f8bed
Add two more colors to white_red gradient cterm colors
...
Picked up with
tools/generate_gradients.py 231 223 216 209 196
2014-07-10 18:35:24 +04:00
ZyX
a0a5b44173
Use battery_full and battery_empty for displaying hearts
...
Red hearts for battery full are still more optimal in case white hearts are for
empty (though I do not understand why they have to be red). Cannot agree about
per cents though: red is better for empty then white is if there are no related
parts to compare.
2014-07-10 18:35:24 +04:00
ZyX
2f7c44c29c
Document how to create gradient colors
2014-07-10 18:35:24 +04:00
ZyX
39316c429b
Reverse the gradient in battery segment
...
Closes #910
2014-07-10 18:35:23 +04:00
Nikolai Aleksandrovich Pavlov
cbcab959b4
Merge pull request #913 from ZyX-I/improve-generate_gradients
...
Improve generate_gradients.py script
2014-07-10 18:22:42 +04:00
ZyX
a68e01ac24
Reverse JSON output and add trailing comma
...
Makes it easier to copy-paste output to colors.json.
2014-07-10 18:13:16 +04:00
ZyX
ca0a8a2659
Refactor generate_gradients.py
2014-07-10 18:11:03 +04:00
ZyX
d1c2980ca4
Add a way to omit computing colors for terminal
2014-07-10 18:11:03 +04:00
ZyX
97cd66b69b
Merge branch 'fix-vim-overrides-test' into develop
2014-07-06 22:42:53 +04:00
ZyX
473f647fc8
Fix test_local_overrides.vim test broken by better-gradient branch
2014-07-06 22:42:28 +04:00
ZyX
184df196b9
Merge branch 'better-gradients' into develop
2014-07-06 11:57:49 +04:00