Kim Silkebækken ccd6b4c28a Restructure segment rendering methods
Theme.get_segments() is now a generator which returns segment copies,
and it no longer handles segment content replacement.

Renderer.render() accepts a theme and a segments parameter in order to
override the default actions (calling self.get_theme() and
self.get_segments()). This is necessary to be able to cache themes and
segment contents somewhere else and provide the cached data to the
render method. The render method now also handles removing excluded
segments, which was previously handled in Theme.get_segments().

Finally, VimRenderer.render() caches all theme and segment data and
provides this data to the renderer for non-current windows.

Closes #12.
2012-12-17 13:26:38 +01:00
2012-12-14 15:23:26 +01:00
2012-12-13 15:43:49 +01:00
2012-11-26 09:17:28 +01:00
2012-12-13 15:43:38 +01:00

=========
Powerline
=========

:Author: Kim Silkebækken (kim.silkebaekken+vim@gmail.com)
:Source: https://github.com/Lokaltog/powerline

**This is alpha software, expect things to change or break at any point.**

This is the next version of Powerline, implemented in Python. It aims to 
resolve some of the "unresolvable" problems of the vimscript implementation, 
as well as providing a common code base for all projects that use Powerline 
in some way (e.g. shell prompts and tmux themes).

Some of the new features for vim are:

* **Dynamic statusline evaluation in Python.** Python performs really well 
  and allows Powerline to re-render the statusline in Python instead of 
  relying on vim's statusline flags. This means no more caching, and much 
  more flexibility.
* **Automatic removal of less important segments in small windows.** Not all 
  information is equally important to have in the statusline, and segments 
  with e.g. encoding and file format information are automatically removed 
  in smaller windows.
* **The possibility of adding more segments.** Because of vim's hardcoded 
  limitation of 80 statusline options, the vimscript implementation 
  triggered an error when adding more segments to the default theme. Since 
  segment contents are now rendered as plain text in Python it's possible to 
  add many more segments in the statusline before hitting this limit.
Description
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Readme MIT 7.4 MiB
Languages
Python 90.7%
Shell 7.1%
Vim Script 1.8%
C 0.4%