1
0
Fork 0
mirror of https://github.com/marty-oehme/scripts.git synced 2024-12-22 16:08:09 +00:00

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", "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."
} }

View file

@ -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);