Commit Graph

128 Commits

Author SHA1 Message Date
Kim Silkebækken d87b35d094 Fallback to line_percent highlighting for gradient segment 2012-12-21 11:20:50 +01:00
Kim Silkebækken 9f60daaf78 Use :file: for file references in the docs 2012-12-20 16:20:56 +01:00
Kim Silkebækken 9cc1233307 Add configuration docs 2012-12-20 15:47:01 +01:00
Kim Silkebækken 50fa8a33ca Update docs and README 2012-12-19 14:46:14 +01:00
ZyX-I 69f726af1a Purge out the requirement to use sudo
There is no need in regenerating font cache in *all* directories. 
Make documentation suggest to regenerate just `~/.fonts` cache 
which actually changed.
2012-12-19 08:36:41 +04:00
Kim Silkebækken 366fefdfd3 Update fontpatcher symbol font metrics 2012-12-18 22:28:43 +01:00
Kim Silkebækken e5f5df8a12 Correctly handle glyph widths when patching fonts 2012-12-18 22:28:27 +01:00
Kim Silkebækken 7c1d48a2fd Improve font patcher
For some reason the font patcher doesn't work well unless the target
font has an em size of 2048 while the font is being patched. This patch
also improves font patching in general, due to the more correct
calculation of font metrics.

Refs #14.
2012-12-18 22:05:28 +01:00
Kim Silkebækken def9091662 Update installation instructions
Closes #13.
2012-12-18 17:18:37 +01:00
Kim Silkebækken 7507045143 Add screenshots to README 2012-12-18 16:08:39 +01:00
Kim Silkebækken bda5c59889 Add screenshots to docs 2012-12-18 16:03:15 +01:00
Kim Silkebækken e89ce2c7db Fix minor flake8 issues in font patcher 2012-12-18 15:30:03 +01:00
Kim Silkebækken d28003c973 Add font patcher docs 2012-12-18 15:22:31 +01:00
Kim Silkebækken 53fbfe15fe Update symbol code points in the default config 2012-12-18 15:22:08 +01:00
Kim Silkebækken 5fde2dcd9d Add font patcher symbol font 2012-12-18 15:21:03 +01:00
Kim Silkebækken 9a5b94dc28 Add font patcher script 2012-12-18 15:20:56 +01:00
Kim Silkebækken af1f3ec7bd Move vim plugin to the vim extension directory 2012-12-17 15:45:23 +01:00
Kim Silkebækken 37b43a77fc Automatically push docs with `make gh-pages` 2012-12-17 15:32:49 +01:00
Kim Silkebækken df0244700c Fix typo in doc filename 2012-12-17 15:32:01 +01:00
Kim Silkebækken 9ba8570bf7 Update documentation and version 2012-12-17 15:24:42 +01:00
Kim Silkebækken 8ccf223213 Add PKGBUILD for Arch Linux users 2012-12-17 15:23:33 +01:00
Kim Silkebækken 254473419b Remove unnecessary init file 2012-12-17 15:01:56 +01:00
Kim Silkebækken ea760ea1d4 Move plugins to powerline directory 2012-12-17 14:58:13 +01:00
Kim Silkebækken 8ca4c531e9 Do a :redrawstatus after setting window statuslines
For some reason the statusline doesn't always get redrawn automatically
after setting the statusline property for a window, and running
:redrawstatus when a buffer or window is entered seems to resolve this
issue.
2012-12-17 13:40:32 +01:00
Kim Silkebækken 11082311aa Update readonly/modified segments in default theme 2012-12-17 13:33:29 +01:00
Kim Silkebækken ccd6b4c28a Restructure segment rendering methods
Theme.get_segments() is now a generator which returns segment copies,
and it no longer handles segment content replacement.

Renderer.render() accepts a theme and a segments parameter in order to
override the default actions (calling self.get_theme() and
self.get_segments()). This is necessary to be able to cache themes and
segment contents somewhere else and provide the cached data to the
render method. The render method now also handles removing excluded
segments, which was previously handled in Theme.get_segments().

