Commit Graph

1714 Commits

Author SHA1 Message Date
ZyX 86c3768e4e Move with_docstring function to powerline.segments 2014-08-24 19:50:54 +04:00
ZyX f4e49e2ee6 Make powerline autodoc add all Segments 2014-08-24 19:50:54 +04:00
ZyX 04c0030fe1 Refactor cwd segment into a class and add shorten_home argument 2014-08-24 19:50:54 +04:00
ZyX 7c07f242bb Merge branch 'clementine-dbus' into develop 2014-08-24 18:08:25 +04:00
ZyX 7c587f5c20 Add clementine media player support
Based on #438 by @printesoi

Fixes #422
Closes #438
2014-08-24 18:07:07 +04:00
Nikolai Aleksandrovich Pavlov e7ef2d14d3 Merge pull request #1013 from ZyX-I/fix-341
Catch errors from tree_status
2014-08-24 18:02:50 +04:00
ZyX 2d4897d5dd Catch errors from tree_status
Fixes #341
2014-08-24 17:46:11 +04:00
ZyX 10665f4c7d Do not format message before passing it to self.pl.warn 2014-08-24 17:45:08 +04:00
Nikolai Aleksandrovich Pavlov cd9811806c Merge pull request #1012 from ZyX-I/fish-vi-mode
Add fish vi mode support

Closes #879
Fixes #878
2014-08-24 17:22:14 +04:00
ZyX 58057c95b9 Add a directory that will make fish_update_completions not launch 2014-08-24 17:14:37 +04:00
ZyX 0af5e2d2ca Test mode support in fish
WARNING: Requires development version of fish. Since fish is not tested in
travis it is probably OK.
2014-08-24 17:14:37 +04:00
ZyX 54672aace0 Make COMMAND_PATTERN consistent with other arguments 2014-08-24 17:14:37 +04:00
ZyX 68ecd81edd Wait until fish_update_completions finishes 2014-08-24 16:58:35 +04:00
ZyX 09b78884de Set default mode in another function 2014-08-24 15:37:56 +04:00
Shen-Ta Hsieh 9be2a2e39b add _POWERLINE_DEFAULT_MODE detection 2014-08-24 15:36:50 +04:00
sthsieh 04c293e40d Add fish shell vi-mode support 2014-08-24 15:36:50 +04:00
Nikolai Aleksandrovich Pavlov c2f35ca76e Merge pull request #1011 from ZyX-I/old-vims
Improve Vim bindings
2014-08-24 13:57:08 +04:00
ZyX 5bc1f75b70 Add support for vim.eval('v:version') in test bindings 2014-08-24 13:41:54 +04:00
ZyX 6a8074a3d3 Update information about Vim version 2014-08-24 13:37:20 +04:00
ZyX 767d0afa2a Make troubleshooting routine actually work 2014-08-24 13:37:20 +04:00
ZyX 6dde8f2f95 Move powerline setup under :try
Makes it benefit from troubleshooting below
2014-08-24 13:37:20 +04:00
ZyX 2c8932b084 Do not call mode() with an argument on old Vims 2014-08-24 13:37:13 +04:00
ZyX c2609e31b8 Replace let s:pystr… with call s:rcmd(…)
Makes lines slightly shorter
2014-08-24 13:36:05 +04:00
ZyX 098dadadf5 Add some unlets before calling :finish 2014-08-24 13:20:08 +04:00
Nikolai Aleksandrovich Pavlov 4f07694e06 Merge pull request #1010 from ZyX-I/internal_ip
Add internal_ip segment

Closes #857
Fixes #826
2014-08-24 01:32:43 +04:00
ZyX 173c4d6e76 Add internal_ip segment
Closes #857
2014-08-24 01:20:25 +04:00
ZyX d76df9f168 Merge branch 'fix-reloading' into develop 2014-08-23 19:09:42 +04:00
ZyX 483b261019 When processing exception from _load do not allow overwriting it
If `self.loaded.pop` raises KeyError then this KeyError will be logged, not the 
initial exception from `self._load`.
2014-08-23 19:09:28 +04:00
ZyX f6f8dd8af3 Make condition function return path as expected by lib.config 2014-08-23 19:07:57 +04:00
Nikolai Aleksandrovich Pavlov 1a71ed3eba Merge pull request #1009 from ZyX-I/fix-1008
Improve Python 3 compatibility when using daemon and client
2014-08-23 16:30:59 +04:00
ZyX 20e9575c17 Do not try to test ipython if it is not available 2014-08-23 16:24:16 +04:00
ZyX 1b56179676 Disable dash tests in travis 2014-08-23 16:02:04 +04:00
ZyX ebc98977ae Make test_shells/test.sh compatible with dash 2014-08-23 16:00:34 +04:00
ZyX 9b7052bf3e Do not execute all tests in travis 2014-08-23 15:51:35 +04:00
ZyX 0232d3215b Add --socket argument to all clients
Makes it not needed to kill daemon for testing, but disables implicit
`powerline-config shell command` testing.
2014-08-23 15:19:00 +04:00
ZyX 77a7a26782 Do not require scripts/powerline
It may be immediately moved to bin/ sometimes or not compiled at all for some
reason.
2014-08-23 15:19:00 +04:00
ZyX 042d542231 Also test whether running daemon is successfull without arguments 2014-08-23 15:19:00 +04:00
ZyX b9360a083a Make tests test powerline daemon with valid python and all clients 2014-08-23 15:19:00 +04:00
ZyX 03c22e94a7 Make tcsh check whether some variables are defined or empty
Makes it consistent with other shells
2014-08-23 15:19:00 +04:00
ZyX 8e77262f2d Perform shell word splitting in zsh bindings
This makes POWERLINE_COMMAND be consistent across various bindings.
2014-08-23 15:19:00 +04:00
ZyX dc76396912 Solve encoding issues in powerline python client 2014-08-23 15:18:59 +04:00
ZyX 74d147a0be Use `open` to open file descriptors in place of `file`
Reason: there is no `file()` in Python 3.

Fix was originally presented by @kovidgoyal in [3deb69][1], but I cannot
cherry-pick this commit, because its commit message is highly undescriptive.

Fixes #1008

[1]: 3deb6988c8
2014-08-23 04:34:44 +04:00
Nikolai Aleksandrovich Pavlov 6e128c14ba Merge pull request #1007 from ZyX-I/tab-modified-indicator
Add tab_modified indicator
2014-08-22 22:04:29 +04:00
ZyX 5a45b7d291 Move processing segment['mode'] to segment.py 2014-08-22 21:34:37 +04:00
ZyX 974ec17bae Filter segments using mode in Theme.get_segments 2014-08-22 21:03:59 +04:00
ZyX 6481f1b65e Always specify all keys in segment_info 2014-08-22 21:03:59 +04:00
ZyX da48e9d84e Add tests 2014-08-22 09:08:58 +04:00
ZyX 5c4d75f952 Make tab_modified_indicator work in old Vims
Closes #996
2014-08-22 08:59:52 +04:00
ZyX 9cab9d6fff Use tab_modified_indicator highlight group 2014-08-22 08:59:51 +04:00
ZyX 58b7e6c800 Use spaces for alignment 2014-08-22 08:59:51 +04:00