527 Commits

Author SHA1 Message Date
ZyX
b517df774b Fix bytes handling on python3
Fixes #356
2013-03-24 05:45:52 +04:00
Kim Silkebækken
49b54353a1 Merge branch 'feature/autodetect-network-interfaces' into develop 2013-03-21 17:25:35 +01:00
Kovid Goyal
b951907912 Autodetect network interfaces to monitor 2013-03-21 17:24:09 +01:00
Kim Silkebækken
4d8a0d50e3 Merge remote-tracking branch 'zyx-i/fix-342' into develop 2013-03-21 17:11:18 +01:00
ZyX
0610316e25 Make prompt* sets non-local
Fixes #342
2013-03-21 07:52:54 +04:00
Kim Silkebækken
83d855d3d7 Merge remote-tracking branch 'zyx-i/threaded-misc' into develop 2013-03-19 10:52:31 +01:00
ZyX
260a0dafcb Add tests for the constantly recreated *Powerline instances 2013-03-19 00:42:32 +04:00
ZyX
1dc039a3b0 Some small changes in .segments.vim 2013-03-19 00:29:41 +04:00
Kovid Goyal
fd6c1f1e13 Avoid divisin by zero exception in the network load segment 2013-03-19 00:26:57 +04:00
ZyX
4551bd2887 threaded: Add .update_first, leave .queries as-is unless key’s missing
Fixes #335
Closes #336
2013-03-19 00:26:57 +04:00
ZyX
ca723aafaa Skip external_ip segment if self.ip is not defined
Ref #335
2013-03-18 23:58:06 +04:00
ZyX
137ae5f990 Change hook type
It makes sense to run _powerline_tmux_set_pwd only when working directory is 
changed.
2013-03-18 23:55:14 +04:00
Kim Silkebækken
e49d129cb2 Merge branch 'fix-bzr-shelves' into develop 2013-03-18 08:29:05 +01:00
Kovid Goyal
c92aaef0e5 bzr segment: Handle repos with shelves correctly
Return None instead of a string with spaces for a clean repo with
shelves.
2013-03-18 08:27:43 +01:00
Kim Silkebækken
f0f1f3f85e Merge remote-tracking branch 'zyx-i/threaded' into develop 2013-03-18 08:24:54 +01:00
ZyX
bb63722fb1 Also call .shutdown() in ipython 2013-03-18 08:15:02 +04:00
ZyX
b0495d028f Do not let daemon threads be stopped while being updated 2013-03-18 07:56:25 +04:00
ZyX
674a211cda Remove escape sequences from default strings in documentation
Note: to properly view some values in browser you need the browser to use 
patched font or fontconfig. Though there is not much difference between some 
cryptic escape sequence and singe wrongly displayed character.
2013-03-17 22:26:57 +04:00
ZyX
60cc0196e8 Remove @ from documentation which was present for unknown reason 2013-03-17 22:07:37 +04:00
ZyX
34fba2286a Fix documentation for wrapped functions 2013-03-17 22:07:27 +04:00
ZyX
19b45e609a Fix documentation for threaded segments 2013-03-17 22:06:52 +04:00
ZyX
ce65470ac3 Fix shorten_cwd handling 2013-03-17 21:23:27 +04:00
ZyX
fb2e9b6cdb Test all other segments
Still uncovered: email_imap_alert and now_playing
2013-03-17 21:23:27 +04:00
ZyX
ceabd372d4 Add temperature_format keyword argument to weather segment 2013-03-17 21:23:26 +04:00
ZyX
a1b0b6239f Add format keyword argument to network_load segment 2013-03-17 21:23:26 +04:00
ZyX
f9e9b2cd22 Change uptime format, make it accept seconds if needed
It is uncommon to use integers like 00 or 01 for days.
2013-03-17 21:23:26 +04:00
ZyX
050a34bceb Avoid ResourceWarning messages: close stdout 2013-03-17 21:23:26 +04:00
ZyX
84dfac6f8e Avoid using python setup.py test
Closes #295
2013-03-17 21:23:26 +04:00
ZyX
f547e8b85f Some fixes for flake8 2013-03-17 21:23:15 +04:00
ZyX
62e731314e Replace memoize with threading where applicable
NOTE: Documentation now gets attached to *classes*, not actual segments. Hiding
      away classes (by changing their names to start with `_`) and/or doing

          self.__doc__ = self.__class__.__doc__

      does not work (hiding classes only hides documentation completely). I am
      not familiar with sphinx enough to say how this should be fixed.

