Skip to content

Build your personal knowledge base with Trilium Notes

insert current date + time on alt+t

azivnerb57463d04950
diff --git a/static/js/init.js b/static/js/init.js
index 91e4bbbaf6..0993985e3e 100644
--- a/static/js/init.js
+++ b/static/js/init.js
@@ -160,4 +160,13 @@ $("#addLinkButton").click(function() {
$(document).bind('keydown', 'alt+s', function() {
$("input[name=search]").focus();
+});
+
+$(document).bind('keydown', 'alt+t', function() {
+ const date = new Date();
+
+ const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " +
+ date.getHours() + ":" + date.getMinutes();
+
+ $('#noteDetail').summernote('insertText', dateString);
});
\ No newline at end of file