From b31a217bafa4557c6c7359b8ce26ed61058f49c9 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Wed, 25 Jan 2023 23:13:35 +0800 Subject: [PATCH] opt inner.js --- base/nfs/grep.go | 1 + core/code/go.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/base/nfs/grep.go b/base/nfs/grep.go index c684ecdd..ac4c483c 100644 --- a/base/nfs/grep.go +++ b/base/nfs/grep.go @@ -13,6 +13,7 @@ const GREP = "grep" func init() { Index.MergeCommands(ice.Commands{ GREP: {Name: "grep word path auto", Help: "搜索", Hand: func(m *ice.Message, arg ...string) { + m.Option(mdb.VALUE, arg[0]) m.Option("cmd_dir", kit.Select(m.Option(PATH), arg, 1)) for _, line := range strings.Split(m.Cmdx("cli.system", GREP, "--exclude=.[a-z]*", "--exclude-dir=.[a-z]*", "--exclude-dir=node_modules", "-rni", arg[0], ice.PT), ice.NL) { if ls := strings.SplitN(line, ice.DF, 3); len(ls) > 2 { diff --git a/core/code/go.go b/core/code/go.go index c5de18b6..c62b281d 100644 --- a/core/code/go.go +++ b/core/code/go.go @@ -62,7 +62,8 @@ func _go_exec(m *ice.Message, arg ...string) { } func _go_show(m *ice.Message, arg ...string) { // TagsList(m, "gotags", path.Join(m.Option(nfs.PATH), m.Option(nfs.FILE))) - TagsList(m, "gotags", path.Join(arg[2], arg[1])) + // TagsList(m, "gotags", path.Join(arg[2], arg[1])) + _go_exec(m, arg...) } func _mod_show(m *ice.Message, file string) { const (