Commit Graph

1341 Commits

Author SHA1 Message Date
Austin Beam 59b090e836 tmux: Colorize the last active window FG
Use a feature of tmux v1.8+ to change the FG color of the last active
window to blue. This uses the foo-{attr,bg,fg} format, which is
deprecated (although still available) starting with tmux v1.9 in favor
of the corresponding foo-style variable. However, tmux v1.9 is not yet
ubiquitous enough to move to the foo-style variables. For example, the
latest Ubuntu LTS (14.04) only has tmux v1.8 available in its
repositories, so the foo-{attr,bg,fg} variables prove to be more
'compatible' for now.

For future reference, here is the modification that should be made once
tmux v1.8 is deemed old enough to drop support for (or whenever the
deprecated foo-{attr,bg,fg} variables go away in the latest version of
tmux):

-set -g window-status-last-fg colour31
+set -g window-status-last-style fg=colour31

It might be appropriate to add version checking around some of these
types of options for maximum compatibility, but my initial attempt to
explore version checking in the tmux config file got extremely messy in
a hurry.
2014-05-01 10:27:54 -05:00
Austin Beam 4d85e9a9bc tmux: Change session block color if prefix pressed
This modification to the tmux powerline binding allows the user to
easily identify when the prefix has been sent. When the prefix has
been sent, the session block changes from white to blue (matching the
color of the active window). This is accomplished using the conditional
functionality of tmux format strings and the 'client_prefix' format
variable. Unfortunately, the tmux parser fails to properly parse out
comma-separated format strings inside a format conditional, so those
have been split out into individual segments as well. Attempting to
re-combine the formats inside the conditionals will break this feature.
2014-05-01 00:34:44 -05:00
ZyX fa502281f3 Merge branch 'fix-git_directory' into HEAD 2014-04-23 06:42:46 +04:00
ZyX c603410843 Do not use .strip(), add two check git has 2014-04-23 06:36:24 +04:00
ZyX ba45a002dc Decode bytes before using os.path.join
Otherwise it will raise TypeError when trying to join str() and bytes() instance 
in python-3.3.

Fixes #654
Closes #655
2014-04-23 06:31:42 +04:00
ZyX-I c100c90b08 Merge pull request #855 from afflux/feature/fix-zsh-mode-display
fix default mode display in zsh bindings
2014-04-05 03:53:37 +04:00
Kjell Braden 96d89ae81b fix default mode in zsh bindings 2014-04-04 13:11:37 +02:00
ZyX b856fa5a82 Merge branch 'fix-no-clients-error' into develop 2014-03-28 08:57:24 +04:00
ZyX 45cc73aa8d Use “tmux refresh -S” to check for tmux presence
Reason: tmux may be launched and $TMUX set, but current shell still not under 
tmux (and most likely there are no active session). In this case `tmux refresh 
-S` may fail with “no clients” message, which is annoying.
2014-03-28 08:56:04 +04:00
ZyX f9764b9c98 Merge branch 'fix-tmux-support' into develop
Ref #672
2014-03-21 19:33:40 +04:00
ZyX 36e1854018 Fix tmux guard 2014-03-21 19:28:41 +04:00
ZyX b9a0444172 Merge branch 'more-powerline-symbols-fonts' into develop 2014-03-17 19:27:21 +04:00
ZyX e094e3c5a9 Add more Droid Sans Mono families
Fixes #830
2014-03-17 19:26:43 +04:00
ZyX-I c5692bf94f Merge pull request #841 from ZyX-I/no-pl-unicode-exceptions
Do not allow unicode-related exceptions inside logger
2014-03-15 00:33:24 +03:00
ZyX 839038d58e Also move FailedUnicode to powerline/lib/unicode 2014-03-15 01:27:10 +04:00
ZyX d8562256c1 Do not allow unicode-related exceptions inside logger
Fixes #421
2014-03-13 23:41:25 +04:00
ZyX 7965134e26 Merge branch 'fix-intro' into develop 2014-03-13 23:27:17 +04:00
ZyX 993402fe6c Do not use :redrawstatus!: it makes intro disappear
It seems that old fix for old code is no longer needed. At least I do not see 
any problems with

    vim -u NONE -S ~/.vam/powerline/powerline/bindings/vim/plugin/powerline.vim --cmd 'set ls=2'

.

Fixes #250
2014-03-13 23:27:06 +04:00
ZyX b4644ffd29 Add fix for old vims
Old vim versions did not support both unicode() and str() in python2 bindings in 
a number of places.

