1385 Commits

Author SHA1 Message Date
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
ZyX
b99ad3904e Remove some __nonzero__ methods in tests/vim.py
Just __len__ is good enough here
2014-08-03 12:53:15 +04:00
ZyX
07c533d1b2 Test tabline in test_tabline.vim file 2014-08-03 12:53:15 +04:00
ZyX
ff91ff7f92 Update tests to work with new functionality
Still no tests for new functionality.
2014-08-03 12:53:15 +04:00
ZyX
70ae12b512 Added tabline support
No tests for it yet
2014-08-03 12:53:15 +04:00
ZyX
0ecd10ffb2 Add ability to copy recursive specifications 2014-08-03 12:53:15 +04:00
ZyX
23ec5efb41 Fix required keys handling: do not require more keys then required 2014-08-03 12:53:15 +04:00
Nikolai Aleksandrovich Pavlov
fc40c80be2 Merge pull request #947 from magus424/feature/556-line_count-segment
Added line_count segment for vim.

Closes #556
2014-08-03 10:40:01 +04:00
Collin Grady
f615d85172 Added line_count segment for vim.
Returns total number of lines in current buffer.

Addresses #556
2014-08-03 05:54:57 +00:00
Nikolai Aleksandrovich Pavlov
da6667bd14 Merge pull request #945 from ZyX-I/update-docs
Update documentation
2014-08-03 03:40:26 +04:00
ZyX
d5081acf38 Add note about minibufexpl
Closes #230
2014-08-03 03:22:34 +04:00
ZyX
5173246a93 Add note about automatic vimrc resourcing
Ref #297
Ref #296
Closes #213
2014-08-03 03:22:25 +04:00
ZyX
2e34e1914c Add code for Vundle installations and related warning
Ref #414
Closes #378
2014-08-03 03:06:39 +04:00
ZyX
74d19b4f52 Add font installation instructions 2014-08-03 03:06:39 +04:00
ZyX
62a815bddf Fix segment_data key description in configuration reference 2014-08-03 03:06:39 +04:00
ZyX
29a467696d Fix styling of rxvt-unicode tips 2014-08-03 03:06:39 +04:00
esn89
14f2beea91 Added Source Code Pro documentation.rst
Added a short blurb on Source Code Pro and how to make the glyphs show up.

Closes #460
2014-08-03 03:06:39 +04:00
ZyX
207c24a9f5 Add note about https:// protocol
Closes #881
2014-08-03 03:06:39 +04:00
ZyX
963823d660 Increase depth to 3
Reason: this way I have anything I want in one click. Less precise toctree is in
any case present in the side bar.
2014-08-03 03:06:39 +04:00
ZyX
a7d3fdd3d1 Add note about `tmux -2`
Closes #847
2014-08-03 03:06:38 +04:00
ZyX
b6be30470b Remove timeout tip
Closes #808
Closes #266
2014-08-03 03:06:31 +04:00
ZyX
cbcfd317a6 Update terminal support matrix
Fixes #763
Closes #660
2014-08-03 02:43:35 +04:00
ZyX
c043fa5e22 Copy documentation from old variant
Note: fontpatcher documentation was removed.

Closes #632
Closes #769
2014-08-03 02:43:35 +04:00
Kim Silkebækken
c2379df50a Remove old docs and update documentation structure
Most of the files are empty and need to be copied or rewritten from the
old docs. Font patching docs have been removed entirely and will be
moved to the powerline-fontpatcher repo.

Ref #769
2014-08-03 02:43:35 +04:00