701 Commits

Author SHA1 Message Date
ZyX
5e93d20fb8 Do not sort segments that are always included 2013-04-13 15:05:39 +04:00
ZyX
ae691b7cd8 Improve shown errors 2013-04-13 14:47:39 +04:00
ZyX
fee328666f Improve arguments checks 2013-04-13 14:20:54 +04:00
ZyX
7e57010c19 Move some code from powerline_autodoc to powerline.lib.inspect
To make it available later in lint checker.
2013-04-13 00:09:00 +04:00
ZyX
4dd9c5196e Respect segment.py highlight group handling in powerline-lint
Either `highlight_group` or `name` key is enough to determine highlight group
for non-function segments, but powerline-lint requires `highlight_group`.
2013-04-12 23:45:48 +04:00
ZyX
c7946cda3e Use different default for functions
This makes it look up `powerline.segments.vim.virtualenv` in addition to
virtualenv in colorscheme like it does with `segment_data`.
2013-04-12 23:45:48 +04:00
ZyX
a8eb0a2471 Special-case None priority in place of -1
This extends priorities in both directions, uses slightly faster `is None`
check, makes it consistent with `interval` special-casing also to `None` and
makes lint able to use one simple `.type()` check in place of `.either()` one.
2013-04-12 23:45:48 +04:00
ZyX
49618fc4e3 Rename PowerlineState to PowerlineLogger 2013-04-12 23:45:47 +04:00
ZyX
587789ebda Fix documentation for ThreadedSegment classes with @staticmethod’s 2013-04-12 23:45:47 +04:00
ZyX
9250d794d7 Remove pl argument and first argument to render* from docs 2013-04-12 23:45:47 +04:00
ZyX
ac88a09436 Add renderer docstrings. 2013-04-12 23:45:47 +04:00
ZyX
3ce068db94 Make vim and ipython ext configurations optional 2013-04-12 23:45:47 +04:00
ZyX
40973ea530 Alter indentation 2013-04-12 23:45:42 +04:00
Kim Silkebækken
a1f370490b Merge branch 'feature/vim-special-windows' into develop 2013-04-11 11:53:05 +02:00
Kim Silkebækken
7864acb70b Update tests 2013-04-11 11:52:54 +02:00
Kim Silkebækken
8230f542c6 vim: Add quickfix window statusline
Closes #419
2013-04-11 11:50:35 +02:00
Kim Silkebækken
739514efc5 Merge remote-tracking branch 'zyx-i/fix-411' into develop 2013-04-09 10:29:56 +02:00
ZyX
de678ed289 Create VimPowerline.reset_highlight proxy method
Fixes #411
2013-04-09 00:37:53 +04:00
Kim Silkebækken
a7daa507ab Merge remote-tracking branch 'zyx-i/alter-priority' into develop 2013-04-08 11:47:51 +02:00
Kim Silkebækken
0c7cc25a02 Merge remote-tracking branch 'zyx-i/threaded-cpu_load_percent' into develop 2013-04-08 11:39:23 +02:00
Kim Silkebækken
51a9bbdbce Merge remote-tracking branch 'zyx-i/ipython-shutdown' into develop 2013-04-08 11:38:04 +02:00
Kim Silkebækken
e6ae8ca49f Merge remote-tracking branch 'zyx-i/persistent-awesome' into develop 2013-04-08 11:36:44 +02:00
Kim Silkebækken
c1ed109422 Merge remote-tracking branch 'zyx-i/more-threaded-globals' into develop 2013-04-08 11:31:04 +02:00
ZyX
24dde27b7e Alter the priority of branch and line_percent segments
Unlike file_type and file_directory branch cannot be deduced from the filename 
(you normally know directory structure of the project) and contents of the file.

