Permalink
Browse files

I don't really USE powerline either.

  • Loading branch information...
1 parent 7818c36 commit 2ed17be8e2051d67e43285fadf39cd03ea9ee7a7 @theIV committed Feb 5, 2013
Showing with 0 additions and 4,875 deletions.
  1. +0 −32 vim/bundle/powerline/.gitignore
  2. +0 −2 vim/bundle/powerline/MANIFEST.in
  3. +0 −46 vim/bundle/powerline/README.rst
  4. +0 −1 vim/bundle/powerline/docs/.gitignore
  5. +0 −36 vim/bundle/powerline/docs/Makefile
  6. BIN vim/bundle/powerline/docs/source/_static/img/icons/cross.png
  7. BIN vim/bundle/powerline/docs/source/_static/img/icons/error.png
  8. BIN vim/bundle/powerline/docs/source/_static/img/icons/tick.png
  9. BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-insert.png
  10. BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-normal.png
  11. BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-replace.png
  12. BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-visual.png
  13. BIN vim/bundle/powerline/docs/source/_static/img/pl-truncate1.png
  14. BIN vim/bundle/powerline/docs/source/_static/img/pl-truncate2.png
  15. BIN vim/bundle/powerline/docs/source/_static/img/pl-truncate3.png
  16. +0 −17 vim/bundle/powerline/docs/source/conf.py
  17. +0 −331 vim/bundle/powerline/docs/source/configuration.rst
  18. +0 −135 vim/bundle/powerline/docs/source/fontpatching.rst
  19. +0 −20 vim/bundle/powerline/docs/source/index.rst
  20. +0 −104 vim/bundle/powerline/docs/source/installation/linux.rst
  21. +0 −116 vim/bundle/powerline/docs/source/installation/osx.rst
  22. +0 −32 vim/bundle/powerline/docs/source/installation/troubleshooting-common.rst
  23. +0 −65 vim/bundle/powerline/docs/source/introduction.rst
  24. +0 −50 vim/bundle/powerline/docs/source/license-credits.rst
  25. +0 −201 vim/bundle/powerline/docs/source/overview.rst
  26. +0 −69 vim/bundle/powerline/font/10-powerline-symbols.conf
  27. BIN vim/bundle/powerline/font/PowerlineSymbols.otf
  28. +0 −235 vim/bundle/powerline/font/fontpatcher-symbols.sfd
  29. +0 −106 vim/bundle/powerline/font/fontpatcher.py
  30. +0 −4 vim/bundle/powerline/packages/archlinux/python-powerline-git/.gitignore
  31. +0 −65 vim/bundle/powerline/packages/archlinux/python-powerline-git/PKGBUILD
  32. +0 −43 vim/bundle/powerline/packages/archlinux/python-powerline-git/powerline.install
  33. +0 −4 vim/bundle/powerline/packages/archlinux/python2-powerline-git/.gitignore
  34. +0 −66 vim/bundle/powerline/packages/archlinux/python2-powerline-git/PKGBUILD
  35. +0 −43 vim/bundle/powerline/packages/archlinux/python2-powerline-git/powerline.install
  36. +0 −1 vim/bundle/powerline/packages/gentoo/app-misc/powerline/Manifest
  37. +0 −69 vim/bundle/powerline/packages/gentoo/app-misc/powerline/powerline-9999.ebuild
  38. 0 vim/bundle/powerline/powerline/__init__.py
  39. 0 vim/bundle/powerline/powerline/bindings/__init__.py
  40. +0 −11 vim/bundle/powerline/powerline/bindings/awesome/powerline.lua
  41. +0 −10 vim/bundle/powerline/powerline/bindings/awesome/powerline.sh
  42. +0 −19 vim/bundle/powerline/powerline/bindings/bash/powerline.sh
  43. 0 vim/bundle/powerline/powerline/bindings/ipython/__init__.py
  44. +0 −26 vim/bundle/powerline/powerline/bindings/ipython/post_0_11.py
  45. +0 −26 vim/bundle/powerline/powerline/bindings/ipython/pre_0_11.py
  46. 0 vim/bundle/powerline/powerline/bindings/qtile/__init__.py
  47. +0 −36 vim/bundle/powerline/powerline/bindings/qtile/widget.py
  48. +0 −11 vim/bundle/powerline/powerline/bindings/tmux/powerline.conf
  49. +0 −58 vim/bundle/powerline/powerline/bindings/vim/__init__.py
  50. +0 −11 vim/bundle/powerline/powerline/bindings/vim/plugin/source_plugin.vim
  51. +0 −39 vim/bundle/powerline/powerline/bindings/vim/powerline.vim
  52. +0 −43 vim/bundle/powerline/powerline/bindings/zsh/__init__.py
  53. +0 −37 vim/bundle/powerline/powerline/bindings/zsh/powerline.zsh
  54. +0 −133 vim/bundle/powerline/powerline/colorscheme.py
  55. +0 −25 vim/bundle/powerline/powerline/config_files/colorschemes/ipython/default.json
  56. +0 −68 vim/bundle/powerline/powerline/config_files/colorschemes/shell/default.json
  57. +0 −33 vim/bundle/powerline/powerline/config_files/colorschemes/shell/solarized.json
  58. +0 −58 vim/bundle/powerline/powerline/config_files/colorschemes/tmux/default.json
  59. +0 −154 vim/bundle/powerline/powerline/config_files/colorschemes/vim/default.json
  60. +0 −101 vim/bundle/powerline/powerline/config_files/colorschemes/vim/solarized.json
  61. +0 −58 vim/bundle/powerline/powerline/config_files/colorschemes/wm/default.json
  62. +0 −41 vim/bundle/powerline/powerline/config_files/config.json
  63. +0 −16 vim/bundle/powerline/powerline/config_files/themes/ipython/default.json
  64. +0 −39 vim/bundle/powerline/powerline/config_files/themes/shell/default.json
  65. +0 −34 vim/bundle/powerline/powerline/config_files/themes/shell/default_leftonly.json
  66. +0 −56 vim/bundle/powerline/powerline/config_files/themes/tmux/default.json
  67. +0 −17 vim/bundle/powerline/powerline/config_files/themes/vim/cmdwin.json
  68. +0 −99 vim/bundle/powerline/powerline/config_files/themes/vim/default.json
  69. +0 −37 vim/bundle/powerline/powerline/config_files/themes/vim/help.json
  70. +0 −31 vim/bundle/powerline/powerline/config_files/themes/wm/default.json
  71. +0 −85 vim/bundle/powerline/powerline/core.py
  72. +0 −7 vim/bundle/powerline/powerline/lib/__init__.py
  73. +0 −22 vim/bundle/powerline/powerline/lib/humanize_bytes.py
  74. +0 −27 vim/bundle/powerline/powerline/lib/memoize.py
  75. +0 −30 vim/bundle/powerline/powerline/lib/vcs/__init__.py
  76. +0 −137 vim/bundle/powerline/powerline/lib/vcs/git.py
  77. +0 −49 vim/bundle/powerline/powerline/lib/vcs/mercurial.py
  78. +0 −22 vim/bundle/powerline/powerline/matcher.py
  79. 0 vim/bundle/powerline/powerline/matchers/__init__.py
  80. +0 −13 vim/bundle/powerline/powerline/matchers/vim.py
  81. +0 −181 vim/bundle/powerline/powerline/renderer.py
  82. 0 vim/bundle/powerline/powerline/renderers/__init__.py
  83. +0 −9 vim/bundle/powerline/powerline/renderers/ipython.py
  84. +0 −28 vim/bundle/powerline/powerline/renderers/pango_markup.py
  85. +0 −42 vim/bundle/powerline/powerline/renderers/shell.py
  86. +0 −40 vim/bundle/powerline/powerline/renderers/tmux.py
  87. +0 −100 vim/bundle/powerline/powerline/renderers/vim.py
  88. +0 −18 vim/bundle/powerline/powerline/renderers/zsh_prompt.py
  89. +0 −60 vim/bundle/powerline/powerline/segment.py
  90. 0 vim/bundle/powerline/powerline/segments/__init__.py
  91. +0 −415 vim/bundle/powerline/powerline/segments/common.py
  92. +0 −15 vim/bundle/powerline/powerline/segments/shell.py
  93. +0 −196 vim/bundle/powerline/powerline/segments/vim.py
  94. +0 −86 vim/bundle/powerline/powerline/theme.py
  95. +0 −29 vim/bundle/powerline/scripts/powerline
  96. +0 −36 vim/bundle/powerline/setup.py
  97. +0 −1 vim/update_bundles
  98. +0 −7 vimrc