Ref #168
2013-03-17 21:22:33 +04:00
ZyX
a4adc92215 Do not import memoize, humanize_bytes and urllib_* in powerline.lib 2013-03-17 21:21:03 +04:00
ZyX
29eccf409b Use psutil module for user segment 2013-03-17 13:28:57 +04:00
ZyX
93e41bf2c4 Make psutil.BOOT_TIME fallback for /proc/uptime
Method used with psutil.BOOT_TIME is subject to changes when clock_settime
changes time, /proc/uptime is not.
2013-03-17 13:17:55 +04:00
ZyX
f8db46b406 Use proper clock if possible 2013-03-15 19:31:08 +04:00
ZyX
abe0b1a647 Add support for .startup and .shutdown methods 2013-03-15 19:31:08 +04:00
ZyX
c237e66958 Make file_size segment output buffer size 2013-03-15 19:31:08 +04:00
ZyX
6f679e08aa Refactor powerline.lib.url 2013-03-15 19:31:08 +04:00
ZyX
df19981f65 Add tools/generate_gradients.py and tools/colors_find.py
First helps in generating gradients. Usage:

    python tools/generate_gradients.py '[color1, …]' itemnum[ "show"]
where color is either [100, 127, 46] (cterm colors) or ["ff00ff", "feffef"] (RGB
colors)

Second is to determine what name will be better suitable for some RGB color
2013-03-15 19:31:08 +04:00
ZyX
137a415a9b Add .local.vimrc with configuration for the lint checker
Ref #314
2013-03-15 19:31:08 +04:00
Kim Silkebækken
2c25a71f2e Merge branch 'fix-solarized-visual-block-color' into develop 2013-03-15 14:19:43 +01:00
Ali B
f141574d89 Make vim Visual Block mode orange in Solarized colourscheme.
This makes it consistent with the styles of the other visual modes.
Reference issue #147.
2013-03-15 14:19:35 +01:00
Kim Silkebækken
8cdd12a800 Merge remote-tracking branch 'zyx-i/326-fix-None-handling' into develop 2013-03-15 14:18:03 +01:00
Kim Silkebækken
9f5793c453 Merge branch '324-fix-bzr-branch-name' into develop 2013-03-15 14:17:40 +01:00
Kovid Goyal
dda500a673 Only use locally stored bzr branch nickname
Fixes #324 (slow vcs branch segment with bzr checkout)
2013-03-15 14:17:25 +01:00
Kim Silkebækken
747c75c1c4 Merge remote-tracking branch 'zyx-i/fix-322' into develop 2013-03-15 14:15:26 +01:00
Kim Silkebækken
5e71f58b83 Merge branch 'fix-urllib_read' into develop 2013-03-15 14:14:20 +01:00
Kim Silkebækken
24097293e5 Catch all urllib errors in urrlib_read() 2013-03-15 08:32:25 +01:00
ZyX
48470221f0 Make git.Repository.status() also return None
Fixes #326
2013-03-14 20:03:26 +04:00
Kim Silkebækken
d015d517ac Merge branch '320-fix-pkgbuilds' into develop 2013-03-13 14:10:00 +01:00
Kim Silkebækken
b1b0f2427e Install fonts to OTF instead of TTF in PKGBUILDs
Fixes #320
2013-03-13 14:09:26 +01:00