33 Commits

Author SHA1 Message Date
Aaron Schrab
0ffe6da4e6 Option to suppress error in python-less vim
If the g:powerline_no_python_error variable is set don't issue an error
message even if vim doesn't have the required Python support.  This
allows a common set of configuration files to be used across systems
where some of the copies of vim don't meet the requirements.
2013-08-20 09:33:32 -04:00
ZyX
baa44475e5 Add note about POWERLINE_COMMAND to documentation 2013-05-24 07:21:40 +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
d1d05c9dcf Add support for reloading configuration in the main thread 2013-04-06 18:09:45 +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
66beaaaa9d Replace draw_soft_divider setting with draw_inner_divider
If weather or system_load segments were moved to the left draw_soft_divider
variant resulted in incorrect renderring. Thus it was replaced by
draw_inner_divider.
2013-04-02 17:22:55 +04:00
ZyX
f15cdd9413 Replace draw_divider setting with draw_(soft|hard)_divider
Previous variant was bad because
1. draw_divider only applied to soft dividers. Hard dividers were always drawn
2. But there was a hack with width=auto segments: for this segments draw_divider 
   setting applied always.

Now there are no additional dependencies: draw_*_divider applies no matter what 
other properties of the segment are.
2013-04-02 17:21:22 +04:00
ZyX
ed435f8063 Add required pl argument to segments
Fixes #340
Ref #330
2013-03-24 19:44:01 +04:00
ZyX
6f3703e312 Improve ambiwidth handling, readd additional_escapes
Fixes #307
2013-03-12 13:11:59 +01:00
ZyX
ae62aee529 Renamed term_24bit_colors to term_truecolor 2013-03-11 19:11:10 +04:00
ZyX
307dfd7212 Improve documentation 2013-03-03 21:03:05 +01:00
Foo
43d9639534 Fix zsh/zpython issue 2013-02-24 22:23:43 +01:00
ZyX
f319ddc33b Ignore highlight definitions for function segments
Also removed divider_highlight_group from configuration: it is actually used
only in function segments.

Fixes #215
2013-02-24 22:22:48 +01:00
ZyX
01b34a7893 Split colorschemes and add better gradient support
- Splitted colorschemes into colors definitions file (TODO: remove non-colors
  definitions like weather_condition_hot and base00) and actual colorscheme.
- Removed dictionary containing groups definitions for all groups for all modes,
  now colorscheme is queried for this each time.
- Moved determination of colors from theme to renderer.
- Added gradients definitions (actually, only one) to new colors file.
- Made line_percent with gradient=True use new gradients.
2013-02-24 22:22:31 +01:00
ZyX
f211bb6c74 Add ability to override configuration options
Related changes:
- Moved all non-ASCII symbols into `segment_data`
- Added --config_path, replaced nargs='*' with better action='append'
- Added g:powerline_config_path vim option
- Added ipython overrides (via additional arguments to setup() or c.Powerline)

TODO: support for non-string scalars in vim overrides.

Fixes #231
2013-02-24 22:22:13 +01:00
ZyX
c86b047ed4 Add ability to specify some segment keys once in top theme 2013-02-24 22:22:10 +01:00
Kim Silkebækken
bfdb7f8028 Refactor segment rendering
This commit introduces the following changes to themes and segment
rendering:

- Spacer segments are now regular string/function type segments with
  "width": "auto" in the themes.
- The "rjust"/"ljust" properties have been replaced by the "width"
  option combined with a new "align" option.
- Renderer._render_segments() is now a generator which renders each
  segment separately, and assigns the rendered contents to
  "_rendered_hl" and "_rendered_raw" in the segment dict.
- Renderer.render() returns the segments by joining the "_rendered_hl"
  values for each segment.
- Spacer segment widths are calculated in the render() method, and
  assigned to "_space_left" and "_space_right" in the segment dict.
  These spaces are then applied in Renderer._render_segments().
- All space characters are converted to no-break spaces (U+00A0) in the
  "_rendered_hl" property.

Refs #113.
Refs #154.
2013-02-01 16:22:08 +01:00
Kim Silkebækken
a3600158de Add a quick setup guide to the docs 2013-01-28 13:55:45 +01:00
Kim Silkebækken
c06f8836b3 Update docs and create a common terminal feature support matrix 2013-01-25 10:48:44 +01:00
Kim Silkebækken
16b82cf070 Add configuration option and docs for 24-bit terminal colors
Closes #81.
2013-01-25 10:08:12 +01:00
Kim Silkebækken
cfe96ff010 Fix minor doc issues 2013-01-25 09:40:07 +01:00
Kim Silkebækken
e49f760510 Use hex strings for RGB colors in colorschemes
Previously you'd have to convert a hex number to an integer, this change
makes it possible to use a hex string instead which is much more useful.
2013-01-25 09:37:03 +01:00
Kim Silkebækken
b86f79cf9e Restructure docs slightly
The header levels have been switched to correspond more with the Sphinx
suggested standards and the troubleshooting section has been
restructured to make it easier to find solutions. Minor markup changes
and other changes are also included in this commit.
2013-01-23 10:24:07 +01:00
Kim Silkebækken
424f979136 Make it possible to return several segment in segment functions
This requires a couple of minor changes to custom segments. The segment
`highlight` key has been renamed to `highlight_group`, and segment
functions must return a list of segments dicts instead of just a dict.

Closes #88.
2013-01-22 10:58:41 +01:00
Kim Silkebækken
84edefbe2e Update docs with new module paths 2013-01-20 19:48:56 +01:00
ZyX
f1976c2022 Update docs
- Added notes about where common and extension-specific configuration is located
- Added common.paths config.json option description
- Fixed user-defined segments location found in segments section
- Fixed Themes/segments/module reference text
2013-01-20 19:39:59 +01:00
ZyX
78e54e0c84 Addd “default_module” theme key support
Refs #3.
2013-01-19 16:55:39 +01:00
Kim Silkebækken
b7ff63ccc0 Separate colorschemes by extension
Refs #45.
2013-01-16 08:44:17 +01:00
Kim Silkebækken
9f60daaf78 Use :file: for file references in the docs 2012-12-20 16:20:56 +01:00
Kim Silkebækken
9cc1233307 Add configuration docs 2012-12-20 15:47:01 +01:00
Kim Silkebækken
50fa8a33ca Update docs and README 2012-12-19 14:46:14 +01:00
Kim Silkebækken
9ba8570bf7 Update documentation and version 2012-12-17 15:24:42 +01:00
Kim Silkebækken
f3a03aa26a Update docs structure for gh-pages 2012-12-14 15:16:38 +01:00