Explorar el Código

Update init.lua

pull/15/head
10sr hace 8 años
padre
commit
96194fb33f
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. +10
    -1
      micro/init.lua

+ 10
- 1
micro/init.lua Ver fichero

@@ -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

Cargando…
Cancelar
Guardar