nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 072acbf2c4c71b09dbf3def86626f7f46e832e01
parent a4f2cac8d3d414b14938fd8ad11712fb613552b7
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 23 Sep 2019 19:37:37 -0400

Use $VISUAL instead of $EDITOR

Diffstat:
Mnncli/config.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nncli/config.py b/nncli/config.py @@ -37,8 +37,8 @@ def __init__(self, custom_file=None): 'cfg_format_strftime' : '%Y/%m/%d', 'cfg_format_note_title' : '[%D] %F %-N %T', 'cfg_status_bar' : 'yes', - 'cfg_editor' : os.environ['EDITOR'] \ - if 'EDITOR' in os.environ else 'vim {fname} +{line}', + 'cfg_editor' : os.environ['VISUAL'] \ + if 'VISUAL' in os.environ else 'vim {fname} +{line}', 'cfg_pager' : os.environ['PAGER'] \ if 'PAGER' in os.environ else 'less -c', 'cfg_max_logs' : '5',