View
32 vim/bundle/powerline/.gitignore
@@ -1,32 +0,0 @@
-*.py[co]
-__pycache__
-env
-
-# Packages
-*.egg
-*.egg-info
-dist
-build
-eggs
-parts
-bin
-var
-sdist
-develop-eggs
-.installed.cfg
-
-# Installer logs
-pip-log.txt
-
-# Unit test / coverage reports
-.tox
-junit-*.xml
-.coverage
-coverage.xml
-
-# Translations
-*.mo
-*.pot
-
-# SQLite databases
-*.db
View
2 vim/bundle/powerline/MANIFEST.in
@@ -1,2 +0,0 @@
-recursive-include powerline *.json *.vim
-recursive-include powerline/bindings *.*
View
46 vim/bundle/powerline/README.rst
@@ -1,46 +0,0 @@
-Powerline
-=========
-
-:Author: Kim Silkebækken (kim.silkebaekken+vim@gmail.com)
-:Source: https://github.com/Lokaltog/powerline
-:Version: beta
-
-This is the upcoming version of Powerline, implemented in Python. The
-project is currently in a stable beta and almost ready for release.
-
-* Consult the `documentation <http://lokaltog.github.com/powerline/>`_ for
- more information and installation instructions.
-* Check out `powerline-fonts <https://github.com/Lokaltog/powerline-fonts>`_
- for pre-patched versions of popular coding fonts.
-
-Screenshots
------------
-
-Vim statusline
-^^^^^^^^^^^^^^
-
-**Mode-dependent highlighting**
-
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-normal.png
- :alt: Normal mode
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-insert.png
- :alt: Insert mode
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-visual.png
- :alt: Visual mode
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-mode-replace.png
- :alt: Replace mode
-
-**Automatic truncation of segments in small windows**
-
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-truncate1.png
- :alt: Truncation illustration
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-truncate2.png
- :alt: Truncation illustration
-* .. image:: https://raw.github.com/Lokaltog/powerline/develop/docs/source/_static/img/pl-truncate3.png
- :alt: Truncation illustration
-
-----
-
-The font in the screenshots is `Pragmata Pro`_ by Fabrizio Schiavi.
-
-.. _`Pragmata Pro`: http://www.fsd.it/fonts/pragmatapro.htm
View
1 vim/bundle/powerline/docs/.gitignore
@@ -1 +0,0 @@
-_build
View
36 vim/bundle/powerline/docs/Makefile
@@ -1,36 +0,0 @@
-# Makefile for Sphinx documentation
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build2
-PAPER =
-BUILDDIR = _build
-
-# Internal variables
-PAPEROPT_a4 = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
-
-GH_PAGES_SOURCES = source Makefile
-GH_SOURCE_BRANCH = develop
-
-.PHONY: clean html gh-pages
-
-clean:
- -rm -rf $(BUILDDIR)/*
-
-html:
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-gh-pages:
- git checkout gh-pages
- find .. -maxdepth 1 ! -name '.git*' -and ! -name 'docs' -exec rm -rf {} \;
- git checkout ${GH_SOURCE_BRANCH} ${GH_PAGES_SOURCES}
- git reset HEAD
- make html
- mv -fv _build/html/* ..
- rm -rf _build ${GH_PAGES_SOURCES}
- git add ..
- git commit -m "Create gh-pages for '`git log develop -1 --pretty=oneline --abbrev-commit`'"
- git push origin gh-pages
- git checkout ${GH_SOURCE_BRANCH}
View
BIN vim/bundle/powerline/docs/source/_static/img/icons/cross.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/icons/error.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/icons/tick.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-insert.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-normal.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-replace.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-mode-visual.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-truncate1.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-truncate2.png
Deleted file not rendered
View
BIN vim/bundle/powerline/docs/source/_static/img/pl-truncate3.png
Deleted file not rendered
View
17 vim/bundle/powerline/docs/source/conf.py
@@ -1,17 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import sys, os
-
-sys.path.insert(0, os.path.abspath('../powerline'))
-
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode']
-source_suffix = '.rst'
-master_doc = 'index'
-project = u'Powerline'
-copyright = u'Kim Silkebækken'
-version = 'beta'
-release = 'beta'
-exclude_patterns = ['_build']
-pygments_style = 'sphinx'
-html_theme = 'nature'
-html_static_path = ['_static']
View
331 vim/bundle/powerline/docs/source/configuration.rst
@@ -1,331 +0,0 @@
-*************
-Configuration
-*************
-
-.. note:: **You DO NOT have to fork the main GitHub repo to personalize your
- Powerline configuration!** Please read through the :ref:`quick-guide` for
- a quick introduction to user configuration.
-
-Powerline is configured with one main configuration file, and with separate
-configuration files for themes and colorschemes. All configuration files are
-written in JSON, with the exception of segment definitions, which are
-written in Python.
-
-Powerline provides default configurations in the following locations:
-
-`Main configuration`_
- :file:`powerline/config.json`
-`Colorschemes`_
- :file:`powerline/colorschemes/{extension}/default.json`
-`Themes`_
- :file:`powerline/themes/{extension}/default.json`
-
-The default configuration files are stored in the main package. User
-configuration files are stored in :file:`$XDG_CONFIG_HOME/powerline` for
-Linux users, and in :file:`~/.config/powerline` for OS X users. This usually
-corresponds to :file:`~/.config/powerline` on both platforms.
-
-.. _quick-guide:
-
-Quick setup guide
-=================
-
-This guide will help you with the initial configuration of Powerline.
-
-Start by copying the entire set of default configuration files to the
-corresponding path in your user config directory:
-
-.. code-block:: sh
-
- mkdir ~/.config/powerline
- cp -R /path/to/powerline/config_files/* ~/.config/powerline
-
-Each extension (vim, tmux, etc.) has its own theme, and they are located in
-:file:`{config directory}/themes/{extension}/default.json`.
-
-If you want to move, remove or customize any of the provided segments, you
-can do that by updating the segment dictionary in the theme you want to
-customize. A segment dictionary looks like this:
-
-.. code-block:: javascript
-
- {
- "name": "segment_name"
- ...
- }
-
-You can move the segment dictionaries around to change the segment
-positions, or remove the entire dictionary to remove the segment from the
-prompt or statusline.
-
-.. note:: It's essential that the contents of all your configuration files
- is valid JSON! It's strongly recommended that you run your configuration
- files through ``jsonlint`` after changing them.
-
-Some segments need a user configuration to work properly. Here's a couple of
-segments that you may want to customize right away:
-
-**E-mail alert segment**
- You have to set your username and password (and possibly server/port)
- for the e-mail alert segment. If you're using GMail it's recommended
- that you `generate an application-specific password
- <https://accounts.google.com/IssuedAuthSubTokens>`_ for this purpose.
-
- Open a theme file, scroll down to the ``email_imap_alert`` segment and
- set your ``username`` and ``password``. The server defaults to GMail's
- IMAP server, but you can set the server/port by adding a ``server`` and
- a ``port`` argument.
-**Weather segment**
- The weather segment will try to find your location using a GeoIP lookup,
- so unless you're on a VPN you probably won't have to change the location
- query.
-
- If you want to change the location query or the temperature unit you'll
- have to update the segment arguments. Open a theme file, scroll down to
- the weather segment and update it to include unit/location query
- arguments:
-
- .. code-block:: javascript
-
- {
- "name": "weather",
- "priority": 50,
- "divider_highlight_group": "background:divider"
- "args": {
- "unit": "f",
- "location_query": "oslo, norway"
- }
- },
-
-Main configuration
-==================
-
-:Location: :file:`powerline/config.json`
-
-The main configuration file defines some common options that applies to all
-extensions, as well as some extension-specific options like themes and
-colorschemes.
-
-Common configuration
---------------------
-
-Common configuration is a subdictionary that is a value of ``common`` key in
-:file:`powerline/config.json` file.
-
-.. _config-term_24bit_colors:
-
-``term_24bit_colors``
- Defines whether to output cterm indices (8-bit) or RGB colors (24-bit)
- to the terminal emulator. See the :ref:`term-feature-support-matrix` for
- information on whether your terminal emulator supports 24-bit colors.
-
-``dividers``
- Defines the dividers used in all Powerline extensions. This option
- should usually only be changed if you don't have a patched font, or if
- you use a font patched with the legacy font patcher.
-
- The ``hard`` dividers are used to divide segments with different
- background colors, while the ``soft`` dividers are used to divide
- segments with the same background color.
-
-.. _config-common-paths:
-
-``paths``
- Defines additional paths which will be searched for modules when using
- :ref:`module segment option <config-themes-seg-module>`. Paths defined
- here have priority when searching for modules.
-
-Extension-specific configuration
---------------------------------
-
-Common configuration is a subdictionary that is a value of ``ext`` key in
-:file:`powerline/config.json` file.
-
-``colorscheme``
- Defines the colorscheme used for this extension.
-
-``theme``
- Defines the theme used for this extension.
-
-``local_themes``
- Defines themes used when certain conditions are met, e.g. for
- buffer-specific statuslines in vim. Requires a custom matcher and theme.
-
-Colorschemes
-============
-
-:Location: :file:`powerline/colorschemes/{extension}/{name}.json`
-
-``name``
- Name of the colorscheme.
-
-.. _config-colorscheme-colors:
-
-``colors``
- Color definitions, consisting of a dict where the key is the name of the
- color, and the value is one of the following:
-
- * A cterm color index.
- * A list with a cterm color index and a hex color string (e.g. ``[123,
- "aabbcc"]``). This is useful for colorschemes that use colors that
- aren't available in color terminals.
-
-.. _config-colorscheme-groups:
-
-``groups``
- Segment highlighting groups, consisting of a dict where the key is the
- name of the highlighting group (usually the function name for function
- segments), and the value is a dict that defines the foreground color,
- background color and optional attributes:
-
- ``fg``
- Foreground color. Must be defined in :ref:`colors
- <config-colorscheme-colors>`.
-
- ``bg``
- Background color. Must be defined in :ref:`colors
- <config-colorscheme-colors>`.
-
- ``attr``
- Optional list of attributes. Valid values are one or more of
- ``bold``, ``italic`` and ``underline``. Note that some attributes
- may be unavailable in some applications or terminal emulators.
-
-``mode_translations``
- Mode-specific highlighting for extensions that support it (e.g. the vim
- extension). It's an easy way of changing a color in a specific mode.
- Consists of a dict where the key is the mode and the value is a dict
- with the following options:
-
- ``colors``
- A dict where the key is the color to be translated in this mode, and
- the value is the new color. Both the key and the value must be
- defined in :ref:`colors <config-colorscheme-colors>`.
-
- ``groups``
- Segment highlighting groups for this mode. Same syntax as the main
- :ref:`groups <config-colorscheme-groups>` option.
-
-Themes
-======
-
-:Location: :file:`powerline/themes/{extension}/{name}.json`
-
-``name``
- Name of the theme.
-
-.. _config-themes-default_module:
-
-``default_module``
- Python module where segments will be looked by default.
-
-``segments``
- A dict with a ``left`` and a ``right`` list, consisting of segment
- dicts. Each segment has the following options:
-
- ``type``
- The segment type. Can be one of ``function`` (default), ``string``
- or ``filler``:
-
- ``function``
- The segment contents is the return value of the function defined
- in the :ref:`name option <config-themes-seg-name>`.
-
- ``string``
- A static string segment where the contents is defined in the
- :ref:`contents option <config-themes-seg-contents>`, and the
- highlighting group is defined in the :ref:`highlight_group
- option <config-themes-seg-highlight_group>`.
-
- ``module``
- .. _config-themes-seg-module:
-
- Function module, only required for function segments. Defaults to
- ``powerline.segments.{extension}``. Default is overriden by
- :ref:`default_module theme option <config-themes-default_module>`.
-
- ``name``
- .. _config-themes-seg-name:
-
- Function name, only required for function segments.
-
- ``highlight_group``
- .. _config-themes-seg-highlight_group:
-
- Highlighting group for this segment. Consists of a prioritized list
- of highlighting groups, where the first highlighting group that is
- available in the colorscheme is used.
-
- ``before``
- A string which will be prepended to the segment contents.
-
- ``after``
- A string which will be appended to the segment contents.
-
- ``contents``
- .. _config-themes-seg-contents:
-
- Segment contents, only required for ``string`` segments.
-
- ``args``
- A dict of arguments to be passed to a ``function`` segment.
-
- ``align``
- Aligns the segments contents to the left (``l``), center (``c``) or
- right (``r``).
-
- ``width``
- Enforces a specific width for this segment.
-
- This segment will work as a spacer if the width is set to ``auto``.
- Several spacers may be used, and the space will be distributed
- equally among all the spacer segments. Spacers may have contents,
- either returned by a function or a static string, and the contents
- can be aligned with the ``align`` property.
-
- ``priority``
- Optional segment priority. Segments with priority ``-1`` (the
- default priority) will always be included, regardless of the width
- of the prompt/statusline.
-
- If the priority is ``0`` or more, the segment may be removed if the
- prompt/statusline width is too small for all the segments to be
- rendered. A lower number means that the segment has a higher
- priority.
-
- Segments are removed according to their priority, with low priority
- segments being removed first.
-
- ``draw_divider``
- Whether to draw a divider between this and the adjacent segment. The
- adjacent segment is to the *right* for segments on the *left* side,
- and vice versa.
-
- ``exclude_modes``
- A list of modes where this segment will be excluded: The segment is
- included in all modes, *except* for the modes in this list.
-
- ``include_modes``
- A list of modes where this segment will be included: The segment is
- *not* included in any modes, *except* for the modes in this list.
-
-Segments
-========
-
-Segments are written in Python, and the default segments provided with
-Powerline are located in :file:`powerline/segments/{extension}.py`.
-User-defined segments can be defined in any module in ``sys.path`` or
-:ref:`paths common configuration option <config-common-paths>`, import is
-always absolute.
-
-Segments are regular Python functions, and they may accept arguments. All
-arguments should have a default value which will be used for themes that
-don't provide an ``args`` dict.
-
-A segment function must return one of the following values:
-
-* ``None``, which will remove the segment from the prompt/statusline.
-* A string, which will be the segment contents.
-* A list of dicts consisting of a ``contents`` string, and
- a ``highlight_group`` list. This is useful for providing a particular
- highlighting group depending on the segment contents.
View
135 vim/bundle/powerline/docs/source/fontpatching.rst
@@ -1,135 +0,0 @@
-.. _font-patching:
-
-*************
-Font patching
-*************
-
-Powerline provides a font patcher for custom glyphs like the segment
-dividers (arrows), branch symbol, padlock symbol, etc. The font patcher
-requires FontForge with Python bindings to work.
-
-Check out the `powerline-fonts
-<https://github.com/Lokaltog/powerline-fonts>`_ repository on GitHub for
-patched versions of some popular programming fonts.
-
-.. warning:: The code points have changed in this version of Powerline! This
- means that you either have to patch your font again, or change the glyphs
- Powerline uses in your user configuration.
-
-.. note:: Powerline no longer works with rxvt-unicode unless you either use
- rxvt-unicode compiled with ``--enable-unicode3``, or you use fonts patched
- with the legacy font patcher and change the glyphs in your user
- configuration.
-
-Glyph table
-===========
-
-Powerline stores all special glyphs in the Unicode *Private Use Area*
-(``U+E000``-``U+F8FF``).
-
-========== ===== ===========
-Code point Glyph Description
-========== ===== ===========
-``U+E0A0``  Version control branch
-``U+E0A1``  LN (line) symbol
-``U+E0A2``  Closed padlock
-``U+E0B0``  Rightwards black arrowhead
-``U+E0B1``  Rightwards arrowhead
-``U+E0B2``  Leftwards black arrowhead
-``U+E0B3``  Leftwards arrowhead
-========== ===== ===========
-
-Usage
-=====
-
-The font patcher is located at :file:`powerline/fontpatcher/fontpatcher.py`.
-It requires Python 2.7 and FontForge compiled with Python bindings to work.
-
-Patched fonts are renamed by default (" for Powerline" is added to the font
-name) so they don't conflict with existing fonts. Use the ``--no-rename``
-option to disable font renaming.
-
-.. note:: Bitmap fonts are not supported, and will probably never be
- supported officially due to difficulty creating a font patcher that works
- for bitmap fonts. The recommended method of patching bitmap fonts is to draw
- the glyphs manually using a tool like ``gbdfed``.
-
-Linux
------
-
-1. Install fontforge with Python bindings. For Ubuntu users the required
- package is ``python-fontforge``, for Arch Linux users the required
- package is ``fontforge``. It should be something similar for other
- distros.
-
-2. Run the font patcher::
-
- $ /path/to/fontpatcher.py MyFontFile.ttf
-
-3. Copy the font file into :file:`~/.fonts` (or another X font directory)::
-
- $ cp "MyFontFile for Powerline.otf" ~/.fonts
-
-4. Update your font cache::
-
- $ fc-cache -vf ~/.fonts
-
- If you're using vim in a terminal you may need to close all open terminal
- windows after updating the font cache.
-
-5. **Gvim users:** Update the GUI font in your :file:`vimrc` file::
-
- set guifont=MyFont\ for\ Powerline
-
- **Terminal users:** Update your terminal configuration to use the patched
- font.
-
-6. Open vim and enjoy your new statusline!
-
-OS X
-----
-
-1. Check if you have a FontForge version with Python support by running
- ``fontforge -version``. You should see something like this::
-
- $ fontforge -version
- Copyright (c) 2000-2011 by George Williams.
- Executable based on sources from 13:48 GMT 22-Feb-2011-D.
- Library based on sources from 13:48 GMT 22-Feb-2011.
- fontforge 20110222
- libfontforge 20110222
-
- Make sure that the executable version number doesn't have ``NoPython`` in
- it. If everything looks OK, skip ahead to step 4.
-
-2. If you have FontForge but with ``NoPython`` in the version number, please
- try to update to a later version::
-
- $ brew uninstall fontforge
- $ brew update
- $ brew install fontforge
-
- **Note:** You may have to use ``--use-clang`` instead of ``--use-gcc``
- when compiling FontForge.
-
-3. If you don't have FontForge, install it with Homebrew::
-
- $ brew update
- $ brew install fontforge
-
-4. Patch your fonts by passing the ``fontpatcher`` script as a parameter to
- FontForge::
-
- $ fontforge -script /path/to/fontpatcher.py MyFontFile.ttf
-
-5. Install the font by double-clicking the font file in Finder and click
- "Install this font" from the preview window.
-
-6. **Gvim users:** Update the GUI font in your :file:`vimrc` file::
-
- set guifont=MyFont\ for\ Powerline
-
- **Terminal users:** Update your terminal configuration to use the patched
- font.
-
-7. Open vim and enjoy your new statusline!
View
20 vim/bundle/powerline/docs/source/index.rst
@@ -1,20 +0,0 @@
-*********
-Powerline
-*********
-
-.. toctree::
- :maxdepth: 2
- :glob:
-
- introduction
- overview
- configuration
- fontpatching
- license-credits
-
-Indices and tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
View
104 vim/bundle/powerline/docs/source/installation/linux.rst
@@ -1,104 +0,0 @@
-:tocdepth: 2
-
-.. _installation-linux:
-
-*********************
-Installation on Linux
-*********************
-
-The following distribution-specific packages are officially supported, and
-they provide an easy way of installing and upgrading Powerline. The packages
-will automatically do most of the configuration for you, but you should
-still skim through this guide so you know how the plugin works.
-
-* `Arch Linux (AUR), Python 2 version <https://aur.archlinux.org/packages/python2-powerline-git/>`_
-* `Arch Linux (AUR), Python 3 version <https://aur.archlinux.org/packages/python-powerline-git/>`_
-* Gentoo Live ebuild (:file:`packages/gentoo/app-misc/powerline/`)
-
-If you're running a distribution without an official package you'll have to
-follow the installation guide below:
-
-Plugin installation
-===================
-
-1. Install Python 3.3+ or Python 2.7.
-2. Install Powerline using the following command::
-
- pip install --user git+git://github.com/Lokaltog/powerline
-
-.. note:: You need to use the GitHub URI when installing Powerline! This
- project is currently unavailable on the PyPI due to a naming conflict
- with an unrelated project.
-
-.. warning:: Installing Powerline with a vim plugin manager like Vundle is
- not recommended and not officially supported.
-
-Font installation
-=================
-
-Powerline provides two ways of installing the required fonts on Linux. The
-recommended method is using ``fontconfig`` if your terminal emulator
-supports it. See the :ref:`term-feature-support-matrix` for details about
-what features your terminal emulator supports.
-
-Fontconfig
-----------
-
-1. Download the `latest version of PowerlineSymbols
- <https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf>`_
- and the `latest version of the fontconfig file
- <https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf>`_.
-2. Move :file:`PowerlineSymbols.otf` to :file:`~/.fonts/` (or another X font
- directory).
-3. Run ``fc-cache -vf ~/.fonts`` to update your font cache.
-4. Move :file:`10-powerline-symbols.conf` to either :file:`~/.fonts.conf.d/`
- or :file:`~/.config/fontconfig/conf.d/`, depending on your fontconfig
- version.
-5. If you don't see the arrow symbols, please close all instances of your
- terminal emulator or gvim. You may also have to restart X for the changes
- to take effect. If you *still* don't see the arrow symbols, please submit
- an issue on GitHub.
-
-Patched font
-------------
-
-1. Download the font of your choice from `powerline-fonts`_. If you can't
- find your preferred font in the `powerline-fonts`_ repo, you'll have to
- patch your own font instead. See :ref:`font-patching` for instructions.
-2. Move your patched font to :file:`~/.fonts/` (or another X font
- directory).
-3. Run ``fc-cache -vf ~/.fonts`` to update your font cache.
-4. Update Gvim or your terminal emulator to use the patched font. (the
- correct font usually ends with *for Powerline*).
-5. If you don't see the arrow symbols, please close all instances of your
- terminal emulator or gvim. You may also have to restart X for the changes
- to take effect. If you *still* don't see the arrow symbols, please submit
- an issue on GitHub.
-
-.. _powerline-fonts: https://github.com/Lokaltog/powerline-fonts
-
-Troubleshooting
-===============
-
-.. contents::
- :local:
-
-I can't see any fancy symbols, what's wrong?
---------------------------------------------
-
-* Make sure that you've configured gvim or your terminal emulator to use
- a patched font (see :ref:`font-patching`).
-* You need to set your ``LANG`` and ``LC_*`` environment variables to
- a UTF-8 locale (e.g. ``LANG=en_US.utf8``). Consult your Linux distro's
- documentation for information about setting these variables correctly.
-* Make sure that vim is compiled with the ``--with-features=big`` flag.
-* If you're using rxvt-unicode, make sure that it's compiled with the
- ``--enable-unicode3`` flag.
-
-The fancy symbols look a bit blurry or "off"!
----------------------------------------------
-
-* Make sure that you have patched all variants of your font (i.e. both the
- regular and the bold font files).
-
-.. include:: troubleshooting-common.rst
View
116 vim/bundle/powerline/docs/source/installation/osx.rst
@@ -1,116 +0,0 @@
-:tocdepth: 2
-
-.. _installation-osx:
-
-********************
-Installation on OS X
-********************
-
-Plugin installation
-===================
-
-Python package
---------------
-
-1. Install a proper Python version (see `issue #39
- <https://github.com/Lokaltog/powerline/issues/39>`_ for a discussion
- regarding the required Python version on OS X)::
-
- sudo port select python python27-apple
-
-2. Install Powerline using the following command::
-
- pip install --user git+git://github.com/Lokaltog/powerline
-
-.. note:: You need to use the GitHub URI when installing Powerline! This
- project is currently unavailable on the PyPI due to a naming conflict
- with an unrelated project.
-
-.. warning:: Installing Powerline with a vim plugin manager like Vundle is
- not recommended and not officially supported.
-
-Vim installation
-----------------
-
-Any terminal vim version with Python 3.3 or Python 2.7 support should work,
-but if you're using MacVim you need to install it using the following
-command::
-
- brew install macvim --env-std --override-system-vim
-
-Font installation
-=================
-
-You need a patched font for Powerline to work on OS X. Check out the
-`powerline-fonts`_ repository on GitHub for patched versions of some popular
-programming fonts.
-
-1. Download the font of your choice and install it by double-clicking the
- font file in Finder and then click :guilabel:`Install this font` in the
- preview window.
-
- If you can't find your preferred font in the `powerline-fonts`_ repo,
- you'll have to patch your own font instead. See :ref:`font-patching` for
- instructions.
-2. Configure MacVim or your terminal emulator to use the patched font (the
- correct font usually ends with *for Powerline*).
-
-.. _powerline-fonts: https://github.com/Lokaltog/powerline-fonts
-
-Troubleshooting
-===============
-
-.. contents::
- :local:
-
-I can't see any fancy symbols, what's wrong?
---------------------------------------------
-
-* If you're using iTerm2, please update to `this revision
- <https://github.com/gnachman/iTerm2/commit/8e3ad6dabf83c60b8cf4a3e3327c596401744af6>`_
- or newer.
-* You need to set your ``LANG`` and ``LC_*`` environment variables to
- a UTF-8 locale (e.g. ``LANG=en_US.utf8``). Consult your Linux distro's
- documentation for information about setting these variables correctly.
-
-The colors look weird in the default OS X Terminal app!
--------------------------------------------------------
-
-* The arrows may have the wrong colors if you have changed the "minimum
- contrast" slider in the color tab of your OS X settings.
-* The default OS X Terminal app is known to have some issues with the
- Powerline colors. Please use another terminal emulator. iTerm2 should work
- fine.
-
-The colors look weird in iTerm2!
---------------------------------
-
-* The arrows may have the wrong colors if you have changed the "minimum
- contrast" slider in the color tab of your OS X settings.
-* Please disable background transparency to resolve this issue.
-
-I receive a ``NameError`` when trying to use Powerline with MacVim!
--------------------------------------------------------------------
-
-* Please install MacVim using this command::
-
- brew install macvim --env-std --override-system-vim
-
- Then install Powerline locally with ``pip install --user``, or by
- running these commands in the ``powerline`` directory::
-
- ./setup.py build
- ./setup.py install --user
-
-I receive an ``ImportError`` when trying to use Powerline on OS X!
-------------------------------------------------------------------
-
-* This is caused by an invalid ``sys.path`` when using system vim and system
- Python. Please try to select another Python distribution::
-
- sudo port select python python27-apple
-
-* See `issue #39 <https://github.com/Lokaltog/powerline/issues/39>`_ for
- a discussion and other possible solutions for this issue.
-
-.. include:: troubleshooting-common.rst
View
32 vim/bundle/powerline/docs/source/installation/troubleshooting-common.rst
@@ -1,32 +0,0 @@
-I'm using tmux and Powerline looks like crap, what's wrong?
------------------------------------------------------------
-
-* You need to tell tmux that it has 256-color capabilities. Add this to your
- :file:`.tmux.conf` to solve this issue::
-
- set -g default-terminal "screen-256color"
-
-* If you're using iTerm2, make sure that you have enabled the setting
- :guilabel:`Set locale variables automatically` in :menuselection:`Profiles
- --> Terminal --> Environment`.
-
-My vim statusline has strange characters like ``^B`` in it!
------------------------------------------------------------
-
-* Please add ``set encoding=utf-8`` to your :file:`vimrc`.
-
-My vim statusline has a lot of ``^`` or underline characters in it!
--------------------------------------------------------------------
-
-* You need to configure the ``fillchars`` setting to disable statusline
- fillchars (see ``:h fillchars`` for details). Add this to your
- :file:`vimrc` to solve this issue:
-
- .. code-block:: vim
-
- set fillchars+=stl:\ ,stlnc:\
-
-My vim statusline is hidden/only appears in split windows!
-----------------------------------------------------------
-
-* Make sure that you have ``set laststatus=2`` in your :file:`vimrc`.
View
65 vim/bundle/powerline/docs/source/introduction.rst
@@ -1,65 +0,0 @@
-************
-Introduction
-************
-
-This is the next version of Powerline, implemented in Python. It aims to
-resolve some of the "unresolvable" problems of the vimscript implementation,
-as well as providing a common code base for all projects that use Powerline
-in some way (e.g. shell prompts and tmux themes).
-
-The project is currently in beta, and most of the functionality in the old
-vimscript project is already implemented.
-
-Screenshots
-===========
-
-**Mode-dependent highlighting**
-
-* .. image:: _static/img/pl-mode-normal.png
- :alt: Normal mode
-* .. image:: _static/img/pl-mode-insert.png
- :alt: Insert mode
-* .. image:: _static/img/pl-mode-visual.png
- :alt: Visual mode
-* .. image:: _static/img/pl-mode-replace.png
- :alt: Replace mode
-
-**Automatic truncation of segments in small windows**
-
-* .. image:: _static/img/pl-truncate1.png
- :alt: Truncation illustration
-* .. image:: _static/img/pl-truncate2.png
- :alt: Truncation illustration
-* .. image:: _static/img/pl-truncate3.png
- :alt: Truncation illustration
-
-The font in the screenshots is `Pragmata Pro`_ by Fabrizio Schiavi.
-
-.. _`Pragmata Pro`: http://www.fsd.it/fonts/pragmatapro.htm
-
-Feature highlights
-==================
-
-* **Better performance.** Python performs quite a bit better than vimscript,
- and by having most of the code in Python instead of vimscript it's also
- much easier to profile the code and eliminate bottlenecks.
-* **A much leaner code base.** With most of the functionality of the old
- project implemented the new version consists of less than half the amount
- of code.
-* **Automatic removal of less important segments in small windows.** Not all
- information is equally important to have in the statusline, and segments
- with e.g. encoding and file format information are automatically removed
- in smaller windows.
-* **Dynamic statusline evaluation in Python.** Statuslines are dynamically
- rendered in Python instead of relying on vim's statusline flags, which
- allows much more flexibility when creating statuslines.
-* **The possibility of adding more segments.** Because of vim's hardcoded
- limitation of 80 statusline options, the vimscript implementation
- triggered an error when adding more segments to the default theme. Since
- segment contents are now rendered as plain text in Python it's possible to
- add many more segments in the statusline before reaching this limit.
-* **New and improved theme and colorscheme syntax.** Themes and colorschemes
- are now written in JSON, with a much cleaner syntax that's easier to learn
- and work with. Themes and colorschemes are also much more configurable,
- and it's easy to write your own and store them in your home config
- directory.
View
50 vim/bundle/powerline/docs/source/license-credits.rst
@@ -1,50 +0,0 @@
-*******************
-License and credits
-*******************
-
-License
-=======
-
-.. image:: http://i.creativecommons.org/l/by-sa/3.0/88x31.png
- :target: `Creative Commons Attribution-ShareAlike 3.0 Unported License`_
-
-Powerline is licensed under a `Creative Commons Attribution-ShareAlike 3.0
-Unported License`_.
-
-.. _`Creative Commons Attribution-ShareAlike 3.0 Unported License`: http://creativecommons.org/licenses/by-sa/3.0/
-
-Credits
-=======
-
-:Author: `Kim Silkebækken <https://github.com/Lokaltog>`_
-:Main contributors:
- * `ZyX-I <https://github.com/ZyX-I>`_
- * `Liam Curry <https://github.com/liamcurry>`_
-
-The glyphs in the font patcher are created by Fabrizio Schiavi, creator of
-the excellent coding font `Pragmata Pro`_.
-
-.. _`Pragmata Pro`: http://www.fsd.it/fonts/pragmatapro.htm
-
-Contributing
-============
-
-If you experience any bugs or have any feature requests, please `open an
-issue on GitHub <https://github.com/Lokaltog/powerline/issues>`_.
-
-Pull request guidelines
------------------------
-
-This project uses `Git Flow`_ for maintaining a clean history and
-a consistent way of branching and merging new features. All commit messages
-must follow the guidelines described in `Tim Pope's blog post about git
-commit messages`_.
-
-All code must use tabs for indentation and spaces for alignment.
-
-Python code must pass flake8 tests with ``flake8 --ignore=W191,E501`` (ignore
-tab warnings and line length errors).
-
-.. _`Git Flow`: http://nvie.com/posts/a-successful-git-branching-model/
-.. _`Tim Pope's blog post about git commit messages`: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
-
View
201 vim/bundle/powerline/docs/source/overview.rst
@@ -1,201 +0,0 @@
-********
-Overview
-********
-
-Requirements
-============
-
-Powerline requires Python 3.3 or Python 2.7 to work.
-
-Vim plugin requirements
------------------------
-
-The vim plugin requires a vim version with Python support compiled in. You
-can check if your vim supports Python by running ``vim --version | grep
-+python``.
-
-If your vim version doesn't have support for Python, you'll have to compile
-it with the ``--enable-pythoninterp`` flag (``--enable-python3interp`` if
-you want Python 3 support instead). Note that this also requires the related
-Python headers to be installed on your system. Please consult your
-distribution's documentation for details on how to compile and install
-packages.
-
-Vim version 7.3.661 or newer is recommended for performance reasons.
-
-Terminal emulator requirements
-------------------------------
-
-Powerline uses several special glyphs to get the arrow effect and some
-custom symbols for developers. This requires that you either have a symbol
-font or a patched font on your system. Your terminal emulator must also
-support either patched fonts or fontconfig for Powerline to work properly.
-
-You can also enable :ref:`24-bit color support <config-term_24bit_colors>`
-if your terminal emulator supports it.
-
-.. table:: Application/terminal emulator feature support matrix
- :name: term-feature-support-matrix
-
- ===================== ======= ===================== ===================== =====================
- Name OS Patched font support Fontconfig support 24-bit color support
- ===================== ======= ===================== ===================== =====================
- Gnome Terminal Linux |i_yes| |i_yes| |i_no|
- Gvim Linux |i_yes| |i_no| |i_yes|
- iTerm2 OS X |i_yes| |i_no| |i_no|
- Konsole Linux |i_yes| |i_yes| |i_yes|
- lxterminal Linux |i_yes| |i_yes| |i_no|
- MacVim OS X |i_yes| |i_no| |i_yes|
- rxvt-unicode Linux |i_partial| [#]_ |i_no| |i_no|
- st Linux |i_yes| |i_yes| |i_no|
- Terminal.app OS X |i_yes| |i_no| |i_no|
- Xfce Terminal Linux |i_yes| |i_yes| |i_no|
- xterm Linux |i_yes| |i_no| |i_partial| [#]_
- ===================== ======= ===================== ===================== =====================
-
-.. |i_yes| image:: _static/img/icons/tick.png
-.. |i_no| image:: _static/img/icons/cross.png
-.. |i_partial| image:: _static/img/icons/error.png
-
-.. [#] Must be compiled with ``--enable-unicode3`` for the
- patched font to work.
-.. [#] Uses nearest color from 8-bit palette.
-
-Optional dependencies
----------------------
-
-The following Python packages are not required by all segments, but
-recommended for optimal performance and extra features:
-
-* ``pygit2``
-* ``mercurial``
-* ``psutil``
-
-Installation
-============
-
-* :ref:`installation-linux`
-* :ref:`installation-osx`
-
-Usage
-=====
-
-Vim statusline
---------------
-
-Add the following line to your :file:`vimrc`:
-
-.. code-block:: vim
-
- python from powerline.bindings.vim import source_plugin; source_plugin()
-
-If you want to enable Python 3 support, substitute the ``python`` command
-above with ``python3``. Note that this is somewhat experimental as some
-segments don't have support for Python 3 yet.
-
-If Powerline is installed somewhere other than Python's site-packages
-directories you'll either have to use a plugin manager like Vundle, or
-source the vim plugin file with an absolute path to the plugin location.
-
-Add the following line to your :file:`vimrc`, where ``{path}`` is the path
-to the main Powerline project directory:
-
-.. code-block:: vim
-
- source {path}/powerline/bindings/vim/plugin/source_plugin.vim
-
-Shell prompts
--------------
-
-Bash prompt
-^^^^^^^^^^^
-
-Add the following line to your :file:`bashrc`, where ``{path}`` is the
-absolute path to your Powerline installation directory:
-
-.. code-block:: bash
-
- . {path}/powerline/bindings/bash/powerline.sh
-
-Zsh prompt
-^^^^^^^^^^
-
-Add the following line to your :file:`zshrc`, where ``{path}`` is the
-absolute path to your Powerline installation directory:
-
-.. code-block:: bash
-
- . {path}/powerline/bindings/zsh/powerline.zsh
-
-Tmux statusline
-^^^^^^^^^^^^^^^
-
-Add the following line to your :file:`tmux.conf`, where ``{path}`` is the
-absolute path to your Powerline installation directory::
-
- source '{path}/powerline/bindings/tmux/powerline.conf'
-
-IPython prompt
-^^^^^^^^^^^^^^
-
-For IPython<0.11 add the following lines to your
-:file:`.ipython/ipy_user_conf.py`::
-
- # top
- from powerline.bindings.ipython.pre_0_11 import setup as powerline_setup
-
- # main() function (assuming you launched ipython without configuration to
- # create skeleton ipy_user_conf.py file):
- powerline_setup()
-
-For IPython>=0.11 add the following line to your :file:`ipython_config.py`
-file in the profile you are using::
-
- c.InteractiveShellApp.extensions = [
- 'powerline.bindings.ipython.post_0_11'
- ]
-
-IPython=0.11* is not supported and does not work. IPython<0.10 was not
-tested (not installable by pip).
-
-Awesome widget
---------------
-
-.. note:: Powerline currently only supports awesome 3.5.
-
-.. note:: The Powerline widget will spawn a shell script that runs in the
- background and updates the statusline with ``awesome-client``.
-
-Add the following to your :file:`rc.lua`, where ``{path}`` is the absolute
-path to your Powerline installation directory:
-
-.. code-block:: lua
-
- package.path = package.path .. ';{path}/powerline/bindings/awesome/?.lua'
- require('powerline')
-
-Then add the ``powerline_widget`` to your ``wibox``:
-
-.. code-block:: lua
-
- right_layout:add(powerline_widget)
-
-Qtile widget
-------------
-
-Add the following to your :file:`~/.config/qtile/config.py`:
-
-.. code-block:: python
-
- from powerline.bindings.qtile.widget import Powerline
-
- screens = [
- Screen(
- top=bar.Bar([
- # ...
- Powerline(timeout=2),
- # ...
- ],
- ),
- ),
- ]
View
69 vim/bundle/powerline/font/10-powerline-symbols.conf
@@ -1,69 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-
-<fontconfig>
- <alias>
- <family>monospace</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Droid Sans Mono</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>DejaVu Sans Mono</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Envy Code R</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Inconsolata</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Lucida Console</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Monaco</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Pragmata</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>PragmataPro</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Menlo</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Source Code Pro</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Consolas</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Anonymous pro</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Bitstream Vera Sans Mono</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Liberation Mono</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
- <alias>
- <family>Ubuntu Mono</family>
- <prefer><family>PowerlineSymbols</family></prefer>
- </alias>
-</fontconfig>
View
BIN vim/bundle/powerline/font/PowerlineSymbols.otf
Binary file not shown.
View
235 vim/bundle/powerline/font/fontpatcher-symbols.sfd
@@ -1,235 +0,0 @@
-SplineFontDB: 3.0
-FontName: PowerlineSymbols
-FullName: PowerlineSymbols
-FamilyName: PowerlineSymbols
-Weight: Medium
-Copyright: Created with FontForge 2.0 (http://fontforge.sf.net)
-UComments: "2012-12-17: Created."
-Version: 001.000
-ItalicAngle: 0
-UnderlinePosition: -100
-UnderlineWidth: 50
-Ascent: 1638
-Descent: 410
-LayerCount: 2
-Layer: 0 0 "Back" 1
-Layer: 1 0 "Fore" 0
-XUID: [1021 211 26716215 11183012]
-OS2Version: 0
-OS2_WeightWidthSlopeOnly: 0
-OS2_UseTypoMetrics: 1
-CreationTime: 1355758773
-ModificationTime: 1355865048
-OS2TypoAscent: 0
-OS2TypoAOffset: 1
-OS2TypoDescent: 0
-OS2TypoDOffset: 1
-OS2TypoLinegap: 0
-OS2WinAscent: 0
-OS2WinAOffset: 1
-OS2WinDescent: 0
-OS2WinDOffset: 1
-HheadAscent: 0
-HheadAOffset: 1
-HheadDescent: 0
-HheadDOffset: 1
-OS2Vendor: 'PfEd'
-MarkAttachClasses: 1
-DEI: 91125
-Encoding: UnicodeBmp
-Compacted: 1
-UnicodeInterp: none
-NameList: Adobe Glyph List
-DisplaySize: -24
-AntiAlias: 1
-FitToEm: 1
-WinInfo: 0 31 16
-BeginPrivate: 0
-EndPrivate
-BeginChars: 65536 8
-
-StartChar: uniE0A0
-Encoding: 57504 57504 0
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-426 -365 m 1
- 150 -365 l 1
- 150 117 l 2
- 150 236.333333333 176.333333333 333.666666667 229 409 c 1
- 265 461.666666667 321.333333333 513 398 563 c 2
- 550 662 l 2
- 610 701.333333333 652.833333333 747.5 678.5 800.5 c 128
- 704.166666667 853.5 717 923.333333333 717 1010 c 2
- 717 1339 l 1
- 508 1339 l 1
- 800 1681 l 1
- 1092 1339 l 1
- 883 1339 l 1
- 883 954 l 2
- 883 826 865.166666667 727.833333333 829.5 659.5 c 128
- 793.833333333 591.166666667 740.333333333 533.666666667 669 487 c 1
- 594 437 l 2
- 532 396.333333333 489.333333333 355 466 313 c 0
- 439.333333333 265.666666667 426 200.333333333 426 117 c 2
- 426 -365 l 1
-426 820 m 1
- 150 642 l 1
- 150 1950 l 1
- 426 1950 l 1
- 426 820 l 1
-EndSplineSet
-EndChar
-
-StartChar: uniE0A1
-Encoding: 57505 57505 1
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-700 963 m 1
- 700 831 l 1
- 194 831 l 1
- 194 1731 l 1
- 349 1731 l 1
- 349 963 l 1
- 700 963 l 1
-706 750 m 1
- 865 750 l 1
- 865 -150 l 1
- 698 -150 l 1
- 453 435 l 1
- 472 45 l 1
- 472 -150 l 1
- 315 -150 l 1
- 315 750 l 1
- 480 750 l 1
- 727 163 l 1
- 706 592 l 1
- 706 750 l 1
-EndSplineSet
-EndChar
-
-StartChar: uniE0A2
-Encoding: 57506 57506 2
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-265 0 m 2
- 171 0 124 47 124 141 c 2
- 124 830 l 2
- 124 930.666666667 164.333333333 981 245 981 c 1
- 245 1287 l 2
- 245 1378.33333333 273 1454.33333333 329 1515 c 0
- 383 1573 450 1602 530 1602 c 256
- 610 1602 677 1573 731 1515 c 0
- 787 1454.33333333 815 1378.33333333 815 1287 c 2
- 815 981 l 1
- 895.666666667 981 936 930.666666667 936 830 c 2
- 936 141 l 2
- 936 47 889 0 795 0 c 2
- 265 0 l 2
-530 1472 m 256
- 485.333333333 1472 449.5 1455.33333333 422.5 1422 c 128
- 395.5 1388.66666667 382 1343.66666667 382 1287 c 2
- 382 981 l 1
- 678 981 l 1
- 678 1287 l 2
- 678 1343.66666667 664.5 1388.66666667 637.5 1422 c 128
- 610.5 1455.33333333 574.666666667 1472 530 1472 c 256
-586 236 m 1
- 586 559 l 1
- 631.333333333 582.333333333 654 619.333333333 654 670 c 0
- 654 704 641.833333333 733.166666667 617.5 757.5 c 128
- 593.166666667 781.833333333 564 794 530 794 c 256
- 496 794 466.833333333 781.833333333 442.5 757.5 c 128
- 418.166666667 733.166666667 406 704 406 670 c 0
- 406 619.333333333 428.666666667 582.333333333 474 559 c 1
- 474 236 l 1
- 586 236 l 1
-EndSplineSet
-EndChar
-
-StartChar: uniE0B0
-Encoding: 57520 57520 3
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-0 1950 m 1
- 1060 788 l 1
- 0 -375 l 1
- 0 1950 l 1
-EndSplineSet
-EndChar
-
-StartChar: uniE0B1
-Encoding: 57521 57521 4
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
--57 1812 m 1
- 39 1907 l 1
- 1060 788 l 1
- 39 -331 l 1
- -57 -236 l 1
- 875 788 l 1
- -57 1812 l 1
-EndSplineSet
-EndChar
-
-StartChar: uniE0B2
-Encoding: 57522 57522 5
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-1060 -375 m 1
- 0 788 l 1
- 1060 1950 l 1
- 1060 -375 l 1
-EndSplineSet
-EndChar
-
-StartChar: uniE0B3
-Encoding: 57523 57523 6
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-185 788 m 1
- 1117 -236 l 1
- 1021 -331 l 1
- 0 788 l 1
- 1021 1907 l 1
- 1117 1812 l 1
- 185 788 l 1
-EndSplineSet
-EndChar
-
-StartChar: block
-Encoding: 9608 9608 7
-Width: 1060
-Flags: HW
-LayerCount: 2
-Fore
-SplineSet
-0 1950 m 1
- 1060 1950 l 1
- 1060 -375 l 1
- 0 -375 l 1
- 0 1950 l 1
-EndSplineSet
-EndChar
-EndChars
-EndSplineFont
View
106 vim/bundle/powerline/font/fontpatcher.py
@@ -1,106 +0,0 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
-
-import argparse
-import sys
-
-try:
- import fontforge
- import psMat
-except ImportError:
- sys.stderr.write('The required FontForge modules could not be loaded.\n\n')
- if sys.version_info.major > 2:
- sys.stderr.write('FontForge only supports Python 2. Please run this script with the Python 2 executable - e.g. "python2 {0}"\n'.format(sys.argv[0]))
- else:
- sys.stderr.write('You need FontForge with Python bindings for this script to work.\n')
- sys.exit(1)
-
-# Handle command-line arguments
-parser = argparse.ArgumentParser(description='Font patcher for Powerline. Requires FontForge with Python bindings. Stores the patched font as a new, renamed font file by default.')
-parser.add_argument('target_fonts', help='font files to patch', metavar='font', nargs='+', type=argparse.FileType('rb'))
-parser.add_argument('--no-rename', help='don\'t add " for Powerline" to the font name', default=True, action='store_false', dest='rename_font')
-parser.add_argument('--source-font', help='source symbol font', metavar='font', dest='source_font', default='{0}/fontpatcher-symbols.sfd'.format(sys.path[0]), type=argparse.FileType('rb'))
-args = parser.parse_args()
-
-
-class FontPatcher(object):
- def __init__(self, source_font, target_fonts, rename_font=True):
- self.source_font = fontforge.open(source_font.name)
- self.target_fonts = (fontforge.open(target_font.name) for target_font in target_fonts)
- self.rename_font = rename_font
-
- def patch(self):
- for target_font in self.target_fonts:
- source_font = self.source_font
- target_font_em_original = target_font.em
- target_font.em = 2048
- target_font.encoding = 'ISO10646'
-
- # Rename font
- if self.rename_font:
- target_font.familyname += ' for Powerline'
- target_font.fullname += ' for Powerline'
- target_font.fontname += 'ForPowerline'
- target_font.appendSFNTName('English (US)', 'Preferred Family', target_font.familyname)
- target_font.appendSFNTName('English (US)', 'Compatible Full', target_font.fullname)
-
- source_bb = source_font['block'].boundingBox()
- target_bb = [0, 0, 0, 0]
- target_font_width = 0
-
- # Find the biggest char width and height in the Latin-1 extended range and the box drawing range
- # This isn't ideal, but it works fairly well - some fonts may need tuning after patching
- for cp in range(0x00, 0x17f) + range(0x2500, 0x2600):
- try:
- bbox = target_font[cp].boundingBox()
- except TypeError:
- continue
- if not target_font_width:
- target_font_width = target_font[cp].width
- if bbox[0] < target_bb[0]:
- target_bb[0] = bbox[0]
- if bbox[1] < target_bb[1]:
- target_bb[1] = bbox[1]
- if bbox[2] > target_bb[2]:
- target_bb[2] = bbox[2]
- if bbox[3] > target_bb[3]:
- target_bb[3] = bbox[3]
-
- # Find source and target size difference for scaling
- x_ratio = (target_bb[2] - target_bb[0]) / (source_bb[2] - source_bb[0])
- y_ratio = (target_bb[3] - target_bb[1]) / (source_bb[3] - source_bb[1])
- scale = psMat.scale(x_ratio, y_ratio)
-
- # Find source and target midpoints for translating
- x_diff = target_bb[0] - source_bb[0]
- y_diff = target_bb[1] - source_bb[1]
- translate = psMat.translate(x_diff, y_diff)
- transform = psMat.compose(scale, translate)
-
- # Create new glyphs from symbol font
- for source_glyph in source_font.glyphs():
- if source_glyph == source_font['block']:
- # Skip the symbol font block glyph
- continue
-
- # Select and copy symbol from its encoding point
- source_font.selection.select(source_glyph.encoding)
- source_font.copy()
-
- # Select and paste symbol to its unicode code point
- target_font.selection.select(source_glyph.unicode)
- target_font.paste()
-
- # Transform the glyph
- target_font.transform(transform)
-
- # Reset the font's glyph width so it's still considered monospaced
- target_font[source_glyph.unicode].width = target_font_width
-
- target_font.em = target_font_em_original
-
- # Generate patched font
- target_font.generate('{0}.otf'.format(target_font.fullname))
-
-fp = FontPatcher(args.source_font, args.target_fonts, args.rename_font)
-fp.patch()
View
4 vim/bundle/powerline/packages/archlinux/python-powerline-git/.gitignore
@@ -1,4 +0,0 @@
-*
-!.gitignore
-!PKGBUILD
-!*.install
View
65 vim/bundle/powerline/packages/archlinux/python-powerline-git/PKGBUILD
@@ -1,65 +0,0 @@
-# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
-
-pkgbase=python-powerline
-pkgname=python-powerline-git
-pkgver=20130131
-pkgrel=1
-pkgdesc='The ultimate statusline/prompt utility.'
-url='https://github.com/Lokaltog/powerline'
-license=('CC BY-SA 3.0')
-arch=('any')
-depends=('python>=3.3')
-makedepends=('git' 'python-distribute')
-optdepends=('python-psutil: improved system information'
- 'python-pygit2: improved git support'
- 'zsh: better shell prompt')
-conflicts=('powerline-git')
-install='powerline.install'
-source=()
-
-_gitroot="https://github.com/Lokaltog/powerline.git"
-_gitname="powerline"
-_gitbranch="develop"
-
-build() {
- cd "${srcdir}"
-
- msg "Connecting to GitHub..."
-
- if [ -d "${srcdir}/${_gitname}" ]; then
- cd "${_gitname}"
- git pull origin "${_gitbranch}"
- msg "The local files are updated."
- else
- git clone "${_gitroot}"
- cd "${_gitname}"
- git checkout "${_gitbranch}"
- fi
-
- msg "Git checkout done or server timeout."
-}
-
-package() {
- cd "${srcdir}/${_gitname}"
- python setup.py install --root="${pkgdir}" --optimize=1 || return 1
-
- msg2 "Installing fonts..."
- install -dm755 "${pkgdir}/usr/share/fonts/TTF/"
- install -dm755 "${pkgdir}/etc/fonts/conf.avail"
- install -dm755 "${pkgdir}/etc/fonts/conf.d"
- install -m644 "font/PowerlineSymbols.otf" "${pkgdir}/usr/share/fonts/TTF/PowerlineSymbols.otf"
- install -m644 "font/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.avail/10-powerline-symbols.conf"
- ln -s "../conf.avail/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.d/10-powerline-symbols.conf"
-
- msg2 "Installing vim plugin..."
- install -dm755 "${pkgdir}/usr/share/vim/vimfiles/plugin"
- install -m644 "powerline/bindings/vim/powerline.vim" "${pkgdir}/usr/share/vim/vimfiles/plugin/powerline.vim"
-
- msg2 "Installing zsh plugin..."
- install -dm755 "${pkgdir}/usr/share/zsh/site-contrib"
- install -m644 "powerline/bindings/zsh/powerline.zsh" "${pkgdir}/usr/share/zsh/site-contrib/powerline.zsh"
-
- msg2 "Installing tmux configuration..."
- install -dm755 "${pkgdir}/usr/share/tmux"
- install -m644 "powerline/bindings/tmux/powerline.conf" "${pkgdir}/usr/share/tmux/powerline.conf"
-}
View
43 vim/bundle/powerline/packages/archlinux/python-powerline-git/powerline.install
@@ -1,43 +0,0 @@
-post_install() {
- echo "Updating font cache..."
- fc-cache -f
-
- echo "
-IMPORTANT
-=========
-
-Powerline requires custom glyphs to work properly. A font with these glyphs has
-been installed along with a fontconfig file which enables the glyphs for many
-common coding fonts.
-
-If Powerline doesn't work out of the box on your system, please submit an issue
-on GitHub: https://github.com/Lokaltog/powerline/issues
-
-Consult the documentation for detailed installation instructions and
-troubleshooting information: http://lokaltog.github.com/powerline/
-
-Vim installation
-----------------
-
-The plugin has been installed and is enabled by default.
-
-Zsh installation
-----------------
-
-Add the following line to your ~/.zshrc:
-
- . /usr/share/zsh/site-contrib/powerline.zsh
-
-Tmux installation
------------------
-
-Add the following line to your ~/.tmux.conf:
-
- source '/usr/share/tmux/powerline.conf'
-"
-}
-
-post_remove() {
- echo "Updating font cache..."
- fc-cache -f
-}
View
4 vim/bundle/powerline/packages/archlinux/python2-powerline-git/.gitignore
@@ -1,4 +0,0 @@
-*
-!.gitignore
-!PKGBUILD
-!*.install
View
66 vim/bundle/powerline/packages/archlinux/python2-powerline-git/PKGBUILD
@@ -1,66 +0,0 @@
-# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
-
-pkgbase=python-powerline
-pkgname=python2-powerline-git
-pkgver=20130124
-pkgrel=1
-pkgdesc='The ultimate statusline/prompt utility.'
-url='https://github.com/Lokaltog/powerline'
-license=('CC BY-SA 3.0')
-arch=('any')
-depends=('python2>=2.7')
-makedepends=('git' 'python2-distribute')
-optdepends=('python2-psutil: improved system information'
- 'python2-pygit2: improved git support'
- 'mercurial: improved mercurial support'
- 'zsh: better shell prompt')
-conflicts=('powerline-git')
-install='powerline.install'
-source=()
-
-_gitroot="https://github.com/Lokaltog/powerline.git"
-_gitname="powerline"
-_gitbranch="develop"
-
-build() {
- cd "${srcdir}"
-
- msg "Connecting to GitHub..."
-
- if [ -d "${srcdir}/${_gitname}" ]; then
- cd "${_gitname}"
- git pull origin "${_gitbranch}"
- msg "The local files are updated."
- else
- git clone "${_gitroot}"
- cd "${_gitname}"
- git checkout "${_gitbranch}"
- fi
-
- msg "Git checkout done or server timeout."
-}
-
-package() {
- cd "${srcdir}/${_gitname}"
- python2 setup.py install --root="${pkgdir}" --optimize=1 || return 1
-
- msg2 "Installing fonts..."
- install -dm755 "${pkgdir}/usr/share/fonts/TTF/"
- install -dm755 "${pkgdir}/etc/fonts/conf.avail"
- install -dm755 "${pkgdir}/etc/fonts/conf.d"
- install -m644 "font/PowerlineSymbols.otf" "${pkgdir}/usr/share/fonts/TTF/PowerlineSymbols.otf"
- install -m644 "font/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.avail/10-powerline-symbols.conf"
- ln -s "../conf.avail/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.d/10-powerline-symbols.conf"
-
- msg2 "Installing vim plugin..."
- install -dm755 "${pkgdir}/usr/share/vim/vimfiles/plugin"
- install -m644 "powerline/bindings/vim/powerline.vim" "${pkgdir}/usr/share/vim/vimfiles/plugin/powerline.vim"
-
- msg2 "Installing zsh plugin..."
- install -dm755 "${pkgdir}/usr/share/zsh/site-contrib"
- install -m644 "powerline/bindings/zsh/powerline.zsh" "${pkgdir}/usr/share/zsh/site-contrib/powerline.zsh"
-
- msg2 "Installing tmux configuration..."
- install -dm755 "${pkgdir}/usr/share/tmux"
- install -m644 "powerline/bindings/tmux/powerline.conf" "${pkgdir}/usr/share/tmux/powerline.conf"
-}
View
43 vim/bundle/powerline/packages/archlinux/python2-powerline-git/powerline.install
@@ -1,43 +0,0 @@
-post_install() {
- echo "Updating font cache..."
- fc-cache -f
-
- echo "
-IMPORTANT
-=========
-
-Powerline requires custom glyphs to work properly. A font with these glyphs has
-been installed along with a fontconfig file which enables the glyphs for many
-common coding fonts.
-
-If Powerline doesn't work out of the box on your system, please submit an issue
-on GitHub: https://github.com/Lokaltog/powerline/issues
-
-Consult the documentation for detailed installation instructions and
-troubleshooting information: http://lokaltog.github.com/powerline/
-
-Vim installation
-----------------
-
-The plugin has been installed and is enabled by default.
-
-Zsh installation
-----------------
-
-Add the following line to your ~/.zshrc:
-
- . /usr/share/zsh/site-contrib/powerline.zsh
-
-Tmux installation
------------------
-
-Add the following line to your ~/.tmux.conf:
-
- source '/usr/share/tmux/powerline.conf'
-"
-}
-
-post_remove() {
- echo "Updating font cache..."
- fc-cache -f
-}
View
1 vim/bundle/powerline/packages/gentoo/app-misc/powerline/Manifest
@@ -1 +0,0 @@
-EBUILD powerline-9999.ebuild 1893 SHA256 89fb4b832b6ef2eda7b9d013ab7471cf9252f68266428cf9ad2e04b913ee44d4 SHA512 606110718187f98adb7dae2c7ff8b90288b7a7613e06a92a16ecac7ca98ef6acbde2c44ee3364bd5878315b5dc00bc8ae0bd4ef84300b93e3ed39827c8cc004b WHIRLPOOL 332205cc8139e30907f83d8299f2bea9fd9adf9de518397bdd74d7ab1baaa0d1bc61756cb6844405e81583e7e6b11006c5f9c7f9a82f663a4f4a9cceadd99513
View
69 vim/bundle/powerline/packages/gentoo/app-misc/powerline/powerline-9999.ebuild
@@ -1,69 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-9999.ebuild,v 1.1 2013/01/11 09:59:31 mgorny Exp $
-
-EAPI="5"
-PYTHON_COMPAT=( python{2_7,3_3} )
-
-#if LIVE
-EGIT_REPO_URI="https://github.com/Lokaltog/${PN}"
-EGIT_BRANCH="develop"
-inherit git
-#endif
-
-inherit distutils-r1 eutils font
-DESCRIPTION="The ultimate statusline/prompt utility."
-HOMEPAGE="http://github.com/Lokaltog/powerline"
-SRC_URI=""
-
-LICENSE="CC-Attribution-ShareAlike-3.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="vim zsh doc"
-
-#if LIVE
-SRC_URI=
-KEYWORDS=
-#endif
-
-S="${WORKDIR}/${PN}"
-
-RDEPEND="vim? ( || ( app-editors/vim[python] app-editors/gvim[python] ) )"
-DEPEND="doc? ( dev-python/sphinx dev-python/docutils )"
-
-FONT_SUFFIX="otf"
-FONT_S="${S}/font"
-
-FONT_CONF=(
- "${FONT_S}/10-powerline-symbols.conf"
-)
-
-src_compile() {
- distutils-r1_src_compile
- if use doc ; then
- einfo "Generating documentation"
- sphinx-build -b html docs/source docs_output
- fi
-}
-
-src_install() {
- unset DOCS
- font_src_install
- if use vim ; then
- insinto /usr/share/vim/vimfiles/plugin
- doins powerline/bindings/vim/powerline.vim
- fi
- # rm powerline/bindings/vim/powerline.vim
- if use zsh ; then
- insinto /usr/share/zsh/site-contrib
- doins powerline/bindings/zsh/powerline.zsh
- elog ""
- elog "To enable powerline prompt add"
- elog " . /usr/share/zsh/site-contrib/powerline.zsh"
- elog "to your zshrc."
- elog ""
- fi
- rm powerline/bindings/zsh/powerline.zsh
- distutils-r1_src_install
- use doc && dohtml -r docs_output/*
-}
View
0 vim/bundle/powerline/powerline/__init__.py
No changes.
View
0 vim/bundle/powerline/powerline/bindings/__init__.py
No changes.
View
11 vim/bundle/powerline/powerline/bindings/awesome/powerline.lua
@@ -1,11 +0,0 @@
-local wibox = require('wibox')
-local awful = require('awful')
-
-powerline_widget = wibox.widget.textbox()
-powerline_widget:set_align('right')
-
-function powerline(mode, widget) end
-
-bindings_path = string.gsub(debug.getinfo(1).source:match('@(.*)$'), '/[^/]+$', '')
-powerline_cmd = bindings_path .. '/powerline.sh'
-awful.util.spawn_with_shell('ps ax -u $USER | grep "' .. powerline_cmd .. '" | grep -v grep || (' .. powerline_cmd .. ')')
View
10 vim/bundle/powerline/powerline/bindings/awesome/powerline.sh
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-SLEEP=2
-[[ "$1" != "" ]] && SLEEP="$1"
-
-while true; do
- PL_AWESOME_RIGHT=$(powerline wm right -r pango_markup)
- echo "powerline_widget:set_markup('$PL_AWESOME_RIGHT')" | awesome-client
- sleep $SLEEP
-done
View
19 vim/bundle/powerline/powerline/bindings/bash/powerline.sh
@@ -1,19 +0,0 @@
-_powerline_tmux_setenv() {
- if [[ -n "$TMUX" ]]; then
- tmux setenv TMUX_"$1"_$(tmux display -p "#D" | tr -d %) "$2"
- fi
-}
-
-_powerline_tmux_set_pwd() {
- _powerline_tmux_setenv PWD "$PWD"
-}
-
-_powerline_tmux_set_columns() {
- _powerline_tmux_setenv COLUMNS "$COLUMNS"
-}
-
-trap "_powerline_tmux_set_columns" SIGWINCH
-kill -SIGWINCH "$$"
-
-export PROMPT_COMMAND="_powerline_tmux_set_pwd"
-export PS1='$(powerline shell left --last_exit_code=$?)'
View
0 vim/bundle/powerline/powerline/bindings/ipython/__init__.py
No changes.
View
26 vim/bundle/powerline/powerline/bindings/ipython/post_0_11.py
@@ -1,26 +0,0 @@
-from powerline.core import Powerline
-
-from IPython.core.prompts import PromptManager
-
-
-class PowerlinePromptManager(PromptManager):
- powerline = None
-
- def __init__(self, powerline, **kwargs):
- self.powerline = powerline
- super(PowerlinePromptManager, self).__init__(**kwargs)
-
- def render(self, name, color=True, *args, **kwargs):
- if name != 'in':
- return super(PowerlinePromptManager, self).render(name, color, *args, **kwargs)
- res, res_nocolor = self.powerline.renderer.render(output_raw=True)
- self.txtwidth = len(res_nocolor)
- self.width = self.txtwidth
- return res if color else res_nocolor
-
-
-def load_ipython_extension(ip):
- powerline = Powerline('ipython')
-
- ip.prompt_manager = PowerlinePromptManager(powerline=powerline,
- shell=ip.prompt_manager.shell, config=ip.prompt_manager.config)
View
26 vim/bundle/powerline/powerline/bindings/ipython/pre_0_11.py
@@ -1,26 +0,0 @@
-from powerline.core import Powerline
-from IPython.Prompts import BasePrompt
-from IPython.ipapi import get as get_ipython
-
-
-class PowerlinePrompt(BasePrompt):
- def __init__(self, powerline, *args, **kwargs):
- self.powerline = powerline
- super(PowerlinePrompt, self).__init__(*args, **kwargs)
-
- def set_p_str(self):
- self.p_str, self.p_str_nocolor = self.powerline.renderer.render(output_raw=True)
-
-
-def setup(prompt='1'):
- ip = get_ipython()
-
- powerline = Powerline('ipython')
-
- attr = 'prompt' + prompt
-
- def late_startup_hook():
- old_prompt = getattr(ip.IP.outputcache, attr)
- setattr(ip.IP.outputcache, attr, PowerlinePrompt(powerline,
- old_prompt.cache, old_prompt.sep, '', old_prompt.pad_left))
- ip.IP.hooks.late_startup_hook.add(late_startup_hook)
View
0 vim/bundle/powerline/powerline/bindings/qtile/__init__.py
No changes.
View
36 vim/bundle/powerline/powerline/bindings/qtile/widget.py
@@ -1,36 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from libqtile import bar
-from libqtile.widget import base
-
-from powerline.core import Powerline as PowerlineCore
-
-
-class Powerline(base._TextBox):
- def __init__(self, timeout=2, text=" ", width=bar.CALCULATED, **config):
- base._TextBox.__init__(self, text, width, **config)
- self.timeout_add(timeout, self.update)
- self.powerline = PowerlineCore(ext='wm', renderer_module='pango_markup')
-
- def update(self):
- if not self.configured:
- return True
- self.text = self.powerline.renderer.render(side='right')
- self.bar.draw()
- return True
-
- def cmd_update(self, text):
- self.update(text)
-
- def cmd_get(self):
- return self.text
-
- def _configure(self, qtile, bar):
- base._TextBox._configure(self, qtile, bar)
- self.layout = self.drawer.textlayout(
- self.text,
- self.foreground,
- self.font,
- self.fontsize,
- self.fontshadow,
- markup=True)
View
11 vim/bundle/powerline/powerline/bindings/tmux/powerline.conf
@@ -1,11 +0,0 @@
-set -g status on
-set -g status-utf8 on
-set -g status-interval 2
-set -g status-fg colour231
-set -g status-bg colour234
-set -g status-left-length 20
-set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]#(powerline tmux left)'
-set -g status-right '#(powerline tmux right)'
-set -g status-right-length 150
-set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240] #[fg=colour249]#W "
-set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I  #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
View
58 vim/bundle/powerline/powerline/bindings/vim/__init__.py
@@ -1,58 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import vim
-
-
-def source_plugin():
- import sys
- import os
- if sys.version_info[:2] == (3, 3):
- vim.command('let g:powerline_pycmd = "python3"')
- vim.command('let g:powerline_pyeval = "py3eval"')
- else:
- vim.command('let g:powerline_pycmd = "python"')
- vim.command('let g:powerline_pyeval = "pyeval"')
- fnameescape = vim_get_func('fnameescape')
- vim.command('source ' + fnameescape(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim')).decode('utf-8'))
-
-try:
- _vim_globals = vim.bindeval('g:')
-
- def vim_set_global_var(var, val):
- '''Set a global var in vim using bindeval().'''
- _vim_globals[var] = val
-
- def vim_get_func(f, rettype=None):
- '''Return a vim function binding.'''
- try:
- return vim.bindeval('function("' + f + '")')
- except vim.error:
- return None
-except AttributeError:
- import json
-
- def vim_set_global_var(var, val): # NOQA
- '''Set a global var in vim using vim.command().
-
- This is a fallback function for older vim versions.
- '''
- vim.command('let g:{0}={1}'.format(var, json.dumps(val)))
-
- class VimFunc(object):
- '''Evaluate a vim function using vim.eval().
-
- This is a fallback class for older vim versions.
- '''
- __slots__ = ('f', 'rettype')
-
- def __init__(self, f, rettype=None):
- self.f = f
- self.rettype = rettype
-
- def __call__(self, *args):
- r = vim.eval(self.f + '(' + json.dumps(args)[1:-1] + ')')
- if self.rettype:
- return self.rettype(r)
- return r
-
- vim_get_func = VimFunc
View
11 vim/bundle/powerline/powerline/bindings/vim/plugin/source_plugin.vim
@@ -1,11 +0,0 @@
-if ! has('python') && ! has('python3')
- echohl ErrorMsg
- echomsg 'You need vim compiled with Python 3.3 or Python 2.7 support for Powerline to work. Please consult the documentation for more details.'
- echohl None
- finish
-endif
-
-python import sys, vim
-python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h:h")'))
-
-source <sfile>:h:h/powerline.vim
View
39 vim/bundle/powerline/powerline/bindings/vim/powerline.vim
@@ -1,39 +0,0 @@
-if exists('g:powerline_loaded')
- finish
-endif
-let g:powerline_loaded = 1
-
-let s:powerline_pycmd = substitute(get(g:, 'powerline_pycmd', 'py'), '\v^(py)%[thon](3?)$', '\1\2', '')
-let s:powerline_pyeval = get(g:, 'powerline_pyeval', s:powerline_pycmd.'eval')
-
-exec s:powerline_pycmd 'import uuid'
-exec s:powerline_pycmd 'from powerline.core import Powerline'
-exec s:powerline_pycmd 'powerline = Powerline("vim")'
-
-if exists('*'. s:powerline_pyeval)
- let s:pyeval = function(s:powerline_pyeval)
-else
- exec s:powerline_pycmd 'import json, vim'
- function! s:pyeval(e)
- exec s:powerline_pycmd 'vim.command("return " + json.dumps(eval(vim.eval("a:e"))))'
- endfunction
-endif
-
-function! Powerline(winnr, current)
- return s:pyeval('powerline.renderer.render('. a:winnr .', '. a:current .')')
-endfunction
-
-function! s:UpdateWindows()
- if ! exists('w:window_id')
- let w:window_id = s:pyeval('str(uuid.uuid4())')
- endif
- for winnr in range(1, winnr('$'))
- call setwinvar(winnr, '&statusline', '%!Powerline('. winnr .', '. (w:window_id == getwinvar(winnr, 'window_id')) .')')
- endfor
- redrawstatus
-endfunction
-
-augroup Powerline
- autocmd!
- autocmd BufEnter,BufWinEnter,WinEnter,CmdwinEnter * call s:UpdateWindows()
-augroup END
View
43 vim/bundle/powerline/powerline/bindings/zsh/__init__.py
@@ -1,43 +0,0 @@