changed journal file name

This commit is contained in:
Patrizio Bekerle 2017-05-16 19:56:19 +02:00
parent e8adb04a48
commit 88f466cba8
No known key found for this signature in database
GPG Key ID: 2E9FFD770DABE838
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
"name": "Journal entry",
"identifier": "journal-entry",
"script": "journal-entry.qml",
"version": "0.1",
"version": "0.0.2",
"description" : "This script creates a menu item and a button to create or jump to the current date's journal entry."
}

View File

@ -25,7 +25,7 @@ QtObject {
// get the date headline
var m = new Date();
var headline = m.getFullYear() + ("0" + (m.getMonth()+1)).slice(-2) + ("0" + m.getDate()).slice(-2);
var headline = "Journal " + m.getFullYear() + ("0" + (m.getMonth()+1)).slice(-2) + ("0" + m.getDate()).slice(-2);
var fileName = headline + ".md";
var note = script.fetchNoteByFileName(fileName);