diff options
author | teramako | 2013-04-10 22:14:28 +0900 |
---|---|---|
committer | teramako | 2013-04-10 22:14:28 +0900 |
commit | 596ae3e9f228d34891f8e52225205e78371b4828 (patch) | |
tree | 3e8338fb8c47c07be169a227a5112bab78b7ceba /delicious_search.js | |
parent | 004f9e2fd284912c3b70401310e118493c7fa8d3 (diff) | |
parent | 8eb425bbdb21e37603603db84d444c90a2d30fb5 (diff) | |
download | vimperator-plugins-596ae3e9f228d34891f8e52225205e78371b4828.tar.bz2 |
Merge branch '3.6'
Diffstat (limited to 'delicious_search.js')
-rw-r--r-- | delicious_search.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/delicious_search.js b/delicious_search.js index fb5d2c9..996f5ea 100644 --- a/delicious_search.js +++ b/delicious_search.js @@ -1,4 +1,4 @@ -let PLUGIN_INFO = +let PLUGIN_INFO = xml` <VimperatorPlugin> <name>{NAME}</name> <description>search DeliciousBookmark and that completer</description> @@ -40,7 +40,7 @@ set go-=D ||< ]]></detail> -</VimperatorPlugin>; +</VimperatorPlugin>`; liberator.plugins.delicious = (function(){ @@ -185,11 +185,11 @@ function templateDescription(item){ } function templateTitleAndIcon(item){ let simpleURL = item.text.replace(/^https?:\/\//, ''); - return <> - <span highlight="CompIcon">{item.icon ? <img src={item.icon}/> : <></>}</span><span class="td-strut"/>{item.name}<a href={item.text} highlight="simpleURL"> + return ` + <span highlight="CompIcon">{item.icon ? <img src={item.icon}/> : ``}</span><span class="td-strut"/>{item.name}<a href={item.text} highlight="simpleURL"> <span class="extra-info">{simpleURL}</span> </a> - </>; + `; } commands.addUserCommand(["delicious[search]","ds[earch]"], "Delicious Bookmark Search", @@ -201,7 +201,7 @@ commands.addUserCommand(["delicious[search]","ds[earch]"], "Delicious Bookmark S let list = bookmarkSearch(args["-tags"], args["-query"]); let xml = template.tabular(["Title","Tags and Note"], [], list.map(function(item){ return [ - <><img src={item.icon}/><a highlight="URL" href={item.url}>{item.name}</a></>, + `<img src={item.icon}/><a highlight="URL" href={item.url}>{item.name}</a>`, "[" + item.tags.join(",") + "] " + item.note ]; })); |