ZyX
ee48836f7c
Always return true in install.sh
2013-05-06 19:13:00 +04:00
Kim Silkebækken
4d5d92dda2
Merge remote-tracking branch 'zyx-i/powerline-daemon' into develop
2013-05-06 15:37:44 +02:00
Kovid Goyal
7b495aff0c
Fix tests failing if inotify not available
2013-05-03 10:34:50 +05:30
ZyX
467bc53589
Also fix bash tests
2013-05-02 16:01:44 +04:00
ZyX
b78a8cea14
Fix tmux tests
2013-05-02 15:47:05 +04:00
Kovid Goyal
ad55daf9c3
Make vcs segments *much* faster
...
Do not call vcs status unless the relevant files have changed.
Uses inotify, if available, otherwise falls back to stat() based
monitoring. Fixes #396
2013-05-02 11:13:54 +05:30
Kim Silkebækken
02eee6f54e
Merge remote-tracking branch 'zyx-i/virtcol-current-gradient' into develop
...
Conflicts:
tests/vim.py
2013-04-20 16:57:37 +02:00
ZyX
bd0546d688
Add virtcol_current textwidth-based gradient
2013-04-13 19:37:43 +04:00
ZyX
cce79fda0e
Add support for getbufvar('%') and &textwidth option to vim emulation
2013-04-13 19:37:23 +04:00
ZyX
2d036c0de8
Fix indentation of dictionaries
2013-04-13 19:35:25 +04:00
ZyX
a4c59ded76
Make tests more verbose and catch first KeyboardInterrupt
2013-04-13 15:44:08 +04:00
Kim Silkebækken
7864acb70b
Update tests
2013-04-11 11:52:54 +02:00
Kim Silkebækken
0c7cc25a02
Merge remote-tracking branch 'zyx-i/threaded-cpu_load_percent' into develop
2013-04-08 11:39:23 +02:00
ZyX
71329cdb5d
Add gradient for cpu_load_percent
...
Note: no changes to colorschemes: no cpu_load_percent in colorscheme
2013-04-08 08:04:22 +04:00
ZyX
5b8b3599be
Fix tests on python-2.6
2013-04-06 19:01:59 +04:00
ZyX
b1fecebd53
Some fixes for flake8
2013-04-06 18:56:19 +04:00
ZyX
e68bae6409
Add fixes for flake8 to that stuff
2013-04-06 18:53:16 +04:00
ZyX
42ee82c1de
Update *watcher stuff from @kovidgoyal develop branch
2013-04-06 18:48:04 +04:00
ZyX
d1d05c9dcf
Add support for reloading configuration in the main thread
2013-04-06 18:09:45 +04:00
ZyX
88865b1145
Defer create_renderer (and thus thread creation) until .render call
...
May fix problem discussed in #397
Also fix documentation for Powerline.render().
2013-04-06 17:18:59 +04:00
ZyX
af2f8f588b
Replace MultiClientWatcher and Powerline threads with ConfigLoader
...
Also
- move file opening and parsing to ConfigLoader
- add interval configuration
2013-04-06 17:18:25 +04:00
ZyX
5534b26bfe
Forbid querying vim from non-main threads in tests
...
Currently tests nothing or almost nothing.
2013-04-06 17:16:55 +04:00
ZyX
63e2942929
Also take tests from @kovidgoyal develop branch
2013-04-06 17:16:55 +04:00
Kim Silkebækken
2685f61e88
Merge branch 'various-improvements' into develop
2013-04-05 16:22:46 +02:00
Kovid Goyal
80be4071c9
Disable continuous polling of CPU count in load segment
2013-04-05 16:12:25 +02:00
Kim Silkebækken
2d9110b5f1
Update tests
2013-04-03 14:23:20 +02:00
ZyX
33d32498b9
Do not use create_renderer from a separate thread
...
Also moves functions from tests.test_config_reload to tests.lib.config_mock
Using create_renderer for vim results in vim access from a separate thread.
2013-04-03 06:33:56 +04:00
ZyX
b990c920e9
Use clear_events, do not assert.
2013-04-03 06:02:14 +04:00
ZyX
de47b76a06
Add more assertAccessEvents
...
May fix travis build
2013-04-02 19:23:12 +04:00
ZyX
691efbfc9b
Also do the same for `last_pipe_status`
2013-04-02 19:06:05 +04:00
ZyX
4e5bd54f79
Fix cwd segment, add use_path_separator option
...
cwd segment was not drawing inner separators because of new default for
multisegment functions. use_path_separator was added because current variant
looks bad for my taste.
2013-04-02 19:01:03 +04:00
ZyX
66beaaaa9d
Replace draw_soft_divider setting with draw_inner_divider
...
If weather or system_load segments were moved to the left draw_soft_divider
variant resulted in incorrect renderring. Thus it was replaced by
draw_inner_divider.
2013-04-02 17:22:55 +04:00
ZyX
f15cdd9413
Replace draw_divider setting with draw_(soft|hard)_divider
...
Previous variant was bad because
1. draw_divider only applied to soft dividers. Hard dividers were always drawn
2. But there was a hack with width=auto segments: for this segments draw_divider
setting applied always.
Now there are no additional dependencies: draw_*_divider applies no matter what
other properties of the segment are.
2013-04-02 17:21:22 +04:00
Kim Silkebækken
fcc009a6f5
Merge remote-tracking branch 'mspaulding06/hostname_exclude_domain' into develop
...
Conflicts:
powerline/segments/common.py
tests/test_segments.py
2013-04-02 11:29:08 +02:00
ZyX
b7c61f8bf6
Handle removed and then added files
...
Note: if user configuration was removed, but global configuration was not it
will start tracking global configuration file for changes.
2013-04-02 00:27:54 +04:00
ZyX
d1e79000b5
Add tests for reloading theme and colorscheme
2013-03-31 14:57:43 +04:00
ZyX
54471569ab
Check whether it switches configuration fine
2013-03-31 14:53:21 +04:00
ZyX
8c3be65bba
Added test for colors config reloading
2013-03-31 13:37:07 +04:00
Matt Spaulding
3a6c0ab8fd
Add test for hostname exclude_domain option
2013-03-30 15:32:29 -07:00
ZyX
5a50acf16b
Add initial tests for configuration reloading
...
Currently only:
- Test for not reloading configuration if run_once is not True
- Test for reloading main configuration and other configurations triggered by
changes in main configuration file
TODO: tests for all other configuration files reloading (colors, colorscheme,
theme).
2013-03-31 00:06:49 +04:00
ZyX
c6be4426d3
Fix whitespace errors
2013-03-31 00:03:35 +04:00
ZyX
c2ceac093f
Add replace_item with function, remove os import
2013-03-31 00:02:53 +04:00
ZyX
3ebc16a48c
Replace pl.environ/getcwd/home with segment_info
2013-03-30 21:55:00 +04:00
ZyX
29f29213a9
Remove ThreadedSegment.write_lock
...
Assuming getattr(self, 'update_value') and setattr(self, 'update_value', value)
are atomic. True with cpython unless somebody defined __getattribute__ or
__setattr__.
2013-03-30 14:07:24 +04:00
ZyX
27c9a05782
Change indentation of closing }, ], ) and combinations of them
2013-03-25 19:04:18 +04:00
ZyX
ada5dede25
Fix network_load test
...
It was using old network_load.sleep and also was not shutting down network_load
in case it failed test
2013-03-25 18:45:43 +04:00
ZyX
7646c949e2
Automatically reload configuration
...
Needs testing
2013-03-25 18:24:17 +04:00
ZyX
80ddbfbf9a
Split Powerline.__init__ into __init__ and create_renderer
...
Target: with long-living Powerline objects periodically reload configuration
recreating renderer. Use file watchers to watch for configuration. Configuration
should be able to be safely reloaded in non-blocking mode in a separate thread
up to the time when it comes to recreating renderer.
This commit does not add anything that actually reloads the configuration,
multiple runs of .create_renderer were not tested.
2013-03-25 18:24:16 +04:00
ZyX
92652ca5c4
Some fixes for flake8
2013-03-25 00:10:54 +04:00
ZyX
00271c2a0c
Shut down network_load segment in tests
2013-03-24 22:24:48 +04:00