Commit Graph

1408 Commits

Author SHA1 Message Date
ZyX b0093c6b67 Implement single-level merging of “args” dictionaries 2014-08-06 00:24:30 +04:00
ZyX 759b42a823 Make now_playing segment accept state symbols from arguments 2014-08-06 00:05:05 +04:00
ZyX 37b1f967a2 Move all unicode characters from themes to powerline.json 2014-08-06 00:05:04 +04:00
ZyX bdde4ae99f Implement theme hierarchy
Fixes #783
2014-08-06 00:05:04 +04:00
ZyX 145e1c2050 Only check that all colorschemes have theme, but not the opposite 2014-08-06 00:05:04 +04:00
Nikolai Aleksandrovich Pavlov b1a2b44db1 Merge pull request #957 from ZyX-I/better-visual-range
Improve visual_range segment
2014-08-05 23:16:05 +04:00
ZyX f4b5c6a63f Add fix for old Vims where getpos does not return list of integers 2014-08-05 23:03:59 +04:00
ZyX 117661e186 Add tests for visual_range 2014-08-05 22:49:53 +04:00
ZyX 702f43858b Do not use “rows” and “cols” in text
Reason: string “1 rows” is incorrect and I do not want to implement proper 
number handling (*proper* handling is *not* limited to plural/singular form like
in English).
2014-08-05 22:44:29 +04:00
ZyX 97978eaf77 Improve visual_range segment 2014-08-05 22:27:05 +04:00
Nikolai Aleksandrovich Pavlov c95b288527 Merge pull request #923 from ZyX-I/merge-config
Implement configuration merging
2014-08-05 14:05:23 +04:00
ZyX 0f4e1bafda Refactor config_mock module to not use globals and fix tests 2014-08-05 13:56:02 +04:00
ZyX 66e0999147 Document configuration merging 2014-08-05 13:56:02 +04:00
ZyX 01585edeab Fix errors reported by linter, allow running it during tests 2014-08-05 13:56:02 +04:00
ZyX 2fd04348f7 Fix name regex: allow single-letter names 2014-08-05 13:56:02 +04:00
ZyX 27db44ac7a Implement configuration merging
Fixes #418
2014-08-05 13:56:02 +04:00
ZyX 3d77306c35 Some style fixes in powerline.lint 2014-08-05 13:42:21 +04:00
ZyX b043749daa Add support for pickle 2014-08-05 13:39:48 +04:00
ZyX 2296290037 Add MarkedList type 2014-08-05 13:39:48 +04:00
ZyX f482eea8be Merge branch 'quiet-tmux' into develop 2014-08-05 00:18:09 +04:00
ZyX 0c3e380fe0 Set all options quietly
Requires tmux 1.7 or later, so `-q` is not used in 1.8 and earlier configuration 
file.

Closes #942
2014-08-05 00:17:58 +04:00
ZyX 7286e7876f Merge branch 'tmux-refresh' into develop 2014-08-05 00:07:32 +04:00
ZyX 4bb217a05c Run refresh-client in tmux not depending on POWERLINE_COMMAND
Ref #942
2014-08-05 00:07:25 +04:00
Nikolai Aleksandrovich Pavlov d5964bc25b Merge pull request #955 from ZyX-I/faster-powerline_daemon
Do not use argparge for parsing environment
2014-08-04 03:55:52 +04:00
ZyX 203a374b54 Do not use argparge for parsing --env and --cwd
It took 2/3 of do_render call according to profiler. New variant takes only 1/6.

WARNING: This commit will break all powerline installations with running daemon
because it changes communication protocol. You must kill and restart all your
powerline daemons for powerline to function properly.

Highlight @kovidgoyal
2014-08-04 03:02:05 +04:00
ZyX da45adb9e6 Make it compile without warnings with -Wconversion 2014-08-04 03:02:05 +04:00
ZyX a5037a817b Fix powerline.c styling
Also makes it compile with -std=c89 (except for snprintf) or just -std=c99,
-Wall, -pedantic.
2014-08-04 03:02:05 +04:00
ZyX 088d1f0f58 Merge branch 'strip-renderer_arg-key' into develop 2014-08-04 00:18:03 +04:00
ZyX cfb107724f Exclude renderer_arg from daemon powerline objects cache
It may easily change between runs from one client and only affects segment_info 
which is regenerated always.
2014-08-04 00:17:41 +04:00
Nikolai Aleksandrovich Pavlov 4343e4edb4 Merge pull request #954 from ZyX-I/file-scheme
Add file_scheme segment
2014-08-04 00:12:22 +04:00
ZyX 50703f1cef Fix unicode/bytes handling for python-3 2014-08-04 00:07:30 +04:00
ZyX 74a3c9a0ca Add file_scheme segment
Fixes #207
2014-08-03 23:58:34 +04:00
Nikolai Aleksandrovich Pavlov e89832be14 Merge pull request #953 from ZyX-I/powerline-shell-help
Make powerline --help more useful
2014-08-03 22:47:41 +04:00
ZyX 3d1f9bfbbd Allow multiple arguments to `powerline[-lint] --config_path` 2014-08-03 22:22:59 +04:00
ZyX 780c919d88 Add documentation for `powerline --help` 2014-08-03 22:04:09 +04:00
ZyX 4f94afd612 Merge branch '946-troubleshooting' into develop 2014-08-03 18:56:30 +04:00
ZyX ead7e3f0fe Add troubleshooting information discovered in #946 2014-08-03 18:56:14 +04:00
Nikolai Aleksandrovich Pavlov 3983e9f711 Merge pull request #950 from ZyX-I/bufwinnr-segments
Add buffer and window number segments
2014-08-03 13:38:45 +04:00
ZyX 120a9cc8fa Add winnr segment
Closes #705
2014-08-03 13:25:58 +04:00
ZyX f877516e54 Add bufnr segment
Ref #705
2014-08-03 13:25:58 +04:00
Nikolai Aleksandrovich Pavlov 1cc46c7126 Merge pull request #948 from ZyX-I/tabline
Add tabline support
2014-08-03 13:24:26 +04:00
ZyX 1b8c092ae3 Make dividers unicode
Fixes travis problem with old vim
2014-08-03 13:13:49 +04:00
ZyX 43acf07ca0 Modify test_tabline to also test bufline 2014-08-03 12:53:53 +04:00
ZyX 6cf0c485fa Add single_tab segment 2014-08-03 12:53:53 +04:00
ZyX 2acefc9ac9 Add tabbuflister and buflister listers 2014-08-03 12:53:53 +04:00
ZyX 85f252652e Add tabnr segment 2014-08-03 12:53:53 +04:00
ZyX f02399b617 Add tabpage and tabnr arguments to segment_info 2014-08-03 12:53:16 +04:00
ZyX 1907708e98 Add support for has_key(gettabwinvar()) in vim test module 2014-08-03 12:53:16 +04:00
ZyX 0403f7af1a Fix renderer length computation
Current sum() of once computed _len’s is completely inappropriate in case
removal of the segment caused change in divider lengths: addition or removal of
dividers or change of the divider type when dividers have different length.

Also contains some optimizations: first of all _render_segments is called only
once always, same for strwidth() function for each string. Space is considired
to always have length 1. And do not bother computing any length if no width was
specified.
2014-08-03 12:53:16 +04:00
ZyX 3148acfef1 Set __bool__ to __nonzero__ in DelayedEchoErr
Method __nonzero__ was renamed to __bool__ in Python-3
2014-08-03 12:53:15 +04:00