mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-12-22 07:58:08 +00:00
changed journal file name
This commit is contained in:
parent
e8adb04a48
commit
88f466cba8
2 changed files with 2 additions and 2 deletions
|
@ -2,6 +2,6 @@
|
||||||
"name": "Journal entry",
|
"name": "Journal entry",
|
||||||
"identifier": "journal-entry",
|
"identifier": "journal-entry",
|
||||||
"script": "journal-entry.qml",
|
"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."
|
"description" : "This script creates a menu item and a button to create or jump to the current date's journal entry."
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ QtObject {
|
||||||
|
|
||||||
// get the date headline
|
// get the date headline
|
||||||
var m = new Date();
|
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 fileName = headline + ".md";
|
||||||
var note = script.fetchNoteByFileName(fileName);
|
var note = script.fetchNoteByFileName(fileName);
|
||||||
|
|
Loading…
Reference in a new issue