mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 03:28:31 +02:00
Suppress "Entry added to default journal" message if using default journal
This commit is contained in:
parent
8948334d5d
commit
ee762b53bd
1 changed files with 8 additions and 6 deletions
|
@ -7,6 +7,7 @@ import sys
|
|||
from jrnl import install
|
||||
from jrnl import plugins
|
||||
from jrnl import time
|
||||
from jrnl.config import DEFAULT_JOURNAL_KEY
|
||||
from jrnl.config import get_config_path
|
||||
from jrnl.config import get_journal_name
|
||||
from jrnl.config import scope_config
|
||||
|
@ -146,6 +147,7 @@ def write_mode(args, config, journal, **kwargs):
|
|||
'Write mode: appending raw text to journal "%s": %s', args.journal_name, raw
|
||||
)
|
||||
journal.new_entry(raw)
|
||||
if args.journal_name != DEFAULT_JOURNAL_KEY:
|
||||
print_msg(
|
||||
Message(
|
||||
MsgText.JournalEntryAdded,
|
||||
|
|
Loading…
Add table
Reference in a new issue