mirror of
https://github.com/powerline/powerline.git
synced 2025-07-30 09:15:19 +02:00
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.
Powerline ========= :Author: Kim Silkebækken (kim.silkebaekken+vim@gmail.com) :Source: https://github.com/Lokaltog/powerline :Version: beta :Build status: .. image:: https://api.travis-ci.org/Lokaltog/powerline.png?branch=develop :target: `travis-build-status`_ :alt: Build status This is the upcoming version of Powerline, implemented in Python. The project is currently in a stable beta and almost ready for release. * Consult the `documentation <https://powerline.readthedocs.org/en/latest/>`_ for more information and installation instructions. * Check out `powerline-fonts <https://github.com/Lokaltog/powerline-fonts>`_ for pre-patched versions of popular coding fonts. .. _travis-build-status: https://travis-ci.org/Lokaltog/powerline Screenshots ----------- Vim statusline ^^^^^^^^^^^^^^ **Mode-dependent highlighting** * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-normal.png :alt: Normal mode * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-insert.png :alt: Insert mode * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-visual.png :alt: Visual mode * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-replace.png :alt: Replace mode **Automatic truncation of segments in small windows** * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-truncate1.png :alt: Truncation illustration * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-truncate2.png :alt: Truncation illustration * .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-truncate3.png :alt: Truncation illustration ---- The font in the screenshots is `Pragmata Pro`_ by Fabrizio Schiavi. .. _`Pragmata Pro`: http://www.fsd.it/fonts/pragmatapro.htm
Languages
Python
90.7%
Shell
7.1%
Vim Script
1.8%
C
0.4%