Commit Graph

2733 Commits

Author SHA1 Message Date
Kim Silkebækken 2cfd01ec73 Add PowerlineSymbols font file
On Linux it appears to work perfectly to just have this font file
present on the system as it automatically chooses fallback fonts if
a glyph isn't present in the current font.
2013-01-17 21:32:15 +01:00
Kim Silkebækken a67ab948e5 Remove example tmux.conf 2013-01-17 20:16:35 +01:00
Kim Silkebækken 2fba8f0502 Don't explicitly reset tmux attributes 2013-01-17 20:16:35 +01:00
Kim Silkebækken 0ea7615167 Add network load tmux segment 2013-01-17 20:16:35 +01:00
Kim Silkebækken 7eca187d02 Add imports to lib init file 2013-01-17 20:16:35 +01:00
Kim Silkebækken 245be99307 Add humanize_bytes function to library 2013-01-17 20:16:31 +01:00
Kim Silkebækken 07f1b7d697 Rename weather segment 2013-01-17 20:01:39 +01:00
Kim Silkebækken 9ec3a8ef5e Reset highlighting at end of rendered result
Closes #57.
2013-01-17 17:25:00 +01:00
Kim Silkebækken 1a99fbd36a Update terminal prompt usage instructions
Closes #56.
2013-01-17 17:07:58 +01:00
Kim Silkebækken 8a5b8719cd Escape command in prompt usage instructions 2013-01-17 10:08:51 +01:00
Kim Silkebækken 20b17cebe0 Add troubleshooting info about OSX ImportError
Closes #39.
2013-01-17 10:03:29 +01:00
Kim Silkebækken 6207f90734 Add troubleshooting info about NameError in MacVim
Refs #48.
2013-01-17 10:03:00 +01:00
Kim Silkebækken f18bf7087d Add troubleshooting info for iTerm2 question mark issue
Closes #27.
Refs #48.
2013-01-17 10:01:48 +01:00
Kim Silkebækken 7d613baec2 Fix font patching instructions for OS X
Closes #46.
2013-01-17 10:01:11 +01:00
Kim Silkebækken 6bf501df51 Add usage instructions for terminal/tmux 2013-01-17 09:42:39 +01:00
Kim Silkebækken a091d04a8c Update terminal rendering for bash 2013-01-17 09:42:15 +01:00
Kim Silkebækken fd94c7c0ba Install tmux/prompt files as scripts 2013-01-17 09:25:56 +01:00
Kim Silkebækken 4fc6bd756a Update README 2013-01-17 08:29:04 +01:00
ZyX 128c012553 Add foreign local themes support
Refs #3.
2013-01-16 16:17:23 +01:00
Kim Silkebækken ecf9e7eea7 Update terminal renderer output depending on shell
Bash and zsh have different ways of escaping colors in the prompt, this
update checks the $SHELL environment variable and uses the correct
escape sequence for the current shell.

A known issue with this method is that $SHELL doesn't get updated when
switching shells (i.e. if you're running /bin/bash when you're in a zsh
shell) so in rare cases rendering errors may occur. A workaround which
is much slower is to parse the output of `ps -p $$` which always returns
the current shell.
2013-01-16 09:39:20 +01:00
Kim Silkebækken b91009404f Use midline ellipsis for dir shortening 2013-01-16 09:04:26 +01:00
Kim Silkebækken bf23ae286e Move tmux example into extension directory 2013-01-16 09:00:19 +01:00
Kim Silkebækken 884bbd3f29 Make mode_translations optional in colorschemes 2013-01-16 08:47:49 +01:00
Kim Silkebækken b7ff63ccc0 Separate colorschemes by extension
Refs #45.
2013-01-16 08:44:17 +01:00
Kim Silkebækken 07771d7773 Add Liam Curry to contributors list
Refs #44.
2013-01-16 08:31:41 +01:00
Kim Silkebækken 28aaed0c77 Merge branch 'feature/tmux' into develop
Closes #41.
Closes #43.
Closes #44.
2013-01-16 08:23:49 +01:00
Kim Silkebækken 52c2ba5c9f Enable tmux segments 2013-01-16 08:21:52 +01:00
Kim Silkebækken 5f0ec038e4 Create neutral tmux colorscheme 2013-01-16 08:21:36 +01:00
Liam Curry f6050fc08f Add right/left options to tmux script 2013-01-16 08:05:51 +01:00
Kim Silkebækken f827420ea1 Rename default colorscheme 2013-01-16 08:01:15 +01:00
Kim Silkebækken 27c0faa220 Merge branch 'develop' into feature/tmux
Conflicts:
	powerline/ext/tmux/segments.py
