Commit Graph

2204 Commits

Author SHA1 Message Date
ZyX cd2703d7cc powerline-python got renamed to powerline-vim 2014-09-21 16:02:52 +04:00
ZyX c68eb56f7c Raise exceptions that are not intercepted when testing
Thus problems like in #1087 will result in build failure.
2014-09-21 15:53:22 +04:00
ZyX 345025ed60 Fix UnboundLocalError in logger exceptions handling code 2014-09-21 15:53:22 +04:00
ZyX 679b66466f Fix WM bindings tests 2014-09-21 15:53:22 +04:00
ZyX 1a3ff92a62 Join paths using more robust path joining function
Fixes #1087
2014-09-21 15:53:22 +04:00
ZyX fcf5702b7f Use pwd.getpwuid or getpass.getuser to get current user name 2014-09-21 15:26:27 +04:00
ZyX bb5977c8eb Fix tests with <psutil-2.0 2014-09-21 15:11:01 +04:00
Nikolai Aleksandrovich Pavlov 5660b35358 Merge pull request #1091 from ZyX-I/common-segments-split
Split powerline.segments.common module
2014-09-21 14:58:39 +04:00
ZyX 080e3e54a3 Add deprecation warning to powerline.segments.common 2014-09-21 02:12:36 +04:00
ZyX 3c1d5c615c Deprecate powerline.segments.common
Makes linter emit a warning
2014-09-21 02:10:13 +04:00
ZyX 26365a9620 Split powerline.segments.common into a number of modules
Note: some modules (i.e wthr and bat) have their names in order to avoid the 
situation when module name matches segment name:

    import powerline.segments.common.weather

will import weather segment because `powerline.segments.common` contains line 
`from powerline.segments.common.weather import weather`.

Fixes #1083
2014-09-21 02:00:37 +04:00
ZyX 96f967f8bd Commit quote changes left from previous branch 2014-09-21 00:49:49 +04:00
Nikolai Aleksandrovich Pavlov 9eb6f996fa Merge pull request #1090 from ZyX-I/update-documentation
Improve documentation
2014-09-20 20:10:25 +04:00
ZyX 4826c4349d Update documentation regarding xterm
Closes #420
2014-09-20 18:30:34 +04:00
ZyX ca83c461d9 Get rid of double quotes where possible
This commits replaces them either with Unicode quotes (“”) or single 
equivalents.
2014-09-20 18:12:39 +04:00
ZyX 77b0695caf Replace all ASCII ' with Unicode ’ in comments and docstrings 2014-09-20 17:48:15 +04:00
ZyX 2b5e9e0dc1 Replace all ASCII double quotes with Unicode quotes in documentation 2014-09-20 17:43:19 +04:00
ZyX b94cfd98a4 Replace all ASCII apostrophs with Unicode ones in documentation 2014-09-20 17:40:33 +04:00
Nikolai Aleksandrovich Pavlov 32cc0c7711 Merge pull request #1089 from ZyX-I/fix-531
Raise an exception when git is not found
2014-09-20 14:48:59 +04:00
ZyX 8587d14598 Link git executable to tests/shell/path 2014-09-20 14:43:45 +04:00
ZyX c5be5c6f11 Raise an exception when git is not found
Fixes #531 as such exceptions are ignored in powerline.lib.vcs.guess.
2014-09-20 14:34:21 +04:00
Nikolai Aleksandrovich Pavlov 2293657e8e Merge pull request #1088 from ZyX-I/weather-location
Fix weather segment
2014-09-20 14:11:50 +04:00
ZyX 5bb993ca53 Use region_name in place of region_code
Closes #1081
2014-09-20 14:01:42 +04:00
ZyX 48e06cbf9e Refactor weather segment to use KwThreaded segment
Problem: weather segment used to set its state (i.e. user location) once and 
remember it forever.
2014-09-20 13:52:24 +04:00
Nikolai Aleksandrovich Pavlov af962494e9 Merge pull request #1086 from ZyX-I/better-troubleshooting
Improve troubleshooting routines
2014-09-20 00:54:22 +04:00
ZyX aeb1a32a33 Document powerline.lint.check function 2014-09-20 00:42:05 +04:00
ZyX e9e53aa85f Move auxilary functions before specifications 2014-09-20 00:42:05 +04:00
ZyX e9c9b6519f Document powerline.lint.spec.Spec object 2014-09-20 00:42:04 +04:00
ZyX b781c72348 Move list_sep to powerline.lint.checks
It is the only place where it is needed.
2014-09-20 00:42:04 +04:00
ZyX 4e3b62f547 Remove unused new_context_item function 2014-09-20 00:42:04 +04:00
ZyX b333f9ec11 Forbid most operations for Context instances 2014-09-20 00:42:04 +04:00
ZyX 891a9cbaa5 Add Context.enter_item function for processing marked iterable items 2014-09-20 00:42:04 +04:00
ZyX 02c913f315 Replace new_context_item() with Context.enter_key() 2014-09-20 00:42:04 +04:00
ZyX 479305e815 Remove context_key, init_context and context_has_marks functions 2014-09-20 00:42:00 +04:00
ZyX 346c7ab41e Split huge powerline.lint module into multiple files 2014-09-20 00:41:23 +04:00
ZyX afb897ec4d Run powerline-lint from powerline_troubleshoot function 2014-09-19 21:23:04 +04:00
ZyX 8ff923b42e Remove direct calls to `sys.stderr.write` from powerline.lint.check 2014-09-17 08:38:53 +04:00
Nikolai Aleksandrovich Pavlov 65499123d1 Merge pull request #1079 from ZyX-I/better-encoding-support
Improve encoding support
2014-09-17 08:12:49 +04:00
ZyX 7f5c0d660d Pop first path from sys.path
According to the `sys.path` documentation “As initialized upon program startup,
the first item of this list, path[0], is the directory containing the script
that was used to invoke the Python interpreter.” Since client is named
`powerline.py` it tries to use the client itself as powerline module and
obviously fails to import `lib` submodule.
2014-09-17 00:05:10 +04:00
ZyX 849fef9b5a Use powerline.lib.encoding* in place of sys.get*encoding/locale.get*
Fixes #1078
2014-09-17 00:05:10 +04:00
ZyX d76bf5ef79 Fix example in CONTRIBUTING.rst 2014-09-17 00:05:10 +04:00
ZyX 558b608c94 Merge branch 'pull-1075' into develop 2014-09-16 20:08:51 +04:00
ZyX a092ebed47 Return None explicitly 2014-09-16 20:07:54 +04:00
ZyX 4233e76cdf Improve documentation 2014-09-16 20:07:38 +04:00
Ivan Augustinović d874c0aa26 Add flags argument to vim/plugin/tagbar
Tagbar plugin supports 3 different formats for displaying a tag string.
A flags arguments was added to current_tag function to support this
feature.
2014-09-15 14:00:19 +02:00
Nikolai Aleksandrovich Pavlov 2f81af5e59 Merge pull request #1077 from ZyX-I/fix-non-unicode-vim
Fix non-unicode strings and locales handling
2014-09-14 20:07:49 +04:00
ZyX 92b75aa951 Also catch INotifyError when testing tree watcher 2014-09-14 19:26:37 +04:00
ZyX b596643a34 Allow powerline-lint and sphinx to run with fake vim object 2014-09-14 19:26:36 +04:00
ZyX eae7d1ff42 Replace os.path.walk with os.walk
os.path.walk was removed in python-3
2014-09-14 19:26:36 +04:00
ZyX 4e91f18908 Run watcher tests with bytes() arguments 2014-09-14 19:26:36 +04:00