From 6959aae1feb737a182f5f7d7ac1d2a087ee918a0 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Fri, 21 Oct 2022 11:38:58 +0800 Subject: [PATCH] opt some --- core/code/vimer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/code/vimer.go b/core/code/vimer.go index 2b22a83b..9059284f 100644 --- a/core/code/vimer.go +++ b/core/code/vimer.go @@ -63,7 +63,7 @@ func init() { switch arg[0] { case ctx.INDEX: m.Cmdy(ctx.COMMAND, mdb.SEARCH, ctx.COMMAND, ice.OptionFields(ctx.INDEX)) - default: + case nfs.FILE: p := m.Option(nfs.PATH) list := ice.Map{} m.Cmd(FAVOR, "_recent_file").Tables(func(value ice.Maps) { @@ -84,6 +84,7 @@ func init() { m.Cmd(FAVOR, "_system_app").Tables(func(value ice.Maps) { m.Push(nfs.PATH, "_open:"+strings.ToLower(value[mdb.NAME])) }) + default: } } }},