Commit Graph

2679 Commits

Author SHA1 Message Date
S0lll0s 623c1f85bc Add tests for i3wm listers and workspace segment 2016-02-04 04:43:26 +03:00
S0lll0s 10243ad89f Make workspace(strip) strip `{number}:` prefix if true 2016-02-04 04:41:58 +03:00
S0lll0s db99ad1d90 Refactor i3wm segment and lemonbar binding
Move get_i3_connection and get_xrandr_outputs into bindings.wm
2016-02-04 04:37:30 +03:00
S0lll0s 24fa03567e Add listers for i3wm workspaces and outputs 2016-01-31 16:10:10 +01:00
S0lll0s bc7d571d00 Add i3wm segment for singular workspace 2016-01-31 16:10:07 +01:00
S0lll0s 53aca6b190 Add i3wm segment_info keys to developer reference 2016-01-15 15:44:07 +01:00
Nikolai Aleksandrovich Pavlov 63af1456b4 Merge pull request #1431 from S0lll0s/develop
Rename bar (bar-aint-recursive) to lemonbar
2016-01-09 01:19:46 +03:00
Foo 646b0ea5ea Improve powerline-lemonbar documentation
Changes:

- Usage determination transferred back to argparse (it wraps).
- Added complete description of lemonbar script to wm-widgets.rst.
- --interval and --height got their arguments clarified by metavar: it was not
  clear what units they use.
- --bar-command got its metavar because it is better then default BAR_COMMAND.
- --bar-command short variant is now -C.
2016-01-08 19:30:49 +01:00
Foo 8168ad1428 Improve powerline_automan: fix some bugs and add minimal argument
Bugs:
- Default action is store_true while it should be just store.
- nargs default depends on metavar while it should only depend on action.
- REMAINDER nargs is not supported.

Minimal argument means minimal mode which removes all section and creates 
a container with “synopsis” and “description” sections’ contents.
2016-01-08 19:30:49 +01:00
Foo 619ae9050e Lint test configuration 2016-01-08 19:30:49 +01:00
Foo b29988b7ec Add functional tests for lemonbar bindings 2016-01-08 19:30:49 +01:00
S0lll0s ee5f471b49 Deprecate "bar" bindings in favor of lemonbar 2016-01-08 19:30:49 +01:00
S0lll0s 7b60b941fd Let segment_info overwrite i3wm workspace output 2016-01-08 01:46:23 +01:00
Nikolai Aleksandrovich Pavlov 59e66dca32 Merge pull request #1510 from ZyX-I/remove-status-utf8
Remove status-utf8 option
2015-12-17 03:09:04 +03:00
Foo b40119a187 Remove status-utf8 option
It is incorrect to set it at all because what powerline outputs depends on 
locale used, and if locale is utf8 then tmux should already set this option.
2015-12-17 00:08:37 +03:00
Nikolai Aleksandrovich Pavlov d611cc2e43 Merge pull request #1499 from mook/1498-bat-linux-path
[Battery - Linux] Ignore AC adapters, use battery status instead
2015-11-28 23:53:06 +03:00
Mook 1e0228a3c7 [Battery - Linux] Look at battery status instead of AC online-ness
The names of AC adapters are straight from ACPI and are sometimes called
"ADPx" instead of "ACx".  To avoid confusion, look at the battery status
instead.  Check for a power supply with a capacity instead of names that
start with "BAT" for the same reason.

Fixes #1498
2015-11-28 12:07:01 -08:00
Nikolai Aleksandrovich Pavlov 78c6c730ca Merge pull request #1501 from mook/1500-mpd-utf8
[Players - mpd] Use Unicode where available
2015-11-28 22:49:06 +03:00
Mook 4265da2e1d [Players - mpd] Use Unicode where available
Otherwise the mpd function will fail when it encounters non-ASCII
metadata as it tries to do a unicode.format() and attempts to decode
the incoming data as ASCII, throwing a UnicodeDecodeError exception.

Fixes #1500
2015-11-28 11:28:51 -08:00
Nikolai Aleksandrovich Pavlov 3b50893ed0 Merge pull request #1503 from chmelevskij/patch-1
Add iTerm fix solution.
2015-11-25 01:57:08 +03:00
chmelevskij dbb968cdc3 Add iTerm fix solution.
Add a iTerm fix solution from https://github.com/powerline/fonts/issues/44
2015-11-24 22:46:44 +00:00
Nikolai Aleksandrovich Pavlov eaa772f195 Merge pull request #1495 from ZyX-I/extended-logging
Add more logging options
2015-11-22 06:35:56 +03:00
Foo 3f59edc060 Add more logging options 2015-11-22 06:08:37 +03:00
Foo 48469c02ef Enable python-3.5 build 2015-11-22 06:04:01 +03:00
Nikolai Aleksandrovich Pavlov 649757af1b Merge pull request #1491 from johnmiked15/feature/tabline_updates
Tabline and bufferlister updates
2015-11-15 06:30:11 +03:00
John Drouhard 31210242ef use str.format() instead of % operator; add comment to explain the usage of vim.eval('buflisted..') 2015-11-14 20:16:22 -06:00
John Drouhard 3f400f7d1a update test_tabline.vim with new tab:divider highlight group 2015-11-14 19:39:35 -06:00
John Drouhard a85b54d923 Update vim test module to implement 'getbufvar(...)'
This allows the tests for the buffer tablist to pass, since it now uses
getbufvar(nr, '&modified') to detect whether the buffer needs to be
modified
2015-11-14 19:39:35 -06:00
John Drouhard 63214c8a79 Update highlight groups for tabline
This changes the buffer highlight groups from buf and buf_nc to
buf, buf_nc, buf_mod, and buf_nc_mod. Doing this allows a higher
level of configurability for the highlight groups used in the
buffer-only tabline.
2015-11-14 15:12:48 -06:00
John Drouhard 6efabc170d Fix performance issue with tabline and showtabline=2
vim_getbufoption(segment, 'buflisted') was causing vim to update the tabline for every
keystroke. using vim.eval('buflisted(nr)') allows vim to optimize when
it needs to update

Fixes #1281
2015-11-14 14:49:42 -06:00
Nikolai Aleksandrovich Pavlov 4e7f39926a Merge pull request #1486 from michelesr/develop
Fix #1483 -- [Battery - Linux] Fix AC status fetch
2015-11-08 18:10:28 +03:00
Michele Sorcinelli 2063411d34 Fix #1483 -- [Battery - Linux] Fix AC status fetch
Fix a bug where the `online` property is checked inside battery
instead of AC.

As specified in issue #1483, `online` is found only inside
`/sys/class/power_supply/AC<x>/` directories, and equals `1` when cable is
plugged, and `0` when unplugged.

Edit: updated with --amend according to ZyX-I hints in order to work with
powerline daemon.
2015-11-08 15:44:32 +01:00
Nikolai Aleksandrovich Pavlov 5364919b47 Merge pull request #1482 from fernandezcuesta/develop
Include dist folder to MANIFEST.in
2015-11-04 19:30:50 +03:00
Jesús Fernández 9fcf8fa0c1 Including `dist` folder to MANIFEST.in 2015-11-04 12:19:28 +01:00
Foo fc6c3d9474 Merge branch 'release-2.3' into develop 2015-10-20 12:54:26 +03:00
Foo 312301b3f4 Update base version 2015-10-20 12:54:26 +03:00
Nikolai Aleksandrovich Pavlov a7dc28fb4d Merge pull request #1472 from ZyX-I/pr-1426
Add hide_domain argument to common.env.user segment
2015-10-20 00:03:41 +03:00
= e0a62f9cf7 Add hide_domain argument to common.env.user segment
If true, this argument hides `@` and the following characters from the user
name.

Fixes #1420
Closes #1426
2015-10-19 23:53:23 +03:00
Nikolai Aleksandrovich Pavlov e041f0e6ac Merge pull request #1451 from QuLogic/virtualenv-conda
Show conda environment in virtualenv segment.
2015-10-19 23:50:05 +03:00
Nikolai Aleksandrovich Pavlov ddfbb20eba Merge pull request #1471 from ZyX-I/tmux-2.1-update
Support tmux-2.1
2015-10-19 23:34:12 +03:00
Foo 0233909189 Do not allow failures any more 2015-10-19 23:29:34 +03:00
Foo 688e507967 Install old virtualenvwrapper for 2.6 UCS2 Python 2015-10-19 22:46:20 +03:00
Foo c4b4097b0c Transform pane_id to unicode before using
Tmux-2.1 appears not to output leading `%` when using `tmux display -p '#D'`.
This change changes type of the `pane_id` argument: leading `%` turns it into
a literal string, number in front makes it be parsed as a JSON number.

Fixes #1470
2015-10-19 22:00:45 +03:00
Nikolai Aleksandrovich Pavlov 3b3d8f0188 Merge pull request #1408 from ti-mo/develop
Added tips for Urxvt compiler flags
2015-10-16 00:21:49 +03:00
Timo Beckers e6d484a329 Added troubleshooting for Urxvt & Unicode 2015-10-15 23:14:52 +02:00
Nikolai Aleksandrovich Pavlov 841c25f6b6 Merge pull request #1467 from S0lll0s/i3-docs
Add i3 to the tagline
2015-10-08 20:07:56 +03:00
S0lll0s 9247567ae9 Add i3 to the tagline 2015-10-08 11:52:29 +02:00
Nikolai Aleksandrovich Pavlov 44b2f91729 Merge pull request #1466 from ZyX-I/fix-pypy3-test
Skip date test on PyPy3
2015-10-06 02:15:06 +03:00
Foo 76be911b81 Skip date test on PyPy3
See https://bitbucket.org/pypy/pypy/issues/2161/pypy3-strftime-does-not-accept-unicode
2015-10-06 01:46:25 +03:00
Foo 1cd992b4e3 Merge branch 'disable-python2.6-ucs2-tests' into develop 2015-10-06 01:40:15 +03:00