Commit Graph

1809 Commits

Author SHA1 Message Date
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
ZyX c8b1334969 Do not use _POWERLINE_SHORTENED_PATH or unset it shortly after using
Fixes #1068
2014-09-08 23:31:33 +04:00
Nikolai Aleksandrovich Pavlov 9e686823a5 Merge pull request #1067 from ZyX-I/fix-1066
Add proper errno attribute to exception raised by uv watcher
2014-09-07 23:30:40 +04:00
ZyX fb022b7917 Check that exception from watcher has errno attribute equal to ENOENT 2014-09-07 23:23:23 +04:00
ZyX 9f7286e4e9 Raise OSError with errno=ENOENT from uv watcher
Fixes #1066
2014-09-07 23:20:49 +04:00
Nikolai Aleksandrovich Pavlov 5f37ab7e3e Merge pull request #1065 from ZyX-I/fix-1064
Fix some possible unicode errors
2014-09-07 21:09:49 +04:00
ZyX becb3b1395 Convert shortened path to unicode
Fixes #1064
2014-09-07 20:59:04 +04:00
ZyX a962f7eeab Replace u() function with out_u for safer unicode conversion 2014-09-07 20:56:35 +04:00
ZyX c8baa5535d Merge branch 'manifest-docs' into develop 2014-09-07 15:09:40 +04:00
ZyX 1c34b48265 Include documentation in the sdist package 2014-09-07 14:44:51 +04:00
ZyX 02b9071753 Merge commit 'HEAD@{1}' into develop 2014-09-06 22:45:45 +04:00
ZyX 074966aeb6 Replace “package” with “module” in a number of places
Ref #1059
2014-09-06 22:45:25 +04:00
Nikolai Aleksandrovich Pavlov 14b48d69a4 Merge pull request #1061 from ZyX-I/powerline-vim-paths
Replace g:powerline_config_path Vim variable with …_paths list
2014-09-05 22:37:02 +04:00
ZyX 05cb133dd4 Replace g:powerline_config_path Vim variable with …_paths list
This is for consistency with other powerline bindings that now all do have a way 
to specify a list of paths.
2014-09-05 22:13:51 +04:00
ZyX 682846dcd5 Merge branch 'doc-fixes' into develop 2014-09-05 20:41:03 +04:00
ZyX 41f573659b Fix typo in label ID 2014-09-05 20:40:09 +04:00
ZyX 9eceaf3f3f Move docs/source/selectors* to the appropriate place 2014-09-05 20:39:40 +04:00
ZyX 4bcb0e154f Include tips-and-tricks for developers into develop.rst toctree 2014-09-05 20:39:22 +04:00
ZyX 51e778cd41 Always use `code-block` to format code there 2014-09-05 20:36:09 +04:00
ZyX dc5969e8df Mention `powerline-status` PyPI package in installation documentation
Fixes #1057
2014-09-05 20:33:26 +04:00
ZyX e7ad1f5717 Merge commit 'HEAD@{1}' into develop 2014-09-05 20:28:10 +04:00
ZyX c0459dbebe Rename `beta` version to `dev` 2014-09-05 20:27:52 +04:00
Nikolai Aleksandrovich Pavlov 766efe3754 Merge pull request #1058 from ZyX-I/tabline-fixes
Improve tabline support
2014-09-05 20:23:11 +04:00
ZyX 68263beec4 Show current buffer, window and tabpage number by default
Fixes #1048
2014-09-05 20:00:21 +04:00
ZyX 42bd619866 Remove `{module}.{function}` default highlighting group
It is both not documented and not supported by linter in any case.
2014-09-05 20:00:21 +04:00