ZyX
2a6a4a07e6
Replace {path} with {repository_root}
...
Closes #429
2013-04-16 07:58:24 +04:00
ZyX
18579d70a6
Fix TypeError seen in older vim versions
2013-04-14 13:23:25 +04:00
ZyX
bd0546d688
Add virtcol_current textwidth-based gradient
2013-04-13 19:37:43 +04:00
ZyX
cce79fda0e
Add support for getbufvar('%') and &textwidth option to vim emulation
2013-04-13 19:37:23 +04:00
ZyX
1ffa8a471a
Add GREEN_Orange_red gradient for solarized
2013-04-13 19:36:19 +04:00
ZyX
a5210d800c
Add dark_GREEN_Orange_red gradient
...
Generated with
./tools/generate_gradients.py 22 58 94 52 --weights '60 15 10 2'
. For use in virtcol_current.
2013-04-13 19:36:04 +04:00
ZyX
2d036c0de8
Fix indentation of dictionaries
2013-04-13 19:35:25 +04:00
ZyX
b883ac6ee8
Use same modeline in scripts/* as in other files
2013-04-13 19:34:55 +04:00
ZyX
9e518ab682
Improve generate_gradients tool
...
Changes:
- Port argument parsing to argparse
- Add weights support
- Add ability to specify cterm palette
- Purge out first 16 colors from color choosing by default
- Improve different scales and different preview length support
2013-04-13 19:33:41 +04:00
ZyX
a4c59ded76
Make tests more verbose and catch first KeyboardInterrupt
2013-04-13 15:44:08 +04:00
ZyX
25627363b0
Do not use second argument to itertools.count in other place
2013-04-13 15:16:45 +04:00
ZyX
4449489e59
Do not use second argument to itertools.count
2013-04-13 15:08:27 +04:00
ZyX
5e93d20fb8
Do not sort segments that are always included
2013-04-13 15:05:39 +04:00
ZyX
ae691b7cd8
Improve shown errors
2013-04-13 14:47:39 +04:00
ZyX
fee328666f
Improve arguments checks
2013-04-13 14:20:54 +04:00
ZyX
7e57010c19
Move some code from powerline_autodoc to powerline.lib.inspect
...
To make it available later in lint checker.
2013-04-13 00:09:00 +04:00
ZyX
4dd9c5196e
Respect segment.py highlight group handling in powerline-lint
...
Either `highlight_group` or `name` key is enough to determine highlight group
for non-function segments, but powerline-lint requires `highlight_group`.
2013-04-12 23:45:48 +04:00
ZyX
c7946cda3e
Use different default for functions
...
This makes it look up `powerline.segments.vim.virtualenv` in addition to
virtualenv in colorscheme like it does with `segment_data`.
2013-04-12 23:45:48 +04:00
ZyX
a8eb0a2471
Special-case None priority in place of -1
...
This extends priorities in both directions, uses slightly faster `is None`
check, makes it consistent with `interval` special-casing also to `None` and
makes lint able to use one simple `.type()` check in place of `.either()` one.
2013-04-12 23:45:48 +04:00
ZyX
49618fc4e3
Rename PowerlineState to PowerlineLogger
2013-04-12 23:45:47 +04:00
ZyX
587789ebda
Fix documentation for ThreadedSegment classes with @staticmethod’s
2013-04-12 23:45:47 +04:00
ZyX
9250d794d7
Remove `pl` argument and first argument to `render*` from docs
2013-04-12 23:45:47 +04:00
ZyX
ac88a09436
Add renderer docstrings.
2013-04-12 23:45:47 +04:00
ZyX
3ce068db94
Make vim and ipython ext configurations optional
2013-04-12 23:45:47 +04:00
ZyX
40973ea530
Alter indentation
2013-04-12 23:45:42 +04:00
Kim Silkebækken
6439800d9c
Merge branch 'fix-quickfix-buffer-highlighting' into develop
2013-04-12 21:19:19 +02:00
Kim Silkebækken
d81d6f163f
vim: Fix missing qf buffer highlighting
2013-04-12 21:19:06 +02:00
Kim Silkebækken
ceeef4abde
Merge branch 'fix-archlinux-packages' into develop
2013-04-12 20:29:16 +02:00
Kim Silkebækken
79fcdc63bd
Update Arch Linux optdepends and conflicts
2013-04-12 20:29:07 +02:00
Kim Silkebækken
a1f370490b
Merge branch 'feature/vim-special-windows' into develop
2013-04-11 11:53:05 +02:00
Kim Silkebækken
7864acb70b
Update tests
2013-04-11 11:52:54 +02:00
Kim Silkebækken
8230f542c6
vim: Add quickfix window statusline
...
Closes #419
2013-04-11 11:50:35 +02:00
Kim Silkebækken
739514efc5
Merge remote-tracking branch 'zyx-i/fix-411' into develop
2013-04-09 10:29:56 +02:00
ZyX
de678ed289
Create VimPowerline.reset_highlight proxy method
...
Fixes #411
2013-04-09 00:37:53 +04:00
Kim Silkebækken
a7daa507ab
Merge remote-tracking branch 'zyx-i/alter-priority' into develop
2013-04-08 11:47:51 +02:00
Kim Silkebækken
0c7cc25a02
Merge remote-tracking branch 'zyx-i/threaded-cpu_load_percent' into develop
2013-04-08 11:39:23 +02:00
Kim Silkebækken
51a9bbdbce
Merge remote-tracking branch 'zyx-i/ipython-shutdown' into develop
2013-04-08 11:38:04 +02:00
Kim Silkebækken
e6ae8ca49f
Merge remote-tracking branch 'zyx-i/persistent-awesome' into develop
2013-04-08 11:36:44 +02:00
Kim Silkebækken
c1ed109422
Merge remote-tracking branch 'zyx-i/more-threaded-globals' into develop
2013-04-08 11:31:04 +02:00
ZyX
24dde27b7e
Alter the priority of branch and line_percent segments
...
Unlike file_type and file_directory branch cannot be deduced from the filename
(you normally know directory structure of the project) and contents of the file.
Unlike file_format and file_encoding which are normally configured once and then
forgotten about knowing branch segment is necessary to separate commits.
2013-04-08 08:59:56 +04:00
ZyX
71329cdb5d
Add gradient for cpu_load_percent
...
Note: no changes to colorschemes: no cpu_load_percent in colorscheme
2013-04-08 08:04:22 +04:00
ZyX
b2cb5b1e94
Fix gradient level in email_imap_alert segment
...
Closes #407
2013-04-08 07:49:44 +04:00
ZyX
340bdc7a51
Add other self.pl proxies
2013-04-07 19:15:58 +04:00
ZyX
14b31eca35
Make dummy cpu_load_percent also ThreadedSegment
...
It is the easiest way to make documentation identical when created on a system
with and without psutil module and deduplicate docstrings
2013-04-07 19:01:54 +04:00
ZyX
f3ce370566
Make cpu_load_percent segment threaded
...
interval=0.5 means that it will block for 0.5 seconds which is bad. With
threading it blocks only the separate thread, and it does not hold
GIL (uses regular time.sleep to wait) in this case which is fine.
interval=0.05 means that it will report almost random value.
interval=None means that (assuming psutil.cpu_percent is called only by this
segment) it will report CPU load percent measured between two
subsequent .cpu_load_percent calls or cpu_load_percent call and
module import. It is used for update method to get immediate
result in case update_first is True.
2013-04-07 18:52:49 +04:00
ZyX
8dcbb031aa
Make IPython renderer shutdown properly
2013-04-07 13:19:20 +04:00
ZyX
66cdb36231
Use xml.sax.saxutils.escape in place of xmlrpclib.escape
...
The latter is not available in python 3
2013-04-07 04:42:36 +04:00
ZyX
6f57a3dd63
Some fixes for flake8
2013-04-07 04:30:51 +04:00
ZyX
b507029741
Replace shell script with python one
2013-04-07 04:23:31 +04:00
ZyX
3c613bc1b7
Use xmlrpclib.escape for escaping in PangoMarkupRenderer
2013-04-07 04:20:35 +04:00