Commit Graph

1559 Commits

Author SHA1 Message Date
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
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
ZyX 31731a93da Add bufnr and modified_indicator segments to tabline 2014-08-16 14:37:13 +04:00
ZyX a792fb0e1c Add support for `draw_inner_divider` in listers 2014-08-16 14:25:12 +04:00
ZyX 6106e914e3 Remove duplicate documentation of draw_inner_divider 2014-08-16 14:00:08 +04:00
ZyX 407a8bca7e Fix incorrect description of draw_inner_divider 2014-08-16 13:59:00 +04:00
ZyX 096c4801b0 Use buf_nc and tab_nc modes in listers 2014-08-16 13:51:26 +04:00
ZyX ac7a9596ab Remove nonlocal image URLs from overview 2014-08-16 13:46:14 +04:00
ZyX d1782d4aaf Add documentation about creating listers 2014-08-16 13:43:22 +04:00
ZyX a3324134d1 Use generators in place of list comprehension in listers 2014-08-16 13:33:59 +04:00
ZyX c3099ce48b Add lister reference 2014-08-16 13:22:31 +04:00
ZyX 402cc9e911 Also show documentation for plugin-specific segments 2014-08-16 13:21:46 +04:00
ZyX 24938e0bb9 Remove duplicate information from configuration/segments.rst 2014-08-16 13:06:19 +04:00