Commit Graph

1770 Commits

Author SHA1 Message Date
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
ZyX abaac3f0a0 Fix indentation error reported by syntastic 2014-08-22 00:32:17 +04:00
ZyX a50b488042 Fix incorrect use of partial
Fixes #1002
2014-08-22 00:30:29 +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
ZyX 94354475b5 Add support for full powerline reloading at runtime
Is not guaranteed to work in all cases.
2014-08-16 18:23:01 +04:00
ZyX ca13bc53e4 Add setup function 2014-08-16 18:23:01 +04:00
ZyX 3c1ec1959f Record imported modules 2014-08-16 18:17:45 +04:00
ZyX 1095257161 Pop path from self.loaded on exception 2014-08-16 18:17:45 +04:00
ZyX 85189e8b36 Add set_event argument to .shutdown() method 2014-08-16 18:17:45 +04:00
ZyX bbe3210bb6 Remove reference cycle
Switches from

    powerline ↔ get_module_attr (as a bound method it contains reference to
            │       ↑            self)
            └────> theme

to

            ┌────> pl, import_paths
            │       ↑
    powerline → get_module_attr
            │       ↑
            └────> theme

This is a separate commit because I am not sure whether it makes sense to bother
with this cycle.
2014-08-16 18:17:45 +04:00
ZyX 446eb42ea8 Replace various __import__ calls with one Powerline.get_module_attr
Also makes some more errors non-fatal:
- Failure to import renderer class in case there is an existing renderer object
- Failure to import segment function
- Failure to import matcher function

One of the purposes: create a function that is able to collect all imported
modules to reload them (really purge out from `sys.modules` and let the python
do its job when reimporting powerline and recreating Powerline and other
objects).
2014-08-16 18:17:06 +04:00
Nikolai Aleksandrovich Pavlov c2c2d7efca Merge pull request #994 from ZyX-I/refactor-watcher
Refactor watchers code
2014-08-16 15:16:51 +04:00
ZyX 39251ce1cb Remove in-method imports from inotify 2014-08-16 15:06:57 +04:00
ZyX cb99c06027 Move watcher tests into a separate file 2014-08-16 15:06:57 +04:00
ZyX 2faa2a254f Move tree_watcher to powerline/lib/watcher and split it 2014-08-16 15:06:57 +04:00
ZyX cb41ce40d2 Remove function that is not used anywhere 2014-08-16 14:48:05 +04:00
ZyX 14608d1bf9 Make naming consistent with tree_watcher 2014-08-16 14:48:00 +04:00
ZyX 61074fcd6c Refactor file_watcher.py into four files 2014-08-16 14:47:51 +04:00
Nikolai Aleksandrovich Pavlov 1ea3b96f4c Merge pull request #993 from ZyX-I/listers
Some lister improvements

Fixes #989
Closes #972
Ref #614
2014-08-16 14:44:44 +04:00
ZyX 62e8e78866 Fix exclude_/include_modes support with new segment['mode'] key 2014-08-16 14:37:13 +04:00