mirror of
https://shylinux.com/x/icebergs
synced 2025-06-26 18:37:29 +08:00
opt some
This commit is contained in:
parent
9b11b4aa20
commit
fc2c58d8b2
@ -181,7 +181,6 @@ func init() {
|
||||
if arg[0] == kit.MDB_FOREACH {
|
||||
return
|
||||
}
|
||||
m.Option(cli.CMD_DIR, kit.Select("src", arg, 2))
|
||||
_go_find(m, kit.Select("main", arg, 1))
|
||||
_go_help(m, kit.Select("main", arg, 1))
|
||||
_go_tags(m, kit.Select("main", arg, 1))
|
||||
|
@ -84,8 +84,8 @@ func init() {
|
||||
_inner_show(m, arg[0], arg[1], arg[2], arg[3:]...)
|
||||
}},
|
||||
mdb.SEARCH: {Name: "search", Help: "搜索", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Option(mdb.FIELDS, "file,line,text")
|
||||
m.Cmdy(mdb.SEARCH, arg)
|
||||
m.Option(cli.CMD_DIR, kit.Select("src", arg, 2))
|
||||
m.Cmdy(mdb.SEARCH, arg[:2], "file,line,text")
|
||||
}},
|
||||
|
||||
FAVOR: {Name: "favor insert", Help: "收藏"},
|
||||
|
@ -17,10 +17,12 @@ const VIMER = "vimer"
|
||||
func init() {
|
||||
Index.Merge(&ice.Context{
|
||||
Commands: map[string]*ice.Command{
|
||||
VIMER: {Name: "vimer path=src/ file=main.go line=1 刷新:button=auto save project search", Help: "编辑器", Meta: kit.Dict(
|
||||
VIMER: {Name: "vimer path=src/ file=main.go line=1 刷新:button=auto save project searchShow", Help: "编辑器", Meta: kit.Dict(
|
||||
"display", "/plugin/local/code/vimer.js", "style", "editor",
|
||||
"trans", kit.Dict("display", "运行", "project", "项目", "search", "搜索"),
|
||||
), Action: map[string]*ice.Action{
|
||||
"searchShow": {Name: "searchShow", Help: "搜索", Hand: func(m *ice.Message, arg ...string) {
|
||||
}},
|
||||
nfs.SAVE: {Name: "save type file path", Help: "保存", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Cmdy(nfs.SAVE, path.Join(m.Option(kit.MDB_PATH), m.Option(kit.MDB_FILE)))
|
||||
}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user