forked from x/icebergs
opt inner.js
This commit is contained in:
parent
27e0f84c07
commit
298d1ac6f2
@ -155,6 +155,12 @@ func ZoneAction(args ...interface{}) map[string]*ice.Action {
|
||||
m.Cmdy("context", kit.Select(m.Option(ice.CTX), m.Option(kit.Keys(EXTRA, ice.CTX))), "command")
|
||||
case ice.ARG:
|
||||
|
||||
case "path":
|
||||
m.Cmdy("nfs.dir", arg[1:]).Cut("path,size,time").ProcessAgain()
|
||||
case "file":
|
||||
m.Option("dir_root", m.Option("path"))
|
||||
m.Cmdy("nfs.dir", arg[1:]).Cut("path,size,time").ProcessAgain()
|
||||
|
||||
case "index":
|
||||
m.OptionFields(arg[0])
|
||||
m.Cmdy("command", SEARCH, "command", kit.Select("", arg, 1))
|
||||
|
@ -72,7 +72,7 @@ const INNER = "inner"
|
||||
|
||||
func init() {
|
||||
Index.Merge(&ice.Context{Commands: map[string]*ice.Command{
|
||||
INNER: {Name: "inner path=src/ file=main.go line=1 auto", Help: "源代码", Meta: kit.Dict(
|
||||
INNER: {Name: "inner path=src/@key file=main.go line=1 auto", Help: "源代码", Meta: kit.Dict(
|
||||
ice.DisplayLocal(""),
|
||||
), Action: ice.MergeAction(map[string]*ice.Action{
|
||||
mdb.PLUGIN: {Name: "plugin", Help: "插件", Hand: func(m *ice.Message, arg ...string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user