Commit Graph

1172 Commits

Author SHA1 Message Date
Kim Silkebækken 9fd64f2dec Merge remote-tracking branch 'kovidgoyal/fix-unicode-in-setup' into develop 2013-07-31 08:03:45 +02:00
Kovid Goyal d1cdf860d1 Fix #604 2013-07-20 18:44:18 +05:30
Kovid Goyal d66806e506 Fix latest psutil breaking network segment 2013-07-14 15:04:34 +05:30
Trevor Murphy 24cda1d947 Add a battery info segment.
Default colors range from red (full battery) to white (no battery) but can be changed via the
`battery' and `battery_gradient' settings.

Default presentation is a formatted percentage string (with keyword `batt').  The `gamify' setting
changes this to a sequence of video game hearts.

Number of steps from 100% to 0% / number of video game heart icons is controlled by the `steps'
setting (default 5).
2013-07-13 22:44:38 -04:00
Ian Yang 82842e015c Set different window name foreground based on activity and bell status. 2013-07-09 09:32:01 +08:00
Kovid Goyal 52c6bff67f Dont log inotify missing error when using branch coloring
The error message about inotify being missing when branch coloring is
enabled was being logged for every directory and for every invocation
of powerline in a shell, without powerline-daemon. Dont log it, since
the log is printed to stderr when using powerline in a shell without
powerline-daemon. Also improve the error message on OS X. Fixes #578
2013-07-03 09:40:05 +05:30
Manuel Mendez 2be3059ebd arch: update pkgrel to 2. 2013-07-02 08:52:22 -04:00
Manuel Mendez 4083cf4cc0 arch: break package() into separate packages. 2013-07-02 08:52:18 -04:00
Manuel Mendez 01560ae714 arch: add fontpatcher to archlinux/python-powerline. 2013-07-02 08:44:12 -04:00
Manuel Mendez ffb29d60d8 arch: add fontpatcher to archlinux/python2-powerline. 2013-07-02 08:43:37 -04:00
Manuel Mendez 79e7640bba arch: add provides=('powerline') to PKGBUILDs. 2013-07-02 08:41:05 -04:00
Sam Stuewe b0c5c05924 Clean up package function for python3
``|| return 1`` is very old syntax and is no longer needed. And, the ``install`` command can handle directory creation and file installation in the same command which cuts a great deal of unnecessary commands out.

Also, remember, ``msg2`` in the package function will be printed during the making of the package, not during the installation. Thus, instead of ``msg2`` (as they really serve only as documentation), comments should be preferred.
2013-06-28 10:48:01 -05:00
Sam Stuewe 1970d0787c Clean up package function for python2
The "|| return 1" is very old syntax and is no longer needed. And, the ``install`` command can handle directory creation and file installation in the same command which cuts a great deal of unnecessary commands out.

Also, remember, msg2s in the package function will be printed during the making of the package, not during the installation. Thus, instead of msg2s (as this really would serve only as documentation), comments should be preferred.
2013-06-28 10:43:12 -05:00
Kim Silkebækken c1ae7f3598 Merge remote-tracking branch 'zyx-i/fix-516' into develop 2013-06-28 14:26:33 +02:00
Kim Silkebækken 67dff293b8 Merge branch 'feature/update-archlinux-packages' into develop 2013-06-28 14:15:07 +02:00
Kim Silkebækken 8d9fa13797 Update Arch Linux packages to use updated VCS syntax
Closes #479
2013-06-28 14:14:37 +02:00
Kim Silkebækken 4ee5072c6d Merge branch 'fix/docs-fontpatcher-path' into develop 2013-06-28 13:55:37 +02:00
mwcz 17435ecf90 Fix documented path to fontpatcher.py 2013-06-28 13:55:28 +02:00
Kim Silkebækken 5dd095a846 Merge remote-tracking branch 'michaelbeaumont/fix/issue-543' into develop 2013-06-28 13:54:03 +02:00
Kim Silkebækken f00f1ace4d Merge branch 'feature/git-improve-detached-head' into develop 2013-06-28 13:50:41 +02:00
Jack Zhou 72b082a510 Change [DETACHED HEAD] message to a short hash of the detached head. 2013-06-28 13:49:45 +02:00
Kim Silkebækken afe415a398 Merge remote-tracking branch 'kovidgoyal/fix-482' into develop
Conflicts:
	powerline/lib/vcs/git.py
2013-06-28 13:47:25 +02:00
Kim Silkebækken fc6d85219f Merge remote-tracking branch 'zyx-i/fix-567' into develop 2013-06-28 13:37:50 +02:00
Kim Silkebækken bb6c959313 Merge remote-tracking branch 'zyx-i/powerline-list-expanduser' into develop 2013-06-28 13:36:38 +02:00
Kim Silkebækken 13e0c8992d Merge remote-tracking branch 'zyx-i/fix-545' into develop 2013-06-28 13:36:11 +02:00
ZyX 3cf04f3aab Support low values of line2byte
Fixes #567
2013-06-27 19:24:28 +04:00
ZyX 5ccf8d2cb4 Support ~/ directories in powerline-lint 2013-06-22 20:30:53 +04:00
ZyX a85d9017fd In place of failure create new window ID in case of duplicate ID
Fixes #545
Fixes #537
2013-06-22 19:32:56 +04:00
ZyX 987376aecb Fix tests 2013-06-22 19:14:07 +04:00
ZyX 79b842ec9b Remove uneeded code 2013-06-22 19:12:57 +04:00
ZyX 31c86486fe Disable vim.bindeval support for vim_getwar for old vim versions 2013-06-22 19:00:56 +04:00
Kovid Goyal a03035dd0d Remove obsolete comment 2013-06-14 13:45:13 +05:30
Kovid Goyal 14bec211aa Various performance improvements for the vcs backend
1) Fix a bug where watching a directory would also report the directory
as changed if any files inside it were changed. This would causes
excessive polling by the branch segment

2) Fix a bug where the watch for the repo dir in the branch segment
was being continually recreated, again causing excessive polling. This
was particularly noticeable with the patch to fix fugitive file status
updates.

3) Improve the performance of branch coloring for git repos by ignoring
change events for the index.lock file. This file is created/deleted
every time git access the index and would cause the entire working tree
status to be re-queried every time.
2013-06-14 13:40:17 +05:30
michaelbeaumont 8de2a9abf9 Fix infinite add_watches loop with symbolic links
Added a check to ensure that add_watches doesn't run on the same folder over and over again. This occurs at least when circular symbolic links are present.

Fix #543
2013-06-12 11:09:50 +02:00
Kim Silkebækken 2758c349db Revert "Fix committing with fugitive => stuck file status"
This reverts commit 0435d44984.

The commit introduces a huge performance penalty and is removed for now.
2013-06-10 11:53:40 +02:00
Hoang Xuan Phu 441f17464c detect script directory to make bash and zsh usable without having `powerline` in `$PATH` 2013-06-04 21:40:19 +07:00
Kim Silkebækken 540b076aa0 Merge remote-tracking branch 'kovidgoyal/fix-482' into develop 2013-06-02 15:43:26 +02:00
Kovid Goyal 0435d44984 Fix committing with fugitive => stuck file status
Fixes #482 (I hope)
2013-05-30 07:29:04 +05:30
Kim Silkebækken 669327df0d Merge remote-tracking branch 'kovidgoyal/fix-417' into develop 2013-05-27 13:40:34 +02:00
Kim Silkebækken 291832d707 Merge remote-tracking branch 'zyx-i/auto-use-powerline-client' into develop 2013-05-27 13:40:27 +02:00
ZyX baa44475e5 Add note about POWERLINE_COMMAND to documentation 2013-05-24 07:21:40 +04:00
ZyX 374da15667 Use eval in tmux/powerline.conf
fish does not support variables used as commands
2013-05-24 07:18:03 +04:00
ZyX 884a8b0d78 Use powerline-client if possible 2013-05-24 06:25:48 +04:00
ZyX 5bb32fadce Use fallback logger if normal one is not available 2013-05-23 19:03:40 +04:00
ZyX d882d312fc Fix Powerline.exception 2013-05-23 18:55:09 +04:00
ZyX 1977a0125c Remove cache before running self.exception, not after 2013-05-23 18:54:56 +04:00
ZyX 82e2ea10c4 Replace self.pl.exception with self.exception
New function is checking for self.pl being set before using logger and also
removes the need of specifying explicit prefix="powerline".

Conflicts:
	powerline/__init__.py
2013-05-23 18:54:06 +04:00
ZyX 201175d368 Pop path from self.loaded on exception 2013-05-23 18:52:22 +04:00
ZyX f389c43e43 Use `try/except KeyError` in place of `if in dict/else` 2013-05-23 18:52:12 +04:00
ZyX 716f7617c4 Return exception string in place of throwing an exception
Big bunch of `AttributeError`s when renderer failed to be created that renders
vim unusable in case of some of the errors (e.g. invalid configuration) is
annoying.

Conflicts:
	powerline/__init__.py
2013-05-23 18:51:45 +04:00