Fixes #829
2014-03-13 21:14:20 +04:00
ZyX-I 820b5ec4ef Merge pull request #840 from ZyX-I/review-res-fixes
Fixes #819.
2014-03-13 20:12:12 +03:00
ZyX 94155405f0 Suggest URIs under query_url description 2014-03-13 20:55:00 +04:00
ZyX e51d7a9dd3 Add fuzzy_time(unicode_text) argument 2014-03-13 20:54:07 +04:00
ZyX 3cf3fb8f8e Document istime date argument 2014-03-13 20:48:19 +04:00
ZyX 3f1e621f1d Add ellipsis argument to cwd segment 2014-03-13 20:47:06 +04:00
ZyX c3b4654bfb Fix flake8 complaints 2014-03-13 20:41:54 +04:00
ZyX 076134a741 Merge branch 'bash-keep-status' into develop 2014-03-13 20:37:12 +04:00
ZyX 2b5b6af002 Put _powerline_prompt at the start
Reason: $? may be overridden by the previous commands in PROMPT_COMMAND that do 
not keep it like _powerline_prompt does (see `return $last_exit_code`). 
(@ascrane)

Closes #836
2014-03-13 20:35:20 +04:00
ZyX-I 534b0434f3 Merge pull request #838 from ZyX-I/new-psutil-fixes
New psutil fixes
2014-03-13 19:32:39 +03:00
ZyX 55858e1a9d Fix tests for new psutil 2014-03-13 20:05:52 +04:00
ZyX 678d47c61e Switch comments 2014-03-13 19:41:59 +04:00
ZyX ecf26dfbc6 Update powerline for new psutil
Fixes #835
2014-03-13 19:40:34 +04:00
ZyX-I 70a94ee7d3 Merge pull request #822 from ZyX-I/threaded-fixes
Some fixes for powerline.lib.threaded

Fixes #813
2014-02-26 07:28:45 +03:00
ZyX 7df8918b39 Make code compatible with python-2.6
In python 2.6 Event.wait() always returns None making condition always True.
2014-02-26 08:24:56 +04:00
ZyX acff89a8e9 Remove useless lock 2014-02-26 08:15:26 +04:00
ZyX c08346000b Add after_update argument to prevent infinite recursion
Just in case.
2014-02-23 15:49:17 +04:00
ZyX e1eecea36d Do not use drop_interval 2014-02-23 15:49:11 +04:00
ZyX ba41cecb72 Add powerline.lib.threaded tests 2014-02-23 15:18:20 +04:00
ZyX 68a6fd056c Use monotonic() in place of time.time() 2014-02-23 14:44:36 +04:00
ZyX b1dba59170 Do not recompute key 2014-02-23 14:44:35 +04:00
ZyX 5111d9baf6 If update_first is False make it first wait and then update
Reason: otherwise it is likely that two updating processes are being run
simultaneously. With the current code it is not impossible as well, but less
likely.
2014-02-23 14:44:35 +04:00
ZyX 66a2087474 Use only get/set_update_value functions to access update_value
Also rename .skip to .crashed
2014-02-23 14:44:35 +04:00
ZyX 725ff69be0 Refactor KwThreadedSegment
Fixes #813
2014-02-22 17:24:21 +04:00
ZyX-I 84765838d5 Merge pull request #809 from ZyX-I/zsh-local-themes
Add support for [R]PS2 and PS3 prompts
2014-02-16 20:26:29 +03:00
ZyX 19da7b28a0 Add powerline-lint support for new local themes 2014-02-16 21:25:49 +04:00
ZyX 58d5d6b078 Remove failing test 2014-02-16 21:22:05 +04:00
ZyX 22b1c7437a Also update solarized colorscheme 2014-02-16 21:19:44 +04:00
ZyX a86c66f4e0 Update zsh tests
Note: to make prompt fancy enough powerline-daemon should be used. Otherwise 
continuation prompt length is different from what was expected:

With daemon:

    user > env > path > if true ; then
                 then > fi

Without:

    user > env > path > if true ; then
    then > fi

Fixes #771 as I do not want to touch tcsh any longer
2014-02-16 21:15:57 +04:00
ZyX cf0d0944b0 Add zpython support 2014-02-16 21:11:37 +04:00
ZyX 5c33de7a24 Also test zsh local themes 2014-02-16 20:52:22 +04:00
ZyX 7eed06f149 Make themes/shell/select.json look better 2014-02-16 20:52:02 +04:00