From ed7a4ba03dd1ebfdd91a6e25b84e3d1082cbd16f Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sun, 13 Aug 2023 14:19:36 +0200 Subject: [PATCH] adds key mappings time/date mappings + CTRL+S --- mappings.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mappings.lua b/mappings.lua index d87f7de..9854222 100644 --- a/mappings.lua +++ b/mappings.lua @@ -20,6 +20,15 @@ return { ["b"] = { name = "Buffers" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command + [""] = { '"=strftime("%H%M ")P' }, + [""] = { '"=strftime("date %G-%m-%d")P' }, + }, + i = { + [""] = { "w!a", desc = "Force write file" }, -- change description but the same command + -- [""] = { '=strftime("%Y-%m-%dT%H:%M:%S%z")', desc = "Replace with actual date&time" }, + [""] = { '=strftime("%H%M ")' }, + [""] = { '=strftime("date %G-%m-%d")' }, + [""] = { '=strftime("%Y-%m-%dT%H:%M:%S%z")', desc = "Insert actual date&time" }, }, t = { -- setting a mapping to false will disable it