mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Opens journal file before allowing user to compose entry, closes #21
This commit is contained in:
parent
e1f10e5cf6
commit
4e9b9c412c
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
* [Fixed] Bug where composed entry is lost when the journal file fails to load
|
||||||
* Changed directory structure and install scripts (removing the necessity to make an alias from `jrnl` to `jrnl.py`)
|
* Changed directory structure and install scripts (removing the necessity to make an alias from `jrnl` to `jrnl.py`)
|
||||||
|
|
||||||
### 0.2.4
|
### 0.2.4
|
||||||
|
|
|
@ -140,6 +140,9 @@ def cli():
|
||||||
print("According to your jrnl_conf, your journal is encrypted, however PyCrypto was not found. To open your journal, install the PyCrypto package from http://www.pycrypto.org.")
|
print("According to your jrnl_conf, your journal is encrypted, however PyCrypto was not found. To open your journal, install the PyCrypto package from http://www.pycrypto.org.")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
# open journal file
|
||||||
|
journal = Journal.Journal(config=config)
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
mode_compose, mode_export = guess_mode(args, config)
|
mode_compose, mode_export = guess_mode(args, config)
|
||||||
|
|
||||||
|
@ -153,9 +156,6 @@ def cli():
|
||||||
else:
|
else:
|
||||||
mode_compose = False
|
mode_compose = False
|
||||||
|
|
||||||
# open journal
|
|
||||||
journal = Journal.Journal(config=config)
|
|
||||||
|
|
||||||
# Writing mode
|
# Writing mode
|
||||||
if mode_compose:
|
if mode_compose:
|
||||||
raw = " ".join(args.text).strip()
|
raw = " ".join(args.text).strip()
|
||||||
|
|
Loading…
Add table
Reference in a new issue