mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
insert current date + time on alt+t
This commit is contained in:
parent
361e69d236
commit
b57463d049
@ -161,3 +161,12 @@ $("#addLinkButton").click(function() {
|
|||||||
$(document).bind('keydown', 'alt+s', function() {
|
$(document).bind('keydown', 'alt+s', function() {
|
||||||
$("input[name=search]").focus();
|
$("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);
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user