chore(vault): track .obsidian plugin configs (incl. obsidian-git settings)

This commit is contained in:
hehaiguang1123
2026-07-01 08:20:57 +08:00
parent e166ef1052
commit c7037119a5
216 changed files with 447823 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
local function encode (str)
str = string.gsub (str, "([^0-9a-zA-Z !'()*._~-])", -- locale independent
function (c) return string.format ("%%%02X", string.byte(c)) end)
str = string.gsub (str, " ", "%%20")
return str
end
local function decode (str)
str = string.gsub (str, "%%20", " ")
str = string.gsub (str, "%%(%x%x)", function(h) return string.char(tonumber(h,16)) end)
return str
end
return {
encode = encode,
decode = decode
}