Make view columns configurable
commit31dc36c909bcb181112c7a2f92d635dbdd683437
authorJonas Fonseca <jonas.fonseca@gmail.com>
Wed, 23 Apr 2014 03:38:56 +0000 (22 23:38 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Wed, 23 Apr 2014 03:53:16 +0000 (22 23:53 -0400)
tree97745e6fd86b9ca40eb05a541f40ff13713db88a
parente330329020843e1f123f17fd3c5cfb7c63dfe501
Make view columns configurable

This introduces new settings for all column-based views to make them
configurable via tigrc. The configuration format is a simple
space-separated list of strings, each containing comma-separated
key=value pairs. This allows to enable columns such as line numbers
individually for each view (as mentioned in issue #222) and hiding the
ID column in the blame view.

Due to the difference in configuration format all old view UI display
settings are now obsolete with no graceful upgrade. However, warnings
for all obsolete settings are emitted pointing to the view column types.

References #89
Fixes #222
20 files changed:
NEWS.adoc
doc/tigrc.5.adoc
include/tig/options.h
include/tig/pager.h
include/tig/types.h
include/tig/view.h
src/blame.c
src/blob.c
src/diff.c
src/grep.c
src/log.c
src/main.c
src/options.c
src/pager.c
src/refs.c
src/stage.c
src/stash.c
src/tree.c
src/view.c
tigrc