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
d48a03a00e
commit
7e1b5316aa
2 changed files with 6 additions and 1 deletions
|
@ -45,6 +45,7 @@ class Journal(object):
|
||||||
'tagsymbols': '@',
|
'tagsymbols': '@',
|
||||||
'highlight': True,
|
'highlight': True,
|
||||||
'linewrap': 80,
|
'linewrap': 80,
|
||||||
|
'folder': os.path.expanduser("~/journal/"),
|
||||||
}
|
}
|
||||||
self.config.update(kwargs)
|
self.config.update(kwargs)
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ default_config = {
|
||||||
'tagsymbols': '@',
|
'tagsymbols': '@',
|
||||||
'highlight': True,
|
'highlight': True,
|
||||||
'linewrap': 80,
|
'linewrap': 80,
|
||||||
|
'folder': os.path.expanduser("~/journal/"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,4 +95,7 @@ def install_jrnl(config_path='~/.jrnl_config'):
|
||||||
config['password'] = password
|
config['password'] = password
|
||||||
return config
|
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