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
99e8679b48
commit
386d813eeb
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
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`)
|
||||
|
||||
### 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.")
|
||||
sys.exit(-1)
|
||||
|
||||
# open journal file
|
||||
journal = Journal.Journal(config=config)
|
||||
|
||||
args = parse_args()
|
||||
mode_compose, mode_export = guess_mode(args, config)
|
||||
|
||||
|
@ -153,9 +156,6 @@ def cli():
|
|||
else:
|
||||
mode_compose = False
|
||||
|
||||
# open journal
|
||||
journal = Journal.Journal(config=config)
|
||||
|
||||
# Writing mode
|
||||
if mode_compose:
|
||||
raw = " ".join(args.text).strip()
|
||||
|
|
Loading…
Add table
Reference in a new issue