Commit Graph

102 Commits

Author SHA1 Message Date
ZyX baa44475e5 Add note about POWERLINE_COMMAND to documentation 2013-05-24 07:21:40 +04:00
ZyX 658232a1aa Update documentation 2013-05-19 13:17:58 +04:00
ZyX 2a6a4a07e6 Replace {path} with {repository_root}
Closes #429
2013-04-16 07:58:24 +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 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 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 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 0a8e7c0e1e Add a note about vim-addon-manager 2013-04-06 17:16:55 +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
Kim Silkebækken bc7c5b784d Merge branch 'update-docs' into develop
TODO:

* Add info about code layout, debugging tips, etc.
* Add "developing powerline" section to docs (not contributing document)

Ref #287
2013-03-25 13:55:31 +01:00
ZyX 1351207462 Some fixes for flake8 2013-03-24 19:59:56 +04:00
ZyX ed435f8063 Add required pl argument to segments
Fixes #340
Ref #330
2013-03-24 19:44:01 +04:00
ZyX a021916428 Make update_first configurable 2013-03-24 19:35:25 +04:00
ZyX 674a211cda Remove escape sequences from default strings in documentation
Note: to properly view some values in browser you need the browser to use 
patched font or fontconfig. Though there is not much difference between some 
cryptic escape sequence and singe wrongly displayed character.
2013-03-17 22:26:57 +04:00
ZyX 34fba2286a Fix documentation for wrapped functions 2013-03-17 22:07:27 +04:00
ZyX 19b45e609a Fix documentation for threaded segments 2013-03-17 22:06:52 +04:00
Kim Silkebækken d966921f04 Remove contibuting info from docs 2013-03-15 15:23:45 +01:00
Kim Silkebækken c4e618e17c Update authors and contributors list 2013-03-15 14:35:08 +01: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
Kim Silkebækken 111eaa27e8 Combine vim modelines and Python encoding declarations
Ref #314
2013-03-11 10:40:09 +01:00
Kim Silkebækken 6748701fcb Add vim modelines to all Python files
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.

Ref #314
2013-03-11 08:11:25 +01:00
Kim Silkebækken 162f5ac55b Change license from CC BY-SA to the MIT license
Refs #299.
2013-03-08 17:58:06 +01:00
Kim Silkebækken cb87cfbe0f Update credits and PR guidelines 2013-03-03 22:11:39 +01:00
ZyX 47cfde0ecc Add support for python-2.6 2013-03-03 21:03:17 +01:00
ZyX 307dfd7212 Improve documentation 2013-03-03 21:03:05 +01:00
ZyX a8ccfd4350 Add ambiwidth problems information to troubleshooting section 2013-02-26 21:17:25 +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 b347d53b6d Remove obsolete Vundle warning from docs 2013-02-20 14:07:26 +01:00
Kim Silkebækken ea56f4c26b Split optional dependencies to python packages and other apps
Closes #227.
2013-02-18 19:40:32 +01:00
ZyX baaf6cde1d Switch from `status` + `ls-files` to `status --ignored` 2013-02-18 09:07:51 +01:00
ZyX c45747a3b8 Ease E858/E860 errors debugging
E858: Eval did not return a valid python object
E860: Eval did not return a valid python 3 object
2013-02-15 21:06:08 +04:00
Kim Silkebækken 2caa136f26 Add docs for all segments 2013-02-08 17:35:15 +01:00
Kim Silkebækken 55ad48f0e6 Update sphinx configuration 2013-02-08 17:32:23 +01:00
ZyX 5399265135 Add note about zpython branch
TODO: To be removed after (if) zsh maintainers accept the patch.

Refs #104.
2013-02-08 14:43:32 +01:00
Kim Silkebækken 4e4a2b2ef8 Add tips & tricks to the docs
Closes #182.
2013-02-07 12:32:34 +01:00
Kim Silkebækken 8b8de32be9 Improve vim plugin loading
Several of the plugin loading methods have been joined into one plugin
file that will be loaded by updating the runtimepath. More informative
error messages will be displayed if Python support is missing or if the
module import fails.

Note that this commit will break existing plugin loading, the new
method with updating the runtimepath will be required.

Closes #156.
Closes #181.
2013-02-07 12:14:15 +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 597f67b85a Add Qtile widget 2013-01-30 10:35:01 +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 bda7384aa7 Add Awesome WM widget 2013-01-28 12:30:11 +01:00
ZyX 0b251425da Add IPython prompt support 2013-01-28 06:35:56 +01:00
Kim Silkebækken c06f8836b3 Update docs and create a common terminal feature support matrix 2013-01-25 10:48:44 +01:00