mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Add default export folder config
Signed-off-by: Aniket Pant <me@aniketpant.com>
This commit is contained in:
parent
868d29a92e
commit
a959ed49fd
2 changed files with 6 additions and 1 deletions
|
@ -45,6 +45,7 @@ class Journal(object):
|
|||
'tagsymbols': '@',
|
||||
'highlight': True,
|
||||
'linewrap': 80,
|
||||
'folder': os.path.expanduser("~/journal/"),
|
||||
}
|
||||
self.config.update(kwargs)
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ default_config = {
|
|||
'tagsymbols': '@',
|
||||
'highlight': True,
|
||||
'linewrap': 80,
|
||||
'folder': os.path.expanduser("~/journal/"),
|
||||
}
|
||||
|
||||
|
||||
|
@ -94,4 +95,7 @@ def install_jrnl(config_path='~/.jrnl_config'):
|
|||
config['password'] = password
|
||||
return config
|
||||
|
||||
|
||||
# Where to export files?
|
||||
path_query = 'Path to your journal folder (leave blank for ~/journal): '
|
||||
folder_path = raw_input(path_query).strip() or os.path.expanduser('~/journal')
|
||||
default_config['folder'] = os.path.expanduser(folder_path)
|
||||
|
|
Loading…
Add table
Reference in a new issue