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.
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.
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.
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
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
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.
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
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.
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