2013-01-16 07:59:57 +01:00
Kim Silkebækken 6d3dea1f0b Cleanup Python files to comply better with PEP 8
Removed excessive newlines and comments, and fixed whitespace issues.
2013-01-15 08:57:38 +01:00
Kim Silkebækken 7e214a65b0 Create tmux segments
Refs #44.
2013-01-11 13:37:22 +01:00
Kim Silkebækken 7eb3bfde9c Update memoize class and add support for persistent cache 2013-01-11 12:18:17 +01:00
Kim Silkebækken bba272e0bd Update theme/colorscheme name properties 2013-01-09 16:16:33 +01:00
Kim Silkebækken 8d584d059d Move segments.core packages out of subdirectories 2013-01-09 16:09:50 +01:00
Kim Silkebækken 4c2dd90e9d Create terminal/prompt color scheme 2013-01-09 14:40:32 +01:00
Kim Silkebækken d0d35cac34 Move terminal prompt script to extension directory 2013-01-09 14:40:06 +01:00
Kim Silkebækken 2ceec25713 Update terminal segments and default theme 2013-01-09 14:29:44 +01:00
Kim Silkebækken 44fb24dee6 Fix padding issue with single-sided statuslines 2013-01-09 14:29:01 +01:00
Kim Silkebækken a26d5e5319 Add troubleshooting info for Windows gVim + git users
Closes #36.
2013-01-09 13:18:53 +01:00
Kim Silkebækken 536120aab8 Re-add note about PyPI which got removed from the docs
Refs #34.
2013-01-08 15:01:28 +01:00
ZyX 424da8b573 Don’t raise an exception when encountered untracked file 2013-01-07 08:21:59 +01:00
ZyX 332dc45bf9 Add additional_key to memoization function
Closes #29.
2013-01-07 08:21:40 +01:00
ZyX 5b43960e0e Recreate git.Repository() on each call
It appears that pygit2 has similar to mercurial’s issue with statuses
(they are not updated) and needs to be regenerated on each call as well.
Implies to index statuses only though, that is why I used to think
pygit2 does not have this problem.
2013-01-07 08:18:21 +01:00
Kim Silkebækken 3addf44a6d Highlight VCS flags differently
"M" flag is highlighted in yellow, "A" flag is highlighted in green,
other flags are highlighted in red. This also corresponds with the
highlighting in the output of `git status`.

Whitespace is also trimmed from the flags as the columns don't matter
much in vim statuslines, and empty columns only introduce whitespace
that looks like a bug.
2013-01-04 15:02:40 +01:00
ZyX 102e749093 Add file_vcs_status segment, using powerline.lib.vcs instead of fugitive
Using pure-python implementation allows to use the same code in the
terminal segments (not implemented currently). It also should be more
effective. Git module is able to use pygit2 instead of command-line git
which is much faster. Mercurial module assumes that mercurial is always
accessible as a python module.

Code for repository (not file) status is untested. It exists solely for
terminal segments.

Closes #26.
2013-01-04 14:52:55 +01:00
ZyX ca1225b864 Add virtcol parameter for col_current segment
The virtual column number is also default. I doubt anybody here ever
wanted to see byte offset. When it comes to a questions like alignment,
forced text width and so on only virtual columns matter. It would be
good to optionally take concealed characters into account, but vim does
not provide a way to do so (well, except recent screencol() added solely
for testing which would be hard, but not impossible, to adapt to such
needs).

Closes #25.
2013-01-03 07:33:27 +01:00
ZyX-I f67a004548 Use shorter and more readable form of :source 2013-01-02 21:41:10 +01:00
ZyX bfc29749c1 Use better name for powerline variable in global scope
It is completely possible that “pl” will be claimed by some other plugin
as well. There is no local scope for each .vim file in vim-python
interface.
2013-01-02 21:39:34 +01:00