Commit Graph

23 Commits

Author SHA1 Message Date
ZyX 4d1dc0658b Remove unexistent kwargs 2013-04-01 00:01:51 +04:00
ZyX 3ebc16a48c Replace pl.environ/getcwd/home with segment_info 2013-03-30 21:55:00 +04:00
ZyX 80ddbfbf9a Split Powerline.__init__ into __init__ and create_renderer
Target: with long-living Powerline objects periodically reload configuration 
recreating renderer. Use file watchers to watch for configuration. Configuration 
should be able to be safely reloaded in non-blocking mode in a separate thread 
up to the time when it comes to recreating renderer.

This commit does not add anything that actually reloads the configuration, 
multiple runs of .create_renderer were not tested.
2013-03-25 18:24:16 +04:00
ZyX 7370876c35 Make scripts/powerline use os.environ['PWD'] for .getcwd() if present
Closes #330
2013-03-24 19:49:54 +04:00
ZyX b1f9edab4c Remove get_segment_info and passing segment_info through globals 2013-03-24 05:23:33 +04:00
ZyX b0495d028f Do not let daemon threads be stopped while being updated 2013-03-18 07:56:25 +04:00
ZyX d27f7a0411 Add most configuration checks
Changes:

- Add main configuration, colors.json, almost full themes and colorschemes
  checks
- Make powerline.lint.check return whether it had problems
- Make powerline-lint fail if .check reported problems
- Make tests run powerline-lint
- Add the script to the list of the installed scripts

Fixes #278
2013-03-11 19:17:18 +04:00
Kim Silkebækken 40fe38f641 Move argparser to powerline.shell so it can be re-used 2013-03-11 07:52:24 +01:00
Foo 43d9639534 Fix zsh/zpython issue 2013-02-24 22:23:43 +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 d12299c18c Add a way to specify renderer options on command-line, added tmux_escape
Note: tmux escaping does not fix things, on my system it produces
![Gap between ... and directory name](http://img-fotki.yandex.ru/get/6439/9151298.2/0_93b4c_5d9a317f_orig.png)
Fixes #199
2013-02-11 07:15:46 +01:00
Kim Silkebækken 29793259e1 Improve argument handling in powerline script
Modules can now be any string, and an informative error message will be
written to sys.stdout if the module doesn't exist. The
`last_pipe_status` argument will also automatically be split into
a list.
2013-01-28 17:29:02 +01:00
Kim Silkebækken 7a1d7ecaf4 Add width argument to shell script 2013-01-28 07:40:42 +01:00
Kim Silkebækken 091400c84f Join tmux/prompt shell scripts into one common script 2013-01-28 07:16:55 +01:00
ZyX 17639a9e25 Add last_status and last_pipe_status segments 2013-01-28 06:52:10 +01:00
Kim Silkebækken f175a6babb Fix issue with $pipestatus
$pipestatus is a space-separated int list and not a single int.
2013-01-22 16:45:31 +01:00
Kim Silkebækken 30f98f6dc2 Add exit code/pipe status args in powerline-prompt
Refs #90.
2013-01-22 13:22:35 +01:00
Kim Silkebækken f800872c9e Default to no mode in renderer.render() method 2013-01-22 09:06:30 +01:00
Kim Silkebækken 2b0c01482b Improve side handling in prompt/tmux scripts 2013-01-22 09:04:57 +01:00
Kim Silkebækken 3ee6e55025 Handle Py2/3 Unicode differences when writing to stdout
Closes #94.
2013-01-22 08:05:37 +01:00
Kim Silkebækken bee427eb42 Add Python 3.3 support
Support for unicode literals was reintroduced in Python 3.3 which makes
supporting both Python 2 and Python 3 much easier, so this will be the
minimum supported Python 3 version.

Closes #8.
2013-01-21 20:42:57 +01:00
Kim Silkebækken fcb07943eb Allow side, extension and renderer module to be specified in powerline-prompt
Refs #84.
2013-01-21 10:51:19 +01:00
Kim Silkebækken fd94c7c0ba Install tmux/prompt files as scripts 2013-01-17 09:25:56 +01:00