Unlike file_format and file_encoding which are normally configured once and then 
forgotten about knowing branch segment is necessary to separate commits.
2013-04-08 08:59:56 +04:00
ZyX
71329cdb5d Add gradient for cpu_load_percent
Note: no changes to colorschemes: no cpu_load_percent in colorscheme
2013-04-08 08:04:22 +04:00
ZyX
b2cb5b1e94 Fix gradient level in email_imap_alert segment
Closes #407
2013-04-08 07:49:44 +04:00
ZyX
340bdc7a51 Add other self.pl proxies 2013-04-07 19:15:58 +04:00
ZyX
14b31eca35 Make dummy cpu_load_percent also ThreadedSegment
It is the easiest way to make documentation identical when created on a system 
with and without psutil module and deduplicate docstrings
2013-04-07 19:01:54 +04:00
ZyX
f3ce370566 Make cpu_load_percent segment threaded
interval=0.5 means that it will block for 0.5 seconds which is bad. With 
             threading it blocks only the separate thread, and it does not hold 
             GIL (uses regular time.sleep to wait) in this case which is fine.
interval=0.05 means that it will report almost random value.
interval=None means that (assuming psutil.cpu_percent is called only by this 
              segment) it will report CPU load percent measured between two 
              subsequent .cpu_load_percent calls or cpu_load_percent call and 
              module import. It is used for update method to get immediate 
              result in case update_first is True.
2013-04-07 18:52:49 +04:00
ZyX
8dcbb031aa Make IPython renderer shutdown properly 2013-04-07 13:19:20 +04:00
ZyX
66cdb36231 Use xml.sax.saxutils.escape in place of xmlrpclib.escape
The latter is not available in python 3
2013-04-07 04:42:36 +04:00
ZyX
6f57a3dd63 Some fixes for flake8 2013-04-07 04:30:51 +04:00
ZyX
b507029741 Replace shell script with python one 2013-04-07 04:23:31 +04:00
ZyX
3c613bc1b7 Use xmlrpclib.escape for escaping in PangoMarkupRenderer 2013-04-07 04:20:35 +04:00
ZyX
2c53378945 Also ignore trailing whitespaces 2013-04-07 04:16:57 +04:00
ZyX
9ce63d1657 Allow non-format messages 2013-04-07 03:24:39 +04:00
ZyX
8cb1538e8e Normalize modelines 2013-04-07 02:32:29 +04:00
ZyX
25f19596dd Also ignore E225 like suggested in CONTRIBUTING.rst 2013-04-06 23:14:18 +04:00
ZyX
6212711231 Add forgotten self.updated set
Ref #367
2013-04-06 21:23:25 +04:00
ZyX
5b8b3599be Fix tests on python-2.6 2013-04-06 19:01:59 +04:00
ZyX
b1fecebd53 Some fixes for flake8 2013-04-06 18:56:19 +04:00
ZyX
e68bae6409 Add fixes for flake8 to that stuff 2013-04-06 18:53:16 +04:00
ZyX
42ee82c1de Update *watcher stuff from @kovidgoyal develop branch 2013-04-06 18:48:04 +04:00
ZyX
b17dab0cd4 Handle removed files 2013-04-06 18:30:33 +04:00
ZyX
d1d05c9dcf Add support for reloading configuration in the main thread 2013-04-06 18:09:45 +04:00
ZyX
296107d68e Improve lint number (interval and priority) checks 2013-04-06 18:07:30 +04:00
ZyX
88865b1145 Defer create_renderer (and thus thread creation) until .render call
May fix problem discussed in #397

Also fix documentation for Powerline.render().
2013-04-06 17:18:59 +04:00
ZyX
af2f8f588b Replace MultiClientWatcher and Powerline threads with ConfigLoader
Also
- move file opening and parsing to ConfigLoader
- add interval configuration
2013-04-06 17:18:25 +04:00
ZyX
f0e5f43d48 Make it use existing shutdown events
Also adds check to powerline-lint that "args" dictionary does not set
shutdown_event, segment_info or pl keyword arguments, this will lead to problems
2013-04-06 17:17:49 +04:00
ZyX
f45084057a Remove debugging function 2013-04-06 17:17:49 +04:00