From 482e57924285924b998182d8e908121f0eb12322 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 11 Jun 2012 15:58:25 +0200 Subject: [PATCH] Adds support for multiple journals --- jrnl/install.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jrnl/install.py b/jrnl/install.py index 49f58e31..5098fd51 100644 --- a/jrnl/install.py +++ b/jrnl/install.py @@ -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: