From 7c0f8752b3b75e99ce0b3be14e7cb8a8b5f81984 Mon Sep 17 00:00:00 2001 From: "shylinux@163.com" Date: Mon, 19 Sep 2022 23:07:58 +0800 Subject: [PATCH] opt some --- etc/init.shy | 3 ++- src/main.go | 2 ++ src/main.shy | 23 ++++++++++++++++++++++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/etc/init.shy b/etc/init.shy index 69a0040a..d827f3bf 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -17,9 +17,10 @@ config inner meta.show.tabs "" config inner meta.show.exts "inner/search.js?a=1" config inner meta.show.plug "" + config vimer meta.show.tabs "" config vimer meta.show.exts "inner/search.js?a=1,inner/favor.js" - config vimer meta.show.plug "web.code.tmux.session,web.code.git.status,web.code.xterm,cli.system" + config vimer meta.show.plug "web.code.git.status,web.code.tmux.session,web.code.xterm,cli.system" ~web.code.input # wubi load file usr/wubi-dict/wubi86 diff --git a/src/main.go b/src/main.go index 95c077df..47b0dcff 100644 --- a/src/main.go +++ b/src/main.go @@ -47,6 +47,8 @@ import ( _ "shylinux.com/x/golang-story/src/data" _ "shylinux.com/x/golang-story/src/data/leecode" + + _ "shylinux.com/x/contexts/src/h2" ) func main() { print(ice.Run()) } \ No newline at end of file diff --git a/src/main.shy b/src/main.shy index 9bfc48b5..edd68989 100644 --- a/src/main.shy +++ b/src/main.shy @@ -1,3 +1,22 @@ +field "src/hi/hi.go" web.code.inner spark ` +package hi + +import ( + "shylinux.com/x/ice" +) + +type hi struct { + ice.Zone +} + +func (h hi) List(m *ice.Message, arg ...string) { + h.Zone.List(m, arg...) +} + +func init() { ice.Cmd("web.code.hi.hi", hi{}) } +` +return + title "contexts" refer ` 官网 https://contexts.com.cn @@ -42,4 +61,6 @@ source "usr/icebergs/misc/java/compile.shy" source "usr/icebergs/misc/java/spring.shy" source "usr/icebergs/misc/node/compile.shy" source "usr/icebergs/misc/node/vue.shy" -source "usr/icebergs/misc/coder/coder.shy" \ No newline at end of file +source "usr/icebergs/misc/coder/coder.shy" + +source h2/h2.shy \ No newline at end of file