Add support of reading parameters for external editor/viewer from main config.
authorSlava Zanko <slavazanko@gmail.com>
Thu, 10 Jan 2013 21:00:00 +0000 (00:00 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Sat, 16 Feb 2013 14:40:37 +0000 (17:40 +0300)
commit278178093e2120703ef7bdb17abb7eaa63e47877
tree03bce46448284965199f108efeb4cfbe098cb3e6
parente50c3f8475224fbc4989b2c3bde0d83478c9396e
Add support of reading parameters for external editor/viewer from main config.

for example, the config file may contain strings:

[External editor or viewer parameters]
    vim = %filename +%lineno
    mcedit = %filename:%lineno

And these external editors will open a file at the previously saved position.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
lib/mcconfig.h
src/execute.c
tests/src/Makefile.am
tests/src/execute__execute_get_external_cmd_opts_from_config.c [new file with mode: 0644]