1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-01 19:19:24 +08:00

opt vimer.js

This commit is contained in:
harveyshao 2022-07-14 18:38:53 +08:00
parent 475250ec71
commit fddbde8c44

View File

@ -79,18 +79,28 @@ func _vimer_inputs(m *ice.Message, arg ...string) {
m.Push(nfs.FILE, strings.ReplaceAll(file, ice.PT+ext, ice.PT+t))
}
}
case nfs.WEBSITE:
switch arg[0] {
case nfs.FILE:
m.Push(nfs.FILE, "hi.zml")
m.Push(nfs.FILE, "hi.iml")
}
case web.DREAM:
m.Cmdy(web.DREAM, mdb.INPUTS, arg)
case AUTOGEN:
m.Cmdy(AUTOGEN, mdb.INPUTS, arg)
default:
switch arg[0] {
case ctx.INDEX:
m.OptionFields(ctx.INDEX)
m.Cmdy(ctx.COMMAND, mdb.SEARCH, ctx.COMMAND, kit.Select("", arg, 1), "")
case nfs.FILE:
p := kit.Select(nfs.PWD, arg, 1)
m.Option(nfs.DIR_ROOT, m.Option(nfs.PATH))
m.Option(nfs.DIR_DEEP, strings.HasPrefix(m.Option(nfs.PATH), ice.SRC))
m.Cmdy(nfs.DIR, kit.Select(path.Dir(p), p, strings.HasSuffix(p, ice.FS))+ice.PS, nfs.DIR_CLI_FIELDS)
m.ProcessAgain()
}
}
}