ソースを参照

Update init.lua

pull/15/head
10sr 7年前
コミット
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

読み込み中…
キャンセル
保存