瀏覽代碼

Update init.lua

pull/15/head
10sr 8 年之前
父節點
當前提交
96194fb33f
共有 1 個檔案被更改,包括 10 行新增1 行删除
  1. +10
    -1
      micro/init.lua

+ 10
- 1
micro/init.lua 查看文件

@@ -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…
取消
儲存