mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Adds support for multiple journals
This commit is contained in:
parent
46ba622aa1
commit
482e579242
1 changed files with 4 additions and 2 deletions
|
@ -17,7 +17,9 @@ def module_exists(module_name):
|
|||
return True
|
||||
|
||||
default_config = {
|
||||
'journal': os.path.expanduser("~/journal.txt"),
|
||||
'journals': {
|
||||
"default": os.path.expanduser("~/journal.txt")
|
||||
},
|
||||
'editor': "",
|
||||
'encrypt': False,
|
||||
'password': "",
|
||||
|
@ -61,7 +63,7 @@ def install_jrnl(config_path='~/.jrnl_config'):
|
|||
print("clint not found. To turn on highlighting, install clint and set highlight to true in your .jrnl_conf.")
|
||||
default_config['highlight'] = False
|
||||
|
||||
open(default_config['journal'], 'a').close() # Touch to make sure it's there
|
||||
open(default_config['journals']['default'], 'a').close() # Touch to make sure it's there
|
||||
|
||||
# Write config to ~/.jrnl_conf
|
||||
with open(config_path, 'w') as f:
|
||||
|
|
Loading…
Add table
Reference in a new issue