Commit Graph

49 Commits

Author SHA1 Message Date
Foo 74198f46be Version 2.1.2
- Fixed typo in arguments processing code.
2015-05-10 22:16:33 +03:00
Foo 6e0951d403 Update base version 2015-05-10 22:16:32 +03:00
Foo be45ead24e Release 2.1.1
- Added support for placing powerline on the left in qtile.
- Added qtile-1.9 support.
- Fixed tmux-2.0 support.
- Made it easier to run tests outside of travis.
- Added some missing highlight groups.
- Made it omit writing empty above lines.
- Fixed UnicodeEncodeError when running powerline-lint with non-ASCII characters
  in error messages.
- Fixed code that replaces `&statusline` value: it now is able to replace
  non-ASCII `&statusline`s as well.
2015-05-10 17:54:15 +03:00
Foo af9515f889 Update base version 2015-05-10 17:54:13 +03:00
ZyX 8164f42fb9 Release 2.1
- Added [BAR](https://github.com/LemonBoy/bar) support.
- Added support for pdb (Python debugger) prompt.
- Added more highlight groups to solarized colorscheme.
- Updated zpython bindings.
- Fixed C version of the client on non-Linux platforms.
- Fixed some errors in powerline-lint code.
- Fixed Python-2.6 incompatibilities in setup.py.
2015-02-19 02:56:51 +03:00
ZyX ceb0487fe0 Update base version 2015-02-19 02:56:44 +03:00
ZyX e233ca7a54 Fix compiling C client when using Python-2.6
`shlex.split` is inadequate when it receives Unicode strings: `u'-O3'` is split 
into a single argument that looks like `'-\x00O\x003\x00'`.
2015-02-15 01:19:06 +03:00
ZyX 99830bad49 Use PEP440-compatible versions
Fixes #1310
2015-02-15 01:04:58 +03:00
ZyX 34f53acd78 Release 2.0
Added functionality:
- Added fbterm (framebuffer terminal emulator) support.
- Added theme with unicode-7.0 symbols. (Note: most software is not ready for it
  yet, including all Python-2\* versions.)
- Added support for PyPy3.
- Compiler is now called with CFLAGS from environment in setup.py if present.
- Added support for pyuv-1.\*.
- Added a way to write error log to Vim global variable.
- `powerline` script now supports overrides from `$POWERLINE_CONFIG_OVERRIDES`,
  `$POWERLINE_THEME_OVERRIDES` environment variables, so does `powerline-config`
  script.
- `powerline` and `powerline-config` scripts now support taking paths from
  `$POWERLINE_CONFIG_PATHS`.
- `powerline-lint` is now able to report dictionaries which were merged in to
  form marked dictionary and what were the previous values of overridden values.
- Added support for Byron Rakitzis’ rc shell reimplementation.
- Added support for querying battery status on cygwin platform.

Fixes:
- Vim: made all mode strings have equal width.
- Vim: fixed intermediate Vim-7.3\* support.
- Fixed typo in battery segment implementation that made it not possible to fall
  back to next implementation if UPower is not available, but dbus is.
- Fixed libzpython overrides and modes support.
- Fixed Python-3\* support in zpython bindings.
- Fixed checking of themes located in user configuration directories in
  `powerline-lint`.
- `powerline-daemon` now allows `--foreground` argument to be used in
  conjunction with `--replace`.
- Fixed outdated tmux versions support (1.6 and 1.7).

Incompatible changes:
- Removed CtrlP support. If one wants to readd it make sure to fix problems
  listed in 4e6b0a7ec8.
- `highlight_group` key in segment description (both in configuration and in
  function output) was renamed to `highlight_groups` (note the trailing `s`).
- `attr` key in colorschemes was renamed to `attrs` key (note the trailing `s`).
- All highlight groups looking like `foo.bar` were renamed to `foo:bar`: dot in
  highlight group names is no longer allowed.
- `detect` argument value was renamed to `auto` in network segments.
- `$POWERLINE_COMMAND` is now a single path to one executable. No arguments to
  the executable are allowed inside `$POWERLINE_COMMAND`. Overrides using
  argument to `$POWERLINE_COMMAND` are now deprecated.
- In place of overrides being part of `$POWERLINE_COMMAND` variable all shell
  and tmux bindings now support overrides from `$POWERLINE_CONFIG_OVERRIDES` and
  `$POWERLINE_THEME_OVERRIDES` environment variables.
- In place of config paths specified as a part of `$POWERLINE_COMMAND` variable
  paths are now taken from `$POWERLINE_CONFIG_PATHS` environment variable.
- `$POWERLINE_CONFIG` was replaced with `$POWERLINE_CONFIG_OVERRIDES` for
  zpython bindings when talking about overrides.
- `$POWERLINE_THEME_CONFIG` was renamed to `$POWERLINE_THEME_OVERRIDES` in
  zpython bindings.
- `$POWERLINE_CONFIG` was replaced with `$POWERLINE_CONFIG_COMMAND` in all shell
  bindings when talking about path to `powerline-config` executable.
- In Vim in place of `g:powerline_theme_overrides__{theme_name}` per-theme
  dictionaries `g:powerline_theme_overrides` dictionary should be used. Theme
  names in this case are top-level keys in the new dictionary.
- In IPython configuration paths list can be specified via `config_paths`
  option, not via `paths` option.
- Some long options that defined overrides were renamed:
  - `--theme_option` was renamed to `--theme-override`.
  - `--config` was renamed to `--config-override`.
  Note that these options are deprecated and shall be used for testing purposes
  only.
- All long options that used to have underscore in them are now using
  HYPHEN-MINUS instead. I.e.
  - `--config_path` was renamed to `--config-path`.
  - `--last_pipe_status` was renamed to `--last-pipe-status`.
  - `--renderer_arg` was renamed to `--renderer-arg`.
  - `--theme_option` was renamed to `--theme-override`.
  Short options were not touched.
- All segments from `powerline.segments.common` were removed. Now they live in
  `powerline.segments.common` submodules: e.g.
  `powerline.segments.common.weather` is now
  `powerline.segments.common.wthr.weather`. List of available segments can be
  found in documentation, section [Common segments][common-segments].
- Segments `powerline.segments.common.now_playing` and
  `powerline.segments.common.players.now_playing` were removed. In place of them
  all players should be accessed via their own segments. List of segments is
  available in [Media players][media-players].

[common-segments]: http://powerline.readthedocs.org/en/master/configuration/segments/common.html
[media-players]: http://powerline.readthedocs.org/en/master/configuration/segments/common.html#module-powerline.segments.common.players
2015-01-18 17:22:01 +03:00
Andreas Schneider e373b36d00 setup: Honor CFLAGS set as environment variable
Distributions normally have their preferred set of CFLAGS so the
binaries are optimized and include debug symbols to create a debuginfo
package. For this we need to be able to set the CFLAGS via the
commandline and the setup.py should forward them to the compiler.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-10 16:16:46 +01:00
ZyX db5d87f9e3 Update various URLs: powerline has moved to github.com/powerline 2014-12-07 16:08:24 +03:00
ZyX 6eaa640577 Release 1.3.1
- Fixed Command-T finder labels: now `CommandT::` and  `Finder::` parts are
  removed because all finders were moved to `CommandT::Finder` module in place
  of just `CommandT`.
- Fixed dbus players support: it is now OK not to have album title.
- Characters that form the surrogate pair that represents some character above
  U+10000 in UCS-2 Python builds are no longer considered non-printable.
- Added support for calculating lengths of the characters above U+10000 in UCS-2
  Python builds.
- Made linter support characters above U+10000 if they are represented as
  a `\uXXXX\uXXXX` surrogate pair in JSON.
- Made linter validate that all characters in some strings are printable.
- Made `powerline-daemon` work in FreeBSD: only use abstract socket namespace on
  linux systems.
- Fixed `string` and `safe_unicode` functions in Python-3.
2014-12-06 16:03:08 +03:00
ZyX 5154dcb6d7 Release 1.3
- Added support for Command-T plugin statusline.
- Added support for csv files (displays current column and column header if
  applicable).
- Added support for capslock plugin.
- Added support for `ZLE_RPROMPT_INDENT` in zsh bindings.
- Made tmux bindings respect powerline configuration (powerline colorschemes and
  left dividers configuration).
- Made tagbar segment use caching.
- Fixed build in case no C compiler was found.
- Fixed old Vims support.
- Fixed non-unicode directories support in non-zpython shell bindings when using
  Python-2.
- Fixed tcsh prompt escaping: also escapes the bang.
- Various improvements useful for debugging.
- Improved style of help messages.
- Added manual pages.
2014-11-30 03:59:05 +03:00
ZyX eb0b1986d1 Fix location of the which function 2014-10-27 08:11:07 +03:00
ZyX 4a689ad648 Strip trailing newline returned by rev-parse 2014-10-25 13:06:46 +04:00
ZyX 2106be4066 Save git hex revision in powerline version string if possible
Only useful for `pip install git+git://` or `pip install /some/directory` 
installations (note: commands come without `--editable`/`-e`).
2014-10-19 00:05:51 +04:00
ZyX 39dda39bdc Release 1.2
Changes:
- When guessing used network interface for internal_ip segment the priority of
  various VM bridge interfaces was lowered.
- Added `ignore_statuses` option that makes one able to prevent certain
  repository statutes (e.g. `"U"`: only modification is unknown files) from
  marking repository as dirty.
- Refactored `powerline.segments.common.players` module: deprecated
  `now_playing` segment, replacing it with segments with names identical to
  player names (e.g. `powerline.segments.common.players.mpd`). `now_playing`
  segment will continue to work until powerline-2.0 though.
- Fixed `powerline.segments.tmux.attached_clients` segment: it was not working
  at all due to missing argument in one function call.
- Fixed regular expression used to detect NERDTree buffers.
2014-10-12 17:15:15 +04:00
ZyX 7aafbf0e3b Release 1.1
Changes:

- Deprecated `powerline.segments.common`, moved all segments into deeply nested
  modules (e.g. `powerline.segments.common.vcs`).
- Added support for different tag formats provided by tagbar plugin.
- Improved non-unicode locales handling.
- Improved non-unicode filenames handling.
- Improved Vim troubleshooting: it now runs powerline-lint automatically.
- Fixed weather segment: it was remembering its argument from the first run and
  never allowed to change it.
- Fixed Uv watcher: it raised an exception for nonexistent files.
- Fixed zsh named directories handling when AUTO_NAME_DIRS option is set.
- Fixed --config_path handling when using daemon: in some cases it was
  remembered once and never changed.
- Fixed Vim overrides when Vim is using Python-3*.
- Fixed Uv watcher on Python-3*: it used os.path.walk which was removed.
- Refactored and documented powerline.lint.
2014-09-21 16:11:26 +04:00
ZyX 77b0695caf Replace all ASCII ' with Unicode ’ in comments and docstrings 2014-09-20 17:48:15 +04:00
ZyX 429b52f2ba Initial release: version 1.0
Current features include:

- Application support: vim, ipython, awesome, qtile, i3, tmux, zsh, fish, tcsh,
  bash and some other shells.
- Powerline daemon that makes tmux and shell bindings work faster.
- Automatic statusline shrinking.
- Segments:
  - Branch and file status segments support for git, mercurial and bazaar
    version control systems.
  - Battery support for linux (dbus and /sys/class/power_supply), OS X and
    Windows platforms.
  - Player support: CMUS, MPD, Spotify, Clementine, Rhythmobox, RDIO.
  - Support for displaying weather.
  - Current directory display in shells, including zsh named directories
    support.
  - Vim plugins support: Ctrl-P, Gundo, NerdTree, Syntastic, TagBar.
  - A huge number of other segments.
- Automatic configuration reloading.
- Merging configuration from various locations.
- Filesystem watchers for configuration reloading and VCS segments:
  - INotify-based watcher.
  - LibUv-based watcher.
  - Stat-based watcher (only files).
2014-09-05 22:46:39 +04:00
ZyX c0459dbebe Rename `beta` version to `dev` 2014-09-05 20:27:52 +04:00
ZyX 2a515b7849 Use PyPI name in setup.py 2014-09-04 08:46:29 +04:00
ZyX 2a73f031a0 Add download_url, license and classifiers to setup.py 2014-09-04 08:46:03 +04:00
ZyX 06211cbe63 Unify imports
Now imports follow the following structure:

1. __future__ line: exactly one line allowed:

        from __future__ import (unicode_literals, division, absolute_import, print_function)

   (powerline.shell is the only exception due to problems with argparse).
2. Standard python library imports in a form `import X`.
3. Standard python library imports in a form `from X import Y`.
4. and 5. 2. and 3. for third-party (non-python and non-powerline imports).
6. 3. for powerline non-test imports.
7. and 8. 2. and 3. for powerline testing module imports.

Each list entry is separated by exactly one newline from another import. If
there is module docstring it goes between `# vim:` comment and `__future__`
import. So the structure containing all items is the following:

    #!/usr/bin/env python
    # vim:fileencoding=utf-8:noet

    '''Powerline super module'''

    import sys

    from argparse import ArgumentParser

    import psutil

    from colormath.color_diff import delta_e_cie2000

    from powerline.lib.unicode import u

    import tests.vim as vim_module

    from tests import TestCase

.
2014-09-01 00:25:24 +04:00
Kim Silkebækken 151b3f1117 Use readthedocs theme for docs 2014-08-02 22:46:37 +04:00
ZyX 925d3eb0e4 Show exception in setup.py and try to fall back to powerline.sh 2014-08-02 21:31:00 +04:00
ZyX 21ee641a02 Do not use scripts=[] to install powerline at all. 2014-08-02 18:53:24 +04:00
ZyX c1d290b570 Use data_files on python-3 2014-08-02 18:45:43 +04:00
Kim Silkebækken a122e73b9b Add files from @kovidgoyal's powerline-daemon repo
Minor changes have been applied:

- Removed copyright info and GPL 3 license since Powerline is MIT (needs
  confirmation from kovidgoyal before merge)
- The `powerline-client` script is renamed to `powerline`, and calls the
  daemon or `powerline-render` (the previous `powerline`) to render
  a statusline
- Minor coding style corrections to match the rest of the project
- Python 3 support is removed for now due to setuptools failing with
  binary scripts

Todo:

- Automatically attempt to launch powerline-daemon the first time
  powerline is run if the daemon isn't already running?
- pip install -e fails with binary files (it appears that pip recodes
  the powerline binary to ASCII, the compiled powerline script must be
  copied manually to ~/.local/bin after pip install -e has been run)
2014-08-02 18:45:18 +04:00
ZyX 7b1d7bbb9e Use scripts/powerline-config to source tmux configuration
Ref #872
2014-05-24 13:45:21 +04:00
Kim Silkebækken f107494d84 Make author name ASCII 2013-08-20 13:07:56 +02:00
Kovid Goyal d1cdf860d1 Fix #604 2013-07-20 18:44:18 +05:30
ZyX 27c9a05782 Change indentation of closing }, ], ) and combinations of them 2013-03-25 19:04:18 +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
ZyX a6d48232b0 Add python_test, more exclusions
Fixes #289
2013-03-11 15:53:32 +01: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
ZyX aa0a8bf76d Make tests support python2.6
Old unittest is not working for unknown reason, using unittest2 instead
2013-03-03 21:03:40 +01:00
ZyX 584755765b Start adding tests
Tests are temporary disabled on all branches except tests (does not really work
though, needs travis.yml in all branches).
2013-03-03 21:03:19 +01:00
Kim Silkebækken 282cb43eef Fix various minor formatting issues
Closes #242.
2013-02-20 13:47:54 +01:00
Kim Silkebækken b99e9cb074 Revert "Make 'powerline' a namespace package"
This reverts commit 57bd0af272.
2013-02-04 13:04:17 +01:00
Kim Silkebækken 57bd0af272 Make 'powerline' a namespace package
This will allow third-party plugins to use the 'powerline' namespace for
contributed segments.

Refs #3.
2013-02-03 16:27:30 +01:00
Kim Silkebækken 091400c84f Join tmux/prompt shell scripts into one common script 2013-01-28 07:16:55 +01:00
Kim Silkebækken 85331710bf Remove unneeded extras dependency 2013-01-21 21:02:36 +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 fd94c7c0ba Install tmux/prompt files as scripts 2013-01-17 09:25:56 +01:00
Kim Silkebækken 6d3dea1f0b Cleanup Python files to comply better with PEP 8
Removed excessive newlines and comments, and fixed whitespace issues.
2013-01-15 08:57:38 +01:00
Kim Silkebækken 9ba8570bf7 Update documentation and version 2012-12-17 15:24:42 +01:00
Kim Silkebækken 82b52094a3 Add setup.py 2012-12-13 15:43:38 +01:00