mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	insert current date + time on alt+t
This commit is contained in:
		| @@ -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); | ||||||
|  | }); | ||||||
		Reference in New Issue
	
	Block a user