|
@@ -6,9 +6,18 @@ function onViewOpen(view) |
|
|
local filename = view.Buf.Path |
|
|
local filename = view.Buf.Path |
|
|
-- prop, names = ec.parse(filepath) |
|
|
-- prop, names = ec.parse(filepath) |
|
|
local fullpath = JoinPaths(pwd, filename) |
|
|
local fullpath = JoinPaths(pwd, filename) |
|
|
messenger:Message("view.Buf.Path: " .. fullpath) |
|
|
|
|
|
|
|
|
local out = getProperties(fullpath) |
|
|
|
|
|
messenger:Message("view.Buf.Path: " .. out) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
local function getProperties(fullpath) |
|
|
|
|
|
local file = io.popen("echo fullpath: " .. fullpath, "r") |
|
|
|
|
|
local output = file:read("*all") |
|
|
|
|
|
file:close() |
|
|
|
|
|
return output |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function onSave(view) |
|
|
function onSave(view) |
|
|
messenger:Message("Saved!") |
|
|
messenger:Message("Saved!") |
|
|
end |
|
|
end |