mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
update message to use new functionality
This commit is contained in:
parent
bf8e779c65
commit
d2f2967bc1
2 changed files with 9 additions and 2 deletions
|
@ -109,8 +109,12 @@ def install():
|
||||||
|
|
||||||
# Where to create the journal?
|
# Where to create the journal?
|
||||||
default_journal_path = get_default_journal_path()
|
default_journal_path = get_default_journal_path()
|
||||||
path_query = f"Path to your journal file (leave blank for {default_journal_path}): "
|
user_given_path = print_msg(
|
||||||
journal_path = os.path.abspath(input(path_query).strip() or default_journal_path)
|
Message(MsgText.InstallJournalPathQuestion, MsgStyle.PROMPT),
|
||||||
|
get_input=True,
|
||||||
|
)
|
||||||
|
journal_path = os.path.abspath(user_given_path or default_journal_path)
|
||||||
|
|
||||||
default_config = get_default_config()
|
default_config = get_default_config()
|
||||||
default_config["journals"][DEFAULT_JOURNAL_KEY] = os.path.expanduser(
|
default_config["journals"][DEFAULT_JOURNAL_KEY] = os.path.expanduser(
|
||||||
os.path.expandvars(journal_path)
|
os.path.expandvars(journal_path)
|
||||||
|
|
|
@ -69,6 +69,9 @@ class MsgText(Enum):
|
||||||
AllDoneUpgrade = "We're all done here and you can start enjoying jrnl 2"
|
AllDoneUpgrade = "We're all done here and you can start enjoying jrnl 2"
|
||||||
|
|
||||||
# --- Prompts --- #
|
# --- Prompts --- #
|
||||||
|
InstallJournalPathQuestion = """
|
||||||
|
Path to your journal file (leave blank for {default_journal_path}):
|
||||||
|
"""
|
||||||
DeleteEntryQuestion = "Delete entry '{entry_title}'?"
|
DeleteEntryQuestion = "Delete entry '{entry_title}'?"
|
||||||
EncryptJournalQuestion = """
|
EncryptJournalQuestion = """
|
||||||
Do you want to encrypt your journal? (You can always change this later)
|
Do you want to encrypt your journal? (You can always change this later)
|
||||||
|
|
Loading…
Add table
Reference in a new issue