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