ZyX
e5db01193c
Add missing PowerlineState.use_daemon_threads assignment
2013-03-26 08:20:32 +04:00
ZyX
878b808e9e
Workaround deadlock in ipython
...
shutdown_hook is called after all non-daemon threads exit, but it is needed for
them to exit. Thus I had to use daemon threads in ipython or find some hack to
make .shutdown be called earlier.
2013-03-26 08:12:35 +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
3f53aa298a
Use global watcher
2013-03-25 18:43:29 +04:00
ZyX
fc6636cf57
Clear Powerline.configs when loading main configuration
...
It should eventually clear out stale watches.
2013-03-25 18:41:38 +04:00
ZyX
7646c949e2
Automatically reload configuration
...
Needs testing
2013-03-25 18:24:17 +04:00
ZyX
5d1089f252
Some fixes for flake8, remove executable bit and shebang
2013-03-25 18:24:17 +04:00
ZyX
559b5caef2
Take file_watcher from @kovidgoyal develop branch
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
Kim Silkebækken
bc7c5b784d
Merge branch 'update-docs' into develop
...
TODO:
* Add info about code layout, debugging tips, etc.
* Add "developing powerline" section to docs (not contributing document)
Ref #287
2013-03-25 13:55:31 +01:00
Kim Silkebækken
40436c549a
Merge remote-tracking branch 'zyx-i/no-update_lock' into develop
2013-03-25 13:49:50 +01:00
ZyX
92652ca5c4
Some fixes for flake8
2013-03-25 00:10:54 +04:00
ZyX
8c63d20880
Fix update_first
2013-03-24 22:39:31 +04:00
ZyX
3aab9ef96c
Make zsh/zpython also call .shutdown correctly
2013-03-24 22:24:48 +04:00
ZyX
3809b8b3b5
Allow multiple shutdowns with multiple starts
2013-03-24 22:24:48 +04:00
ZyX
00271c2a0c
Shut down network_load segment in tests
2013-03-24 22:24:48 +04:00
ZyX
80e55b0c81
Replace update_lock with shutdon_event
2013-03-24 22:24:48 +04:00
Kim Silkebækken
07c2ea1176
Merge remote-tracking branch 'zyx-i/fix-361' into develop
2013-03-24 19:07:44 +01:00
ZyX
b6143cf429
Readd log_ prefix and expand log_file
2013-03-24 21:04:09 +04:00
ZyX
d27c720279
Fix race condition, don’t rely on detect feature
...
detect feature is to be tested though
2013-03-24 20:36:28 +04:00
ZyX
7764bcc6a1
Fix logging format
...
Fixes #361
2013-03-24 20:21:21 +04:00
Kim Silkebækken
68e29a7eba
Merge remote-tracking branch 'zyx-i/pl-argument' into develop
2013-03-24 17:11:29 +01:00
ZyX
6c495374a0
Fix exec call for non-python-2.7
2013-03-24 20:03:09 +04:00
ZyX
1351207462
Some fixes for flake8
2013-03-24 19:59:56 +04:00
Kim Silkebækken
5cebad9428
Merge remote-tracking branch 'zyx-i/pl-argument' into develop
2013-03-24 16:52:44 +01:00
ZyX
14d957bdf9
Skip crashed segments
2013-03-24 19:49:54 +04:00
ZyX
ca2f0cc873
Do not wait for update lock, exit
2013-03-24 19:49:54 +04:00
ZyX
63a50ad200
Remove run_once from ShellPowerline, fix update_first
...
run_once will be passed to Powerline as a part of **kwargs
2013-03-24 19:49:54 +04:00
ZyX
7370876c35
Make scripts/powerline use os.environ['PWD'] for .getcwd() if present
...
Closes #330
2013-03-24 19:49:54 +04:00
ZyX
8a51d99389
Some fixes for zsh, remove some exceptions handling
...
Those exceptions are now handled and logged at top level, thus no need to handle
them in segment.
Ref #330 , it is now fixed for zsh/zpython
Note: do not use zsh/zpython + python3, it does not work properly, even though
this changeset contains fixes for it as well
Fixes #360
2013-03-24 19:48:51 +04:00
ZyX
ed435f8063
Add required pl argument to segments
...
Fixes #340
Ref #330
2013-03-24 19:44:01 +04:00
ZyX
cc1c982696
Move configuration to /etc/xdg/powerline
...
XDG_CONFIG_DIRS is set in /etc/env.d by configuration from xdg-utils package,
but it is not guaranteed to be present in the system
2013-03-24 19:35:25 +04:00
ZyX
e151b600b2
Use python’s try/catch, not vim’s
...
Fixes #344
2013-03-24 19:35:25 +04:00
ZyX
127a600e1b
Rework API for custom vim events
2013-03-24 19:35:25 +04:00
ZyX
a021916428
Make update_first configurable
2013-03-24 19:35:25 +04:00
ZyX
e6dd40bff0
Fix behavior with run_once: .update() was called too much times
2013-03-24 19:35:25 +04:00
ZyX
a65a27e673
Allow multiple starts by not subclassing from Thread
2013-03-24 19:35:25 +04:00
ZyX
0c9337bd72
Allow multiple shutdown calls
2013-03-24 19:35:25 +04:00
ZyX
840ac0109b
Port common.branch segment to KwThreaded*, add common.repository_status
2013-03-24 19:35:25 +04:00
Kim Silkebækken
5caeac26bf
Merge remote-tracking branch 'zyx-i/fix-356' into develop
2013-03-24 16:18:44 +01:00
Kim Silkebækken
154fe123fe
Merge remote-tracking branch 'zyx-i/ipython-other' into develop
2013-03-24 16:18:26 +01:00
Kim Silkebækken
7a096f6c9d
Merge remote-tracking branch 'zyx-i/colors' into develop
2013-03-24 16:18:07 +01:00
ZyX
33592145ae
Also fix VimRenderer.strwidth
...
Fixes #356
2013-03-24 05:56:55 +04:00
ZyX
87e39d0b56
Autodetect python version
2013-03-24 05:51:41 +04:00
ZyX
b517df774b
Fix bytes handling on python3
...
Fixes #356
2013-03-24 05:45:52 +04:00
ZyX
c4e5ff8b49
Added support for all powerline prompts (in2, out, rewrite)
...
Also fixed problem with prompt not really updating.
Fixes #141
2013-03-24 05:23:33 +04:00
ZyX
bb06207838
Some lint fixes
...
* Fixed handling of empty scalars in python2: ''.join([]) returns str,
''.join([u'smth']) returns unicode
* Fixed check_config: it was always checking for themes, even if it was
requested to check colorscheme
2013-03-24 05:23:33 +04:00
ZyX
83ed36903c
Fix bold attr that may leak into next segment
2013-03-24 05:23:33 +04:00
ZyX
b1f9edab4c
Remove get_segment_info and passing segment_info through globals
2013-03-24 05:23:33 +04:00