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
ZyX
33562ab4b8
Improve documentation
2014-08-15 19:41:15 +04:00
ZyX
4a8b81e68b
Rearrange renderers: move *_prompt modules one level up
...
Renames powerline.renderers.zsh_prompt to powerline.renderers.shell.zsh, same
for other *sh_prompt modules.
2014-08-15 19:27:10 +04:00
ZyX
b5b91afcae
Document how to create Vim local themes
2014-08-15 19:17:51 +04:00
ZyX
f0ccb2dcb8
Fix path to __main__ theme
2014-08-15 19:17:51 +04:00
ZyX
1a1a8410d2
Add information about shell and ipython local themes
2014-08-15 19:17:50 +04:00
ZyX
86ddb38bf4
Add information about writing segments
...
Fixes #629
Ref #287
2014-08-15 19:17:50 +04:00
ZyX
df19fe2701
Mention `showtabline` option in Vim tips and tricks
2014-08-15 19:17:50 +04:00
ZyX
63a376e91d
Alter plugin layout: move *.plugin to *.{ext}.plugin
...
I do not see why vim plugins should receive such a generic name as
`powerline.segments.plugin.gundo`: taking a name that clearly indicates that
`gundo` is a *vim* plugin is better.
2014-08-15 19:17:50 +04:00
Nikolai Aleksandrovich Pavlov
d66256ad34
Merge pull request #985 from ZyX-I/fix-983
...
Check whether $COLUMNS is empty or zero, not only empty
2014-08-15 18:28:51 +04:00
Nikolai Aleksandrovich Pavlov
7789ed2721
Merge pull request #984 from ZyX-I/fix-250
...
Call powerline.new_window early under certain conditions
2014-08-15 18:20:54 +04:00
ZyX
6c187d94d8
Call powerline.new_window early under certain conditions
...
Fixes #250 for the GUI.
2014-08-15 18:04:51 +04:00
ZyX
8523282a7b
Check whether $COLUMNS is empty or zero, not only empty
...
Fixes #983
2014-08-15 18:04:41 +04:00