Commit Graph

1586 Commits

Author SHA1 Message Date
ZyX d76df9f168 Merge branch 'fix-reloading' into develop 2014-08-23 19:09:42 +04:00
ZyX 483b261019 When processing exception from _load do not allow overwriting it
If `self.loaded.pop` raises KeyError then this KeyError will be logged, not the 
initial exception from `self._load`.
2014-08-23 19:09:28 +04:00
ZyX f6f8dd8af3 Make condition function return path as expected by lib.config 2014-08-23 19:07:57 +04:00
Nikolai Aleksandrovich Pavlov 1a71ed3eba Merge pull request #1009 from ZyX-I/fix-1008
Improve Python 3 compatibility when using daemon and client
2014-08-23 16:30:59 +04:00
ZyX 20e9575c17 Do not try to test ipython if it is not available 2014-08-23 16:24:16 +04:00
ZyX 1b56179676 Disable dash tests in travis 2014-08-23 16:02:04 +04:00
ZyX ebc98977ae Make test_shells/test.sh compatible with dash 2014-08-23 16:00:34 +04:00
ZyX 9b7052bf3e Do not execute all tests in travis 2014-08-23 15:51:35 +04:00
ZyX 0232d3215b Add --socket argument to all clients
Makes it not needed to kill daemon for testing, but disables implicit
`powerline-config shell command` testing.
2014-08-23 15:19:00 +04:00
ZyX 77a7a26782 Do not require scripts/powerline
It may be immediately moved to bin/ sometimes or not compiled at all for some
reason.
2014-08-23 15:19:00 +04:00
ZyX 042d542231 Also test whether running daemon is successfull without arguments 2014-08-23 15:19:00 +04:00
ZyX b9360a083a Make tests test powerline daemon with valid python and all clients 2014-08-23 15:19:00 +04:00
ZyX 03c22e94a7 Make tcsh check whether some variables are defined or empty
Makes it consistent with other shells
2014-08-23 15:19:00 +04:00
ZyX 8e77262f2d Perform shell word splitting in zsh bindings
This makes POWERLINE_COMMAND be consistent across various bindings.
2014-08-23 15:19:00 +04:00
ZyX dc76396912 Solve encoding issues in powerline python client 2014-08-23 15:18:59 +04:00
ZyX 74d147a0be Use `open` to open file descriptors in place of `file`
Reason: there is no `file()` in Python 3.

Fix was originally presented by @kovidgoyal in [3deb69][1], but I cannot
cherry-pick this commit, because its commit message is highly undescriptive.

Fixes #1008

[1]: 3deb6988c8
2014-08-23 04:34:44 +04:00
Nikolai Aleksandrovich Pavlov 6e128c14ba Merge pull request #1007 from ZyX-I/tab-modified-indicator
Add tab_modified indicator
2014-08-22 22:04:29 +04:00
ZyX 5a45b7d291 Move processing segment['mode'] to segment.py 2014-08-22 21:34:37 +04:00
ZyX 974ec17bae Filter segments using mode in Theme.get_segments 2014-08-22 21:03:59 +04:00
ZyX 6481f1b65e Always specify all keys in segment_info 2014-08-22 21:03:59 +04:00
ZyX da48e9d84e Add tests 2014-08-22 09:08:58 +04:00
ZyX 5c4d75f952 Make tab_modified_indicator work in old Vims
Closes #996
2014-08-22 08:59:52 +04:00
ZyX 9cab9d6fff Use tab_modified_indicator highlight group 2014-08-22 08:59:51 +04:00
ZyX 58b7e6c800 Use spaces for alignment 2014-08-22 08:59:51 +04:00
ZyX 80c4856bcb Remove useless TODO 2014-08-22 08:59:51 +04:00
Jan Losinski 96e297cc6e Add tab_modified_indicator to the vim segments
This indicates in the tabline that any of the open buffers in a tab
page has unsaved modifications (like the default tabline do).

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2014-08-22 08:59:51 +04:00
Nikolai Aleksandrovich Pavlov 14a68ef8f6 Merge pull request #1006 from ZyX-I/vim-reload-local_themes
Fix Vim extension reloading when using .add_local_theme()
2014-08-22 08:17:27 +04:00
ZyX 849a866478 Fix Vim extension reloading when using .add_local_theme() 2014-08-22 00:46:12 +04:00
Nikolai Aleksandrovich Pavlov 0ea1cd6f7b Merge pull request #1004 from ZyX-I/fix-1003
Fix incorrect include/exclude_modes handling
2014-08-21 23:52:36 +04:00
ZyX 075eb8420e Add tests 2014-08-21 23:32:43 +04:00
ZyX 95bdca87ec Fix syntastic warnings in powerline/__init__ 2014-08-21 23:32:43 +04:00
ZyX 88a0b9075c Remove unused vim import 2014-08-21 23:32:43 +04:00
ZyX 6b51d122e2 Fix typo in renderer implementation
Fixes #1003
2014-08-21 23:32:34 +04:00
Nikolai Aleksandrovich Pavlov b9573088c1 Merge pull request #1001 from ZyX-I/workaround-997
Do not use some features in old Vims as they cause a crash
2014-08-20 21:38:58 +04:00
ZyX 8262a0ec44 Do not use some features in old Vims as they cause a crash
Fixes #997
Closes #999
2014-08-20 21:21:46 +04:00
ZyX e18251d58d Merge branch 'fix-ipython-tests' into develop 2014-08-20 21:13:12 +04:00
ZyX 48aac90681 Fix ipython tests 2014-08-20 21:12:10 +04:00
Nikolai Aleksandrovich Pavlov f9e525bd9a Merge pull request #1000 from ZyX-I/non-vim-reload
Add powerline reloading support to IPython and zsh with libzpython
2014-08-19 23:56:55 +04:00
ZyX 28bcb01345 Update documentation 2014-08-19 22:24:10 +04:00
ZyX 137fffc9f7 Add `%powerline reload` IPython magic function 2014-08-19 22:24:10 +04:00
ZyX 06175dcd74 Refactor IPython bindings
- Replaced two powerline objects with one powerline object utilizing
  RendererProxy proxy class that holds two Renderer instances.
- Made .setup() functions do something more meaningful.
2014-08-19 22:24:10 +04:00
ZyX b93f8d9b7b Rename Ipython to IPython (two capital letters in place of one) 2014-08-19 22:13:50 +04:00
ZyX 50160e9889 Add powerline-reload function for libzpython bindings 2014-08-19 22:13:49 +04:00
ZyX 23a3dc8f3c Implement powerline reloading in libzpython bindings 2014-08-19 22:13:39 +04:00
ZyX 015a2160ce Import sys in reload() function
It may be None sometimes
2014-08-19 19:05:14 +04:00
ZyX ff78eaa35c Do not override Powerline.setup(), use .do_setup() for this
Same reason as for `.__init__()` which was replaced by `.init()`
2014-08-18 22:45:32 +04:00
ZyX 696f4d2357 Merge branch 'less-terminus-spaces' into develop 2014-08-16 19:57:05 +04:00
ZyX f88d6cde0f Fix typo in unicode_terminus theme: make it use one space 2014-08-16 19:56:47 +04:00
Nikolai Aleksandrovich Pavlov 849bdb7dd2 Merge pull request #436 from ZyX-I/powerline-reload
Add support for reloading powerline
2014-08-16 18:32:38 +04:00
ZyX fe7aad7695 Update documentation for `Powerline.init` 2014-08-16 18:30:25 +04:00