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
ZyX
7dd65a000b
Allow bytes paths in watchers
2014-09-14 19:26:36 +04:00
ZyX
be7056fd7d
Allow bytes paths in VCS bindings
2014-09-14 19:26:36 +04:00
ZyX
8417fd25e2
Fix overrides in Python-3
...
With bytes() keys they were not working well since in Python-3 bytes() is not
comparable with str().
2014-09-14 18:15:33 +04:00
ZyX
af170eca13
Make vim_get_func handle rettype argument better
...
As usual it was not working well in Python-3
2014-09-14 18:15:33 +04:00
ZyX
80db7df959
Do not use vim_funcs['bufnr'] for modified_buffers segment
2014-09-14 17:21:11 +04:00
ZyX
e7d0c8368e
Add code that will return bytes() from vim functions in Python-3
2014-09-14 17:21:11 +04:00
ZyX
f073437f02
Remove the only remaining reference to `u'` string prefix
2014-09-14 14:28:52 +04:00
ZyX
f8b9ad4ac4
Do not use segment_info['buffer'].name ever
...
This results in UnicodeDecodeErrors for non-unicode filenames
2014-09-14 14:26:42 +04:00
ZyX
a4e711dae7
Add tests for invalid unicode filenames
...
Ref #1071
2014-09-14 14:26:42 +04:00
ZyX
4ed1a7e561
Compare bytes() objects in matcher functions
...
Fixes #1071
2014-09-14 14:26:42 +04:00
ZyX
d14aecbc0a
Use proper encoding to convert values in various places
...
Fixes #1072
2014-09-14 14:26:42 +04:00
ZyX
fa217185cf
Encode vim statusline to &encoding before returning
...
Partially fixes #1072
2014-09-14 14:26:42 +04:00
ZyX
fdf21feae1
Allow setting g:powerline_pyeval to PowerlinePyeval for testing
2014-09-10 08:37:13 +04:00
Nikolai Aleksandrovich Pavlov
257732bd82
Merge pull request #1069 from ZyX-I/workaround-1068
...
Do not use _POWERLINE_SHORTENED_PATH or unset it shortly after using
2014-09-09 00:22:33 +04:00
Nikolai Aleksandrovich Pavlov
04a66ef8b2
Merge pull request #1070 from ZyX-I/fix-daemon
...
Include args.config_path in the key
2014-09-09 00:06:50 +04:00
ZyX
901d96e3e1
Add tests
2014-09-09 00:04:56 +04:00
ZyX
d3b57f7c31
Include args.config_path in the key
...
Consider the following script:
% powerline-daemon -s powerline-test
% powerline --socket powerline-test -p/dev/null shell left
Config file not found in search paths (/dev/null): config.json
% powerline --socket powerline-test shell left
Config file not found in search paths (/dev/null): config.json
Note the problem: second call to powerline does not use offending path, but it
still emits the error “Config file not found in search paths”.
2014-09-08 23:53:05 +04:00