Commit Graph

1692 Commits

Author SHA1 Message Date
ZyX 9a0e100ca0 Specify -p argument in run function when running shell tests 2014-08-29 23:13:10 +04:00
ZyX 4c95928c96 Split shell tests into files
I am mostly interested in running all python and vim tests separately from other 
tests.
2014-08-29 22:22:39 +04:00
ZyX c5d15ac8a8 Merge branch 'non-unicode-errors' into develop 2014-08-29 21:06:06 +04:00
ZyX d138c94704 Fix non-unicode error messages
Ref #645
2014-08-29 21:05:54 +04:00
Nikolai Aleksandrovich Pavlov d455cec319 Merge pull request #1038 from ZyX-I/ascii-defaults
Use non-unicode defaults in Python code
2014-08-29 20:56:38 +04:00
ZyX 849c34ea72 Replace all unicode defaults with defaults from ASCII theme
Closes #1034
2014-08-29 20:47:44 +04:00
ZyX e808dd76c4 Specify temp_format argument for weather segment in ascii theme 2014-08-29 20:35:40 +04:00
ZyX c8d052ad23 Add `unicode_text` argument for fuzzy_time to top-level themes 2014-08-29 20:33:06 +04:00
ZyX 9fe0b66125 Merge branch 'top-theme-extend' into develop 2014-08-29 20:25:51 +04:00
ZyX 356cb43ea2 Add `powerline_segment_datas` attribute
Fixes #1035
2014-08-29 20:17:23 +04:00
ZyX 67845dc96e Add documentation for segment attributes 2014-08-29 20:17:23 +04:00
ZyX cde39f00c4 Fix errors reported by syntastic in powerline.lint.inspect 2014-08-29 19:37:56 +04:00
ZyX e273287eab Check for presence of powerline_requires_* attributes
In powerline.lint.inspect their value is checked, while in other place `hasattr`
is used. This commit removes this inconsistency.
2014-08-29 19:37:56 +04:00
Nikolai Aleksandrovich Pavlov 96a0af9090 Merge pull request #1036 from ZyX-I/fix-1033
Fix width used for tabline
2014-08-29 19:10:13 +04:00
ZyX af10fa1e80 Fix typo in mergedicts_copy docstring 2014-08-29 18:40:43 +04:00
ZyX 8fb09bd8b3 Add mergedefaults function that does not override existing keys 2014-08-29 18:40:25 +04:00
ZyX 125f309724 Fix width used for tabline
Fixes #1033
2014-08-29 18:32:58 +04:00
Nikolai Aleksandrovich Pavlov e609bdf514 Merge pull request #1032 from ZyX-I/skip-vcs-tests
Refactor VCS tests
2014-08-29 00:50:26 +04:00
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