Commit Graph

1874 Commits

Author SHA1 Message Date
ZyX 53ab31eeb8 Use setUpClass/tearDownClass to deal with VCS repositories 2014-08-29 00:28:41 +04:00
ZyX 70fabdc02b Use SkipTest for skipping tests 2014-08-29 00:22:28 +04:00
ZyX 323f0c4e22 Use __import__ checks for skipping bzr/mercurial
Closes #1015
2014-08-29 00:22:05 +04:00
Nikolai Aleksandrovich Pavlov 305fd7917b Merge pull request #1030 from ZyX-I/locale-support
Improve locales support
2014-08-28 00:00:09 +04:00
ZyX 9658e45eee Use &encoding as powerline encoding in Vim
Among other benefits (i.e. correct fall back to ascii theme when Vim uses
non-unicode encoding) this should also fix travis tests: apparently travis is
not setting LANG or similar environment variables to some unicode locale, so
tests are failing.
2014-08-27 23:52:09 +04:00
ZyX 8f70811768 Add another answer to troubleshooting section 2014-08-27 23:52:09 +04:00
ZyX e02647560a Move LANG setting to run function, remove useless BINDFILE variable 2014-08-27 23:52:09 +04:00
ZyX fe6cd47bdd Also add “Shell issues” section 2014-08-27 23:52:09 +04:00
ZyX dfb08fad5a Separate some issues into “Vim issues” section in troubleshooting 2014-08-27 23:52:09 +04:00
ZyX 285a6aa3ce Fall back to ASCII-only theme in case of non-unicode locale 2014-08-27 23:52:09 +04:00
ZyX 289a08c539 Replace .replace(' ', NBSP) call with self.escape call
Dividers need to be escaped as well.

Fixes #1027
2014-08-27 23:52:09 +04:00
ZyX d32b798c11 Add `use_non_breaking_spaces` theme option, use it in ascii theme 2014-08-27 23:52:09 +04:00
ZyX 7e7803f680 Make powerline-render respect user locale as well
Closes #1023
2014-08-27 22:38:52 +04:00
ZyX 484b9af6ed Use the same function for getting encoding in Python client and daemon 2014-08-27 22:38:52 +04:00
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