Commit Graph

939 Commits

Author SHA1 Message Date
Kim Silkebækken 79fcdc63bd Update Arch Linux optdepends and conflicts 2013-04-12 20:29:07 +02: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
ZyX b188662844 Move some thread functions to a separate class 2013-04-06 17:17:41 +04:00
ZyX 5534b26bfe Forbid querying vim from non-main threads in tests
Currently tests nothing or almost nothing.
2013-04-06 17:16:55 +04:00
ZyX 0a8e7c0e1e Add a note about vim-addon-manager 2013-04-06 17:16:55 +04:00
ZyX 63e2942929 Also take tests from @kovidgoyal develop branch 2013-04-06 17:16:55 +04:00
ZyX 47eef9860f Use different emulate call
Ref #389
2013-04-06 17:16:54 +04:00
Kim Silkebækken 2685f61e88 Merge branch 'various-improvements' into develop 2013-04-05 16:22:46 +02:00
Kim Silkebækken 5ff80ee206 Merge branch 'feature/shortened-uptime' into develop 2013-04-05 16:22:38 +02:00
Kovid Goyal f1286a7bc1 Rename time.py to monotonic.py
This makes it possible to run modules in the lib/ directory standalone.
2013-04-05 16:12:25 +02:00
Kovid Goyal 80be4071c9 Disable continuous polling of CPU count in load segment 2013-04-05 16:12:25 +02:00
Kim Silkebækken 0d3559c869 Increase external IP polling interval to 5 minutes 2013-04-05 15:44:38 +02:00
Kim Silkebækken 17065b4c7e Add timeout to thread join calls to avoid deadlocks 2013-04-05 15:44:01 +02:00
Kim Silkebækken dc1e646308 Merge remote-tracking branch 'zyx-i/fix-391' into develop 2013-04-04 14:49:50 +02:00