summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-25 23:11:18 +0800
committerruki <[email protected]>2018-01-25 13:07:53 +0800
commitd394e5ff46ff2856d2c8ae4772d2e84606449d32 (patch)
treee51addfa545e08804d70274d4bfe1ae9de333d2b
parent0c2c2d7b393d63caceea975eca697dc8d6665a1c (diff)
add ide plugin images in readme
-rw-r--r--README.md9
-rw-r--r--README_zh.md9
-rw-r--r--xmake/core/ui/menuconf.lua20
3 files changed, 28 insertions, 10 deletions
diff --git a/README.md b/README.md
index 70fe0a7b2..f4b2ff8a6 100644
--- a/README.md
+++ b/README.md
@@ -149,8 +149,17 @@ Please download and install from the plugins repository [xmake-plugins](https://
## IDE/Editor Integration
* [xmake-vscode](https://github.com/tboox/xmake-vscode)
+
+<img src="https://raw.githubusercontent.com/tboox/xmake-vscode/master/res/problem.gif" width="60%" />
+
* [xmake-sublime](https://github.com/tboox/xmake-sublime)
+
+<img src="https://raw.githubusercontent.com/tboox/xmake-sublime/master/res/problem.gif" width="60%" />
+
* [xmake-idea](https://github.com/tboox/xmake-idea)
+
+<img src="https://raw.githubusercontent.com/tboox/xmake-idea/master/res/problem.gif" width="60%" />
+
* [xmake.vim](https://github.com/luzhlon/xmake.vim) (third-party, thanks [@luzhlon](https://github.com/luzhlon))
## Examples
diff --git a/README_zh.md b/README_zh.md
index 10bcc4b5a..e0d51c70a 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -155,8 +155,17 @@ $ xmake run -d console
## IDE和编辑器插件
* [xmake-vscode](https://github.com/tboox/xmake-vscode)
+
+<img src="https://raw.githubusercontent.com/tboox/xmake-vscode/master/res/problem.gif" width="60%" />
+
* [xmake-sublime](https://github.com/tboox/xmake-sublime)
+
+<img src="https://raw.githubusercontent.com/tboox/xmake-sublime/master/res/problem.gif" width="60%" />
+
* [xmake-idea](https://github.com/tboox/xmake-idea)
+
+<img src="https://raw.githubusercontent.com/tboox/xmake-idea/master/res/problem.gif" width="60%" />
+
* [xmake.vim](https://github.com/luzhlon/xmake.vim) (third-party, thanks [@luzhlon](https://github.com/luzhlon))
## 简单例子
diff --git a/xmake/core/ui/menuconf.lua b/xmake/core/ui/menuconf.lua
index 6bf34f81e..24c8b2f1b 100644
--- a/xmake/core/ui/menuconf.lua
+++ b/xmake/core/ui/menuconf.lua
@@ -106,6 +106,16 @@ function menuconf:config_insert(config)
self:invalidate()
end
+-- get the current config
+function menuconf:config_current()
+
+ -- get the current view item
+ local item = panel.current(self)
+ if item then
+ return item:extra("config")
+ end
+end
+
-- load configs
function menuconf:configs_load(configs)
@@ -124,16 +134,6 @@ function menuconf:configs()
return self._CONFIGS
end
--- get the current config
-function menuconf:config_current()
-
- -- get the current view item
- local item = panel.current(self)
- if item then
- return item:extra("config")
- end
-end
-
-- get text from the given config
function menuconf:_config_text(config)