Finally, VimRenderer.render() caches all theme and segment data and
provides this data to the renderer for non-current windows.

Closes #12.
2012-12-17 13:26:38 +01:00
Kim Silkebækken 3a8e64b767 Pass the current window as a parameter to the render method
This change simplifies the code somewhat as the BufLeave, etc. autocmds
aren't required anymore.
2012-12-17 12:03:13 +01:00
Kim Silkebækken 70818341e6 Cache segment contents after rendering the statusline
Non-current segments used the wrong contents because outdated
information was cached (self.segments was repopulated in the render()
method which was called *after* the contents was cached). Now the
contents are cached after the parent class' render() method is called so
the correct information is cached.

Closes #11.
2012-12-17 11:30:49 +01:00
Kim Silkebækken 2a4baa0a59 Minor code cleanup 2012-12-16 13:10:55 +01:00
Kim Silkebækken 3b19dac9e7 Cleanup code and comments 2012-12-15 19:36:14 +01:00
Kim Silkebækken 0bf23adbcc Cache statusline contents in Python
Each window is now tagged with an UUID and this UUID is used to cache
the window's statusline contents in the Python VimRenderer in order to
avoid translating the statusline contents to and from a vimdict
unnecessarily.

Refs #11.
2012-12-15 18:50:55 +01:00
ZyX da6367a897 Added local theme support (mainly for buffer-local themes) 2012-12-14 16:10:47 +01:00
Kim Silkebækken f550bd37f8 Fix issue with function segment key generation 2012-12-14 16:03:58 +01:00
Kim Silkebækken 05505c3dd1 Restructure docs 2012-12-14 15:23:26 +01:00
Kim Silkebækken f3a03aa26a Update docs structure for gh-pages 2012-12-14 15:16:38 +01:00
ZyX 79e2f2aee6 Add a way to import extension segments from more convenient locations
I.e. not powerline.ext.{ext}.segments.{smth}, but just {smth}.

Refs #3.
2012-12-14 13:57:17 +01:00
Kim Silkebækken 21032e989e Add documentation files 2012-12-13 22:44:22 +01:00
Kim Silkebækken f074c1fb29 Move the vim example to a separate plugin folder
When Powerline is installed as a package in the system-wide
site-packages folder it can easily be enabled by adding a simple python
statement to the user's vimrc file.

Otherwise it can be added by doing a :source
path/to/plugin/vim/powerline.vim in vimrc, but the other way of doing it
works without specifying the full path as long as Powerline is installed
somewhere in sys.path.
2012-12-13 22:01:33 +01:00
ZyX 175fb1b58e Don’t change windows using windo, use setwinvar() instead 2012-12-13 21:09:41 +04:00
Kim Silkebækken 298f2776e3 Add .gitignore 2012-12-13 15:43:49 +01:00
Kim Silkebækken 82b52094a3 Add setup.py 2012-12-13 15:43:38 +01:00
Kim Silkebækken cd41910fb3 Add Sphinx docs skeleton 2012-12-13 15:43:05 +01:00
Kim Silkebækken e5c864ec1b Add themes and segments for terminal and tmux 2012-12-13 15:23:12 +01:00
Kim Silkebækken c5555d5637 Update all examples to work with the latest changes 2012-12-13 14:59:16 +01:00
Kim Silkebækken 9c79344f64 Update theme/colorscheme for tmux and terminal configs 2012-12-13 14:58:55 +01:00
Kim Silkebækken d40e8e05c8 Handle default colors correctly in tmux renderer 2012-12-13 14:58:21 +01:00
Kim Silkebækken f552979125 Simplify retrieving of config home in core init method 2012-12-13 14:57:55 +01:00
Kim Silkebækken 203a32e778 Create empty segment for single-side statuslines 2012-12-13 14:57:10 +01:00
Kim Silkebækken 9104d92555 Update default colorscheme 2012-12-13 14:28:24 +01:00
Kim Silkebækken eb28d759cc Ignore empty group/color colorscheme translations 2012-12-13 14:28:09 +01:00