Commit Graph

213 Commits

Author SHA1 Message Date
ZyX 7bf025ca2b Add `exclude_/include_function` support
This is first step towards fixing #1046.
2014-09-05 20:00:19 +04:00
ZyX 96b2cb8f10 Fix spaces-only line in configuration.rst 2014-09-04 21:38:49 +04:00
ZyX 9947bb300a Reference sections where all segments are listed 2014-09-04 21:38:49 +04:00
ZyX ea2fd28292 Merge exclude_modes and include_modes documentation 2014-09-04 21:38:49 +04:00
ZyX b5a551eb56 Fix typos in exclude/include_modes documentation 2014-09-04 19:34:29 +04:00
ZyX 986a69481f Update documentation 2014-09-02 21:49:23 +04:00
ZyX 06211cbe63 Unify imports
Now imports follow the following structure:

1. __future__ line: exactly one line allowed:

        from __future__ import (unicode_literals, division, absolute_import, print_function)

   (powerline.shell is the only exception due to problems with argparse).
2. Standard python library imports in a form `import X`.
3. Standard python library imports in a form `from X import Y`.
4. and 5. 2. and 3. for third-party (non-python and non-powerline imports).
6. 3. for powerline non-test imports.
7. and 8. 2. and 3. for powerline testing module imports.

Each list entry is separated by exactly one newline from another import. If
there is module docstring it goes between `# vim:` comment and `__future__`
import. So the structure containing all items is the following:

    #!/usr/bin/env python
    # vim:fileencoding=utf-8:noet

    '''Powerline super module'''

    import sys

    from argparse import ArgumentParser

    import psutil

    from colormath.color_diff import delta_e_cie2000

    from powerline.lib.unicode import u

    import tests.vim as vim_module

    from tests import TestCase

.
2014-09-01 00:25:24 +04:00
ZyX aaed00e078 Fix installation notes location.
These notes are parts of the list entries.
2014-08-31 21:33:56 +04:00
ZyX 2505d0b827 Implement segment truncation
Closes #161 (requires implementation for specific segments though)
2014-08-30 18:22:52 +04:00
ZyX d6c603daf0 Add support for `segment.expand`
Closes #154
2014-08-30 18:22:46 +04:00
ZyX 875f8e98b1 Update documentation 2014-08-30 17:59:58 +04:00
ZyX f320fb3df3 Remove filler segment type
It was replaced with `"width": "auto"` and is not used anywhere. I do not even 
know whether it works.
2014-08-30 16:08:30 +04:00
ZyX 41476544ca Replace `name` and `module` keys with `function` key
Fixes #1031
2014-08-29 23:13:10 +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 8f70811768 Add another answer to troubleshooting section 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 d32b798c11 Add `use_non_breaking_spaces` theme option, use it in ascii theme 2014-08-27 23:52:09 +04:00
ZyX 37546f4ad2 Update shell powerline client OSX requirements in documentation 2014-08-26 19:31:10 +04:00
Matthew M. Keeler 88515ab472 Show Count of Attached Tmux Sessions
- This segment displays the number of attached tmux clients to the
  currently running session.
- The minimum argument is used to specify a threshold for when the
  segment should be visible.

Fixes #661
Closes #662

Conflicts:
	docs/source/index.rst
	powerline/config_files/colorschemes/shell/default.json
	powerline/config_files/colorschemes/shell/solarized.json
	powerline/config_files/colorschemes/tmux/default.json
	powerline/config_files/colorschemes/vim/default.json
	powerline/config_files/colorschemes/vim/solarized.json
	powerline/config_files/colorschemes/wm/default.json
	tests/test_segments.py
2014-08-24 20:56:59 +04:00
ZyX f4e49e2ee6 Make powerline autodoc add all Segments 2014-08-24 19:50:54 +04:00
ZyX 6a8074a3d3 Update information about Vim version 2014-08-24 13:37:20 +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 28bcb01345 Update documentation 2014-08-19 22:24:10 +04:00
ZyX a792fb0e1c Add support for `draw_inner_divider` in listers 2014-08-16 14:25:12 +04:00
ZyX 6106e914e3 Remove duplicate documentation of draw_inner_divider 2014-08-16 14:00:08 +04:00
ZyX 407a8bca7e Fix incorrect description of draw_inner_divider 2014-08-16 13:59:00 +04:00
ZyX ac7a9596ab Remove nonlocal image URLs from overview 2014-08-16 13:46:14 +04:00
ZyX d1782d4aaf Add documentation about creating listers 2014-08-16 13:43:22 +04:00
ZyX c3099ce48b Add lister reference 2014-08-16 13:22:31 +04:00
ZyX 402cc9e911 Also show documentation for plugin-specific segments 2014-08-16 13:21:46 +04:00
ZyX 24938e0bb9 Remove duplicate information from configuration/segments.rst 2014-08-16 13:06:19 +04:00
ZyX 0848f7d801 Document how to create extensions
Fixes #287
2014-08-15 19:44:27 +04:00
ZyX b5b91afcae Document how to create Vim local themes 2014-08-15 19:17:51 +04:00
ZyX f0ccb2dcb8 Fix path to __main__ theme 2014-08-15 19:17:51 +04:00
ZyX 1a1a8410d2 Add information about shell and ipython local themes 2014-08-15 19:17:50 +04:00
ZyX 86ddb38bf4 Add information about writing segments
Fixes #629
Ref #287
2014-08-15 19:17:50 +04:00
ZyX df19fe2701 Mention `showtabline` option in Vim tips and tricks 2014-08-15 19:17:50 +04:00
Andreas Schneider 538a41b25a docs: Fix building the docs without RTD theme.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-08-13 17:40:11 +02:00
ZyX 89afac44bb Add support for PS2 and PS3 prompts outside of zsh 2014-08-12 08:04:35 +04:00
ZyX 547306e746 Add cursor_space and cursor_columns configuration options
Fixes #815
2014-08-10 21:03:33 +04:00
ZyX b8049fab87 Add ext.*.components configuration support
Also fixes various problems in shell bindings.

Closes #969
2014-08-10 16:26:22 +04:00
ZyX 5c5407cffd Make libzpython bindings accept multiple paths when using overrides 2014-08-10 16:13:33 +04:00
ZyX 17b32b1765 Make ipython accept paths, not a single path 2014-08-10 16:13:32 +04:00
ZyX 757e563250 Place labels before labeled key name, not before the description 2014-08-09 12:18:04 +04:00
ZyX d4735c87df Fix labels in configuration/reference.rst 2014-08-06 12:48:17 +04:00
ZyX c3e6329262 Add description of shipped themes to documentation 2014-08-06 03:09:31 +04:00