Commit Graph

650 Commits

Author SHA1 Message Date
ZyX 657fcd1a99 Make @window_cached use @wraps
Otherwise documentation is not saved (hidden in decorated function only visible
in the closure).
2013-03-11 19:11:17 +04:00
ZyX ae62aee529 Renamed term_24bit_colors to term_truecolor 2013-03-11 19:11:10 +04:00
Kim Silkebækken 1773750485 Merge branch 'improved-ebuild' into develop 2013-03-11 15:53:46 +01:00
ZyX fdab80cd00 Add python-argparse dependency 2013-03-11 15:53:37 +01:00
ZyX 6c7e454fd8 Fix license
Fixes #299
2013-03-11 15:53:35 +01:00
ZyX 4374e1f71c Fix git/hg repo tests 2013-03-11 15:53:34 +01:00
ZyX a6d48232b0 Add python_test, more exclusions
Fixes #289
2013-03-11 15:53:32 +01:00
Kim Silkebækken 111eaa27e8 Combine vim modelines and Python encoding declarations
Ref #314
2013-03-11 10:40:09 +01:00
Peter Fern b31c987cc8 Add XDG_CONFIG_DIRS to config_paths for system-wide install
Commonly this will be `/etc/xdg/powerline`
2013-03-11 08:25:35 +01:00
Kim Silkebækken 8e8e9c9edc Merge remote-tracking branch 'pdf/ttf_output' into develop 2013-03-11 08:24:41 +01:00
Kim Silkebækken 6748701fcb Add vim modelines to all Python files
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.

Ref #314
2013-03-11 08:11:25 +01:00
Kim Silkebækken 40fe38f641 Move argparser to powerline.shell so it can be re-used 2013-03-11 07:52:24 +01:00
ZyX 59ef974b29 Fix set statusline location, readd fix from #243
Ref #303
2013-03-11 07:16:30 +01:00
Kim Silkebækken 707cf2780c Cleanup .gitignore file 2013-03-11 07:13:57 +01:00
Kovid Goyal c70d3b38b6 Add bzr support 2013-03-11 07:09:42 +01:00
Peter Fern 38e2368682 Preserve style suffixes by inserting ForPowerline before any '-'s 2013-03-09 18:55:22 +11:00
Peter Fern bee1467484 Output in either otf or ttf (so we don't loose hinting/whatever) 2013-03-09 18:20:58 +11:00
Kim Silkebækken 20639494c0 Add Travis build status to README 2013-03-08 18:35:44 +01:00
Kim Silkebækken 6777fd41d4 Fix minor typo in powerline.vim 2013-03-08 18:03:57 +01:00
Kim Silkebækken 154d1aeac1 Fix issues in Arch Linux PKGBUILDS
Closes #291.
2013-03-08 18:02:03 +01:00
Kim Silkebækken 162f5ac55b Change license from CC BY-SA to the MIT license
Refs #299.
2013-03-08 17:58:06 +01:00
Kim Silkebækken be62815c0b Handle socket errors in IMAP mail segment 2013-03-04 15:13:58 +01:00
Kim Silkebækken cb87cfbe0f Update credits and PR guidelines 2013-03-03 22:11:39 +01:00
ZyX f6d23bdf7e Always return a string in email_imap_alert segment
Fixes #279
2013-03-03 21:05:06 +01:00
ZyX 4c233122d6 Do not restrict branches to `tests` branch
In any case it was not working
2013-03-03 21:03:56 +01:00
ZyX aa0a8bf76d Make tests support python2.6
Old unittest is not working for unknown reason, using unittest2 instead
2013-03-03 21:03:40 +01:00
ZyX 0a05b2961a Add support for with: statement to tests.vim
Also made everything use new vim_module._with where possible
2013-03-03 21:03:34 +01:00
ZyX c429d9eeb2 Omit using sys.modules if possible
Does not work though: still TypeError due to some global in multiproccessing
that got None
2013-03-03 21:03:34 +01:00
ZyX c334be416d Add tests.lib module with `replace_*()` with statement functions
Note: there is new problem: now multiprocessing() globals got assigned None
values. It is likely somehow related to extended `sys.modules` utilization
2013-03-03 21:03:26 +01:00
ZyX 584755765b Start adding tests
Tests are temporary disabled on all branches except tests (does not really work
though, needs travis.yml in all branches).
2013-03-03 21:03:19 +01:00
ZyX 2a39ed83d8 Use mode(1)
Otherwise all that fancy double-symbol modes are just not visible.
2013-03-03 21:03:19 +01:00
ZyX 47cfde0ecc Add support for python-2.6 2013-03-03 21:03:17 +01:00
ZyX 9fd63021f0 Add support for python-3.2 2013-03-03 21:03:08 +01:00
ZyX de33eb8140 Add _external_ip for use in weather segment 2013-03-03 21:03:08 +01:00
ZyX 307dfd7212 Improve documentation 2013-03-03 21:03:05 +01:00
ZyX 2f17510db8 Also use hl_iter in exception message
Ref #270
2013-02-28 14:06:05 +01:00
ZyX f495c49aa1 Remove obsolete highlight_group keys from configuration
They are no no-op for function segments, so don’t confuse users
2013-02-27 01:18:16 +04:00
ZyX 16a5b7897a Use exit_fail hl group for last_status segment
Fixes #270
2013-02-27 01:06:11 +04:00
ZyX-I f3462768de Fix minimal python versions
s/3\.2/3.3
2013-02-26 21:27:59 +01:00
ZyX c2cf679c6f Do not throw away python stack trace
Errors when loading powerline fails are almost never giving any useful
information for debugging.
2013-02-26 21:26:33 +01:00
ZyX a8ccfd4350 Add ambiwidth problems information to troubleshooting section 2013-02-26 21:17:25 +01:00
ZyX 83f4236a2c Replace unicode() with u() in theme.py
Fixes #271
2013-02-27 00:14:24 +04:00
Kim Silkebækken a4b7c31bc3 Move divider hl group to return dicts in weather segment
Fixes #264
2013-02-25 16:11:12 +01:00
Trey Hunner 9a7b5f212b Use oldlace for visual mode foreground in vim
Fixes gh-261.
2013-02-24 23:07:24 -08:00
Kim Silkebækken 0dcd23f5bf Fix syntax error in default tmux theme
Ref #150
2013-02-24 23:15:16 +01:00
Otto Modinos af020d9329 Make vim visual block selection orange
Fixes #147
2013-02-24 22:26:31 +01:00
Foo 43d9639534 Fix zsh/zpython issue 2013-02-24 22:23:43 +01:00
ZyX dfaf381040 Fix various segment issues
- Fixed user segment (windows): there is no os.geteuid() here
- Fixed dir_limit_depth in cwd segment (it was not really accepting None
  value)
- Made paste_indicator not use getbufvar for global option
- Made file_size use buffer name for cache key
- Made a number of segments coerce returned integer values to strings
- Fixed modified_buffers (getbufvar() returns empty string for deleted buffers,
  but int() does not accept empty string)
- Fixed file_directory and file_name segments: they were not working in
  python-3.3 because str() object has no attribute decode()
- Made powerline.lib.vcs.git.Repository.status() always return 3-characters
  string
- Made it always check both for dirty index and dirty wt for all files
- Fixed binary prefix handling, renamed it to si_prefix

  Previously there was the following when binary_prefix was False:
      div = 1024
      unit = kB
  (unit is inconsistent with div).
  Now it is the following when si_prefix is False:
      div = 1024
      unit = KiB
  (according to https://en.wikipedia.org/wiki/Binary_prefix IEC prefix kibi is
  abbreviated as Ki, not ki (note the case)). This means that in segments prefixes
  has changed, but not displayed values.
2013-02-24 22:23:04 +01:00
ZyX 168f4854c1 Fix various flake8 errors 2013-02-24 22:23:02 +01:00
ZyX c8c713321d Use smoother gradient for true color 2013-02-24 22:23:02 +01:00