diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-11 00:17:18 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-11 00:20:40 +0200 |
commit | 5c5377fbaa7290909dbd3c53d0a487d40752428c (patch) | |
tree | 7384246f2b135f55b871cb4bbe229f76560da572 /res | |
parent | b02d940cfc20e67ee866bf47b02612aed6bcf24d (diff) | |
download | chawan-5c5377fbaa7290909dbd3c53d0a487d40752428c.tar.gz |
pager: take $EDITOR from env
* use EDITOR environment variable in default config, fix line number ordering in fallback * autodetect vi-like editors and add line number
Diffstat (limited to 'res')
-rw-r--r-- | res/config.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/config.toml b/res/config.toml index c7d54aed..3ace21bd 100644 --- a/res/config.toml +++ b/res/config.toml @@ -238,7 +238,7 @@ urimethodmap = [ "/usr/local/etc/w3m/urimethodmap" ] tmpdir = "/tmp/cha" -editor = "vi %s +%d" +editor = "${EDITOR:-vi +%d %s}" cgi-dir = "${%CHA_LIBEXEC_DIR}/cgi-bin" download-dir = "/tmp/" w3m-cgi-compat = false |