mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Try $VISUAL and $EDITOR for config['editor']
On UNIX derivates they expand to the default or preferred editor and avoid unnecessary first time edits of the config file.
This commit is contained in:
parent
45f20a3550
commit
4f73660231
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ default_config = {
|
||||||
'journals': {
|
'journals': {
|
||||||
"default": os.path.expanduser("~/journal.txt")
|
"default": os.path.expanduser("~/journal.txt")
|
||||||
},
|
},
|
||||||
'editor': "",
|
'editor': os.getenv('VISUAL') or os.getenv('EDITOR') or "",
|
||||||
'encrypt': False,
|
'encrypt': False,
|
||||||
'default_hour': 9,
|
'default_hour': 9,
|
||||||
'default_minute': 0,
|
'default_minute': 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue