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
ZyX
ff2009d5e3
Update mode in segment_info in tabpage lister
2014-08-16 13:03:40 +04:00
ZyX
54f0537d29
Do not show unlisted buffers
...
Closes #972
2014-08-16 12:57:34 +04:00
ZyX
61fc73d93d
Make listers accept any number of keyword arguments
2014-08-16 12:42:25 +04:00
ZyX
642ced97bc
Move listers to powerline.listers.vim module
2014-08-16 12:39:27 +04:00
Nikolai Aleksandrovich Pavlov
cb598f1c0f
Merge pull request #992 from jarnett/develop
...
another workaround for _powerline_tmux_setenv() issue with bash-4.2.45
2014-08-16 11:56:30 +04:00
Jesse
65dfc9f220
another workaround for _powerline_tmux_setenv() issue with bash-4.2.45
2014-08-15 23:17:00 -04:00
Nikolai Aleksandrovich Pavlov
9ba37d9a62
Merge pull request #988 from ZyX-I/weather-icons
...
Add weather icons to top-level themes
2014-08-15 21:37:27 +04:00
ZyX
79a36298e9
Replace foggy weather symbol with IDENTICAL TO
...
Closes #799
2014-08-15 21:14:40 +04:00
Nikolai Aleksandrovich Pavlov
7ab8c30ccf
Merge pull request #987 from ZyX-I/style
...
Fix powerline style
2014-08-15 21:13:17 +04:00
ZyX
e2ffc8069b
Add weather icons to various themes
2014-08-15 21:12:14 +04:00
ZyX
ae92d83eae
Fix powerline style
...
Specifically I searched for all lines that are more then one tab off compared to
the previous line with
BufGrep /\(^\t\+\)\S.*\n\1\t\t\+/
and replaced them with something more appropriate. Most of time this resulted in
a few more newlines, but there are cases when I used mixed tabs/spaces
indentation+alignment.
2014-08-15 20:58:19 +04:00
Nikolai Aleksandrovich Pavlov
cdd36aa778
Merge pull request #986 from ZyX-I/developer-documentation
...
Developer documentation and module layout refactoring
2014-08-15 20:21:13 +04:00
ZyX
cbfa64c7cb
Mention long lines in CONTRIBUTING.rst
2014-08-15 20:06:40 +04:00
ZyX
fa93d0a929
Ignore E101 (“indentation contains mixed spaces and tabs”)
2014-08-15 20:04:12 +04:00
ZyX
c316ef8e76
Fix some style problems
2014-08-15 20:02:28 +04:00
ZyX
2f3d56887f
Drop unneeded ignores
2014-08-15 20:02:28 +04:00
ZyX
0848f7d801
Document how to create extensions
...
Fixes #287
2014-08-15 19:44:27 +04:00