1660 Commits

Author SHA1 Message Date
ZyX
7871cfcda4 Use posix.environ in Python client if available
This way there will be no need in converting keys and values to bytes objects on
\*nix systems.
2014-08-27 22:38:52 +04:00
ZyX
5434852977 A few style improvements in Python client 2014-08-27 22:38:52 +04:00
ZyX
70e7088b04 Do not replace ascii with UTF-8 in powerline-daemon and python client
Assuming ascii was expected to be used when LANG=C it did not work in any case:
in this case preferred encoding is “ANSI_X3.4-1968”. Same for
`sys.getfilesystemencoding()`.
2014-08-27 22:34:13 +04:00
Nikolai Aleksandrovich Pavlov
dc1d50bc8f Merge pull request #1026 from ZyX-I/no-daemon-zero-byte
Do not make daemon output zero byte
2014-08-26 21:35:19 +04:00
ZyX
d88d87f6af Do not make daemon output zero byte
This byte is useless and can be seen in zsh output (strange that it did not 
cause bugs so far, at least none I know about). It may have been needed if any 
client was supposed to hold connection with daemon for a few runs, but all 
current clients work in “request → output response → exit” fashion without 
caring about terminating newline and definitely without preserving connection to 
daemon accross runs.
2014-08-26 21:13:56 +04:00
Nikolai Aleksandrovich Pavlov
8394066298 Merge pull request #1025 from ZyX-I/fix-vim-troubleshooting
Fix some issues in Vim troubleshooting code
2014-08-26 20:44:10 +04:00
ZyX
644dec76e0 Move one if check into python code
Reason: this removes one useless indentation level that breaks “tabs for
indentation, spaces for alignment” rule.
2014-08-26 20:19:29 +04:00
ZyX
39a7142cb7 Normalize all paths before doing anything else 2014-08-26 20:15:58 +04:00
ZyX
c3ba6d0c99 Do not remove one component from directory path 2014-08-26 20:13:12 +04:00
ZyX
e316c81f1d Do not emit a warning about symlinks when it is not the problem 2014-08-26 20:06:49 +04:00
ZyX
dcf442e86f Balance error message text 2014-08-26 20:00:11 +04:00
ZyX
81d8a9e180 Explicitly print exception from :try block
Reason: :try takes any output to the stderr as the exception, so traceback is 
never printed even though nothing is caught.
2014-08-26 19:57:45 +04:00
ZyX
b6e8318ce9 Merge branch 'osx-shell-client' into develop 2014-08-26 19:31:20 +04:00
ZyX
37546f4ad2 Update shell powerline client OSX requirements in documentation 2014-08-26 19:31:10 +04:00
Pierre Carru
c4aa72fc1f Make shell client work in OS X:
- use gnu env for `env -0`,
- use filesystem socket.
2014-08-26 10:37:32 +01:00
Nikolai Aleksandrovich Pavlov
21b10ee7e1 Merge pull request #1005 from ZyX-I/fix-1002
Fix incorrect use of partial
2014-08-25 19:41:56 +04:00
Nikolai Aleksandrovich Pavlov
1d931bbbe2 Merge pull request #1019 from ZyX-I/workaround-1017
Keep marks around in powerline-lint
2014-08-25 00:56:00 +04:00
ZyX
aeea3331ad Fix python-2.6 support
It was calling __setitem__ from copy.deepcopy on an unitialized dictionary.
2014-08-25 00:48:24 +04:00
ZyX
9d7c5dd390 Add marks where they were forgotten 2014-08-25 00:39:19 +04:00
ZyX
1cc1e35624 Check whether values have marks recursively 2014-08-25 00:39:19 +04:00
ZyX
f8bea417fe Add MarkedDict.keydict attribute
Useful for preserving marked keys
2014-08-25 00:39:19 +04:00
ZyX
3a608d838d Record docstring marks 2014-08-25 00:39:19 +04:00
ZyX
59e039ab5b Make error messages from context_has_marks and havemarks more verbose 2014-08-25 00:39:19 +04:00
ZyX
721dadd57c Use init_context to initialize config context 2014-08-25 00:39:19 +04:00
ZyX
b5fae89d6c Check whether all values that should have mark attribute have it 2014-08-25 00:39:15 +04:00
ZyX
8b30e9d33e Also in another place, just in case 2014-08-25 00:38:45 +04:00
ZyX
26cc26a69a Mark default value of default_module value 2014-08-25 00:38:45 +04:00
ZyX
242a6a0f12 Add None mark to module object
Applicable only when it fallbacks to the default value. This may output shown by
travis more informative. And in any case old code contained a bug.
2014-08-24 22:21:01 +04:00
Nikolai Aleksandrovich Pavlov
9ee8e6976b Merge pull request #1018 from ZyX-I/solarized-colors-names
Use color names specific to solarized
2014-08-24 22:09:28 +04:00
ZyX
407014417f Move solarized colors below other colors 2014-08-24 22:04:15 +04:00
ZyX
9d63fb42d1 Remove unneeded colors 2014-08-24 22:04:15 +04:00
ZyX
a70ec39a1f Make powerline-lint support id:id groups 2014-08-24 22:04:15 +04:00
pearofducks
abc9c5ef90 Add a prefix to solarized color names
Conflicts:
	powerline/config_files/colors.json
	powerline/config_files/colorschemes/shell/solarized.json
	powerline/config_files/colorschemes/vim/solarized.json
2014-08-24 22:04:15 +04:00
Nikolai Aleksandrovich Pavlov
2954a5c404 Merge pull request #1016 from ZyX-I/tmux-attached_clients
Add segment with count of clients attached to tmux
2014-08-24 21:19:04 +04:00
ZyX
69939f351c Add __future__ import 2014-08-24 21:08:20 +04:00
ZyX
dc7f8c22e6 Wrap docstring and add dot 2014-08-24 21:07:49 +04:00
ZyX
e4565dd3e8 Make attached_clients segment use provided tmux bindings 2014-08-24 21:07:19 +04:00
ZyX
eee150f97c Move some functions to from bindings.config to bindings.tmux 2014-08-24 20:58:39 +04:00
Matthew M. Keeler
88515ab472 Show Count of Attached Tmux Sessions
- This segment displays the number of attached tmux clients to the
  currently running session.
- The minimum argument is used to specify a threshold for when the
  segment should be visible.

Fixes #661
Closes #662

Conflicts:
	docs/source/index.rst
	powerline/config_files/colorschemes/shell/default.json
	powerline/config_files/colorschemes/shell/solarized.json
	powerline/config_files/colorschemes/tmux/default.json
	powerline/config_files/colorschemes/vim/default.json
	powerline/config_files/colorschemes/vim/solarized.json
	powerline/config_files/colorschemes/wm/default.json
	tests/test_segments.py
2014-08-24 20:56:59 +04:00
ZyX
48b575b67b Merge branch 'rdio-mac-app-player' into develop
Closes #530
2014-08-24 20:19:59 +04:00
ZyX
a9c397e5e6 Increase indentation of osascript code in spotify player 2014-08-24 20:19:28 +04:00
ZyX
86c9e998d1 Refactor player_rdio to use the same approach spotify uses 2014-08-24 20:17:47 +04:00
Zero Cho
7f9eef4ce1 Add player support for Rdio Mac app
Conflicts:
	powerline/segments/common.py
2014-08-24 20:13:12 +04:00
Nikolai Aleksandrovich Pavlov
d4525a8086 Merge pull request #1014 from ZyX-I/zsh-named-dirs
Add support for zsh named directories
2014-08-24 20:08:20 +04:00
ZyX
45d2053053 Do not specify $PYTHON when running python client
It is not needed: in the environment where it is run only python is the one
linked in tests/shell/path.
2014-08-24 19:57:58 +04:00
ZyX
d7a674deaa Add support for shell-specific path shortening
Fixes #502
2014-08-24 19:54:28 +04:00
ZyX
86c3768e4e Move with_docstring function to powerline.segments 2014-08-24 19:50:54 +04:00
ZyX
f4e49e2ee6 Make powerline autodoc add all Segments 2014-08-24 19:50:54 +04:00
ZyX
04c0030fe1 Refactor cwd segment into a class and add shorten_home argument 2014-08-24 19:50:54 +04:00
ZyX
7c07f242bb Merge branch 'clementine-dbus' into develop 2014-08-24 18:08:25 +04:00