Browse Source

Update init.lua

pull/15/head
10sr 7 years ago
parent
commit
96194fb33f
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      micro/init.lua

+ 10
- 1
micro/init.lua View File

@@ -6,9 +6,18 @@ function onViewOpen(view)
local filename = view.Buf.Path
-- prop, names = ec.parse(filepath)
local fullpath = JoinPaths(pwd, filename)
messenger:Message("view.Buf.Path: " .. fullpath)
local out = getProperties(fullpath)
messenger:Message("view.Buf.Path: " .. out)
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)
messenger:Message("Saved!")
end

Loading…
Cancel
Save