From 331357d179727e93c3e694b819e71e7e02839ff5 Mon Sep 17 00:00:00 2001 From: gdh1995 Date: Tue, 12 Oct 2021 01:20:36 +0800 Subject: [PATCH] bump version to v1.93.0 --- README.md | 20 +++++++------------- RELEASE-NOTES.md | 19 +++++++++++++++++++ _locales/en/messages.json | 2 +- _locales/zh/messages.json | 2 +- i18n/zh/options.json | 7 ++++++- manifest.json | 2 +- pages/options.css | 2 +- pages/options.html | 12 +++++++++--- 8 files changed, 45 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index bbec4cc4d..982dfacc9 100644 --- a/README.md +++ b/README.md @@ -114,19 +114,13 @@ __Other extensions supporting Vimium C:__ #### latest version -improved key mappings -* `Vomnibar`: fix URLs with space characters would break -* `map`: fix bugs of `$then` and `$else`, and apply them to much more commands - * for example, `enterFindMode` supports `$then="enterVisualMode"`, and `scroll*` runs `$then` when something is scrolled - * most commands operating tabs support `$then` and `$else` -* `runKey` command: change syntax of `.keys`, to **support command trees** - * see https://github.com/gdh1995/vimium-c/wiki/Auto-run-a-tree-of-commands -* `env`: now `host` only considers about top frame URL; add `iframe: boolean | string` to match iframes -* `mapKey`: support `<...:n>` and they will only take effect in normal mode -* Firefox: some commands operating tabs will run faster when repeating count is 1 -* fix `w` and `e` in `VisualMode` on Chrome 90+ on Windows -* add a new command of `dispatchEvent` to simulate dispatching events -* some other improvements and bug fixes +full-featured `runKey` +* key mappings: `runKey` supports inline options which look like `#a=b&c=d%20e` (wiki added) +* add `openBookmark` and `vimium://run/` to run long command sequences with complicated options +* fix some compatibility bugs +* URL matching: support new `URLPattern` in W3C spec. +* Vomnibar: support `mapKey` from keys to `` (trigger commands) or `` +* `dispatchEvent`: add a new mode: `key=Key,keyCode[,Code=Key]` Refer to [RELEASE-NOTES.md](RELEASE-NOTES.md). diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 9d0c20ef8..d3a5d4d82 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,6 +4,25 @@ Release Notes of Vimium C ReadMe: https://github.com/gdh1995/vimium-c/#readme .
说明文档: https://gitee.com/gdh1995/vimium-c#readme , https://github.com/gdh1995/vimium-c/blob/master/README-zh.md . +#### 1.93.0 +* better compatibility + * keyboard: with some system-level shortcuts of composed keys + * with some extensions with card-style UI + * avoid reporting issues on latest Chromium browsers which recommends `userAgentData` +* URL matching: support new `URLPattern` in W3C spec. +* key mappings: `runKey` supports inline options which look like `#a=b&c=d%20e` (wiki added) + * key mappings: add a new syntax of `run key otherKeys` as an alias of `runKey key keys="otherKeys"` + * add `openBookmark` and `vimium://run/` to run long command sequences with complicated options + * now support nested calls (but still refuse to call itself directly) +* `LinkHints`/`focusInput`: always add elements matching `.clickable` even in other modes +* `LinkHints`: improve `autoUnhover` ([#325](https://github.com/gdh1995/vimium-c/issues/325#issuecomment-939656442)) + and add a trick to copy image URLs ([#399](https://github.com/gdh1995/vimium-c/issues/399#issuecomment-927788170)) +* Vomnibar: support `mapKey` from keys to `` (trigger commands) or `` +* `dispatchEvent`: add a new mode: `key=Key,keyCode[,Code=Key]` +* text substitution: remove old `/[dDr]/` keywords in "flag" parts +* improve `.filter` in tab-related commands +* fix some other small bugs + #### 1.92.4 * fix a crash during importing settings when browser language is not Chinese * small improvements on `runKey` diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 932119852..60e22090b 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -21,7 +21,7 @@ "OpenC": { "message": "Open: " }, "Upgrade": { "message": "Upgrade" }, "upgradeMsg": { "message": "Vimium C has been upgraded to v$1.\n" }, - "upgradeMsg2": { "message": "Now one single key can trigger a sequence of commands" }, + "upgradeMsg2": { "message": "Now one single key can trigger a sequence of commands with inline options" }, "clickForMore": { "message": "Click here for more information." }, "noCopied": { "message": "No text copied!" }, "quoteA": { "message": "\"$1\"" }, diff --git a/_locales/zh/messages.json b/_locales/zh/messages.json index 013b7df0a..8bb17df9f 100644 --- a/_locales/zh/messages.json +++ b/_locales/zh/messages.json @@ -19,7 +19,7 @@ "OpenC": { "message": "访问:" }, "Upgrade": { "message": "已更新" }, "upgradeMsg": { "message": "您的 Vimium C 已经更新至 $1 版。\n" }, - "upgradeMsg2": { "message": "现在可以绑定按键到一连串命令上" }, + "upgradeMsg2": { "message": "现在可以绑定按键到 一连串带参数的命令 上" }, "clickForMore": { "message": "点击阅读详细信息。" }, "voptions": { "message": "设置" }, "vshow": { "message": "展示" }, diff --git a/i18n/zh/options.json b/i18n/zh/options.json index 717d4e602..7c62e6b3a 100644 --- a/i18n/zh/options.json +++ b/i18n/zh/options.json @@ -16,7 +16,12 @@ "o6": "在指定网站完全或部分禁用 Vimium C。“", "o7": " ”可以是以“", "o8": "”开始的正则表达式,也可以是以“", - "o9": "”开始的网址前部。否则会自动转换成二者之一。", + "o9": "”开始的网址前部,", + "o9_2": "又或者以“", + "o9_3": "”标志的 URL 模式( W3C 规范中的 ", + "o9_4": " )", + "o9_5": "。", + "o9_6": "否则会自动转换成正则或前缀。", "o10": "如果“", "o11": " ”为空,在相应页面上 Vimium C 会完全停止工作,但可以点击右上角扩展图标来临时启用;", "o12": "如果“", diff --git a/manifest.json b/manifest.json index 54be3cda1..f7de67242 100644 --- a/manifest.json +++ b/manifest.json @@ -147,7 +147,7 @@ ], "short_name": "Vimium C", "update_url": "https://clients2.google.com/service/update2/crx", - "version": "1.92.4", + "version": "1.93.0", "web_accessible_resources": [ "content/*", "front/vomnibar.*", diff --git a/pages/options.css b/pages/options.css index 5c4ea5013..c9cb33011 100644 --- a/pages/options.css +++ b/pages/options.css @@ -467,7 +467,7 @@ label:active { color: #444; margin: -2px 0 3px 0; max-height: 141px; - min-height: 81px; + min-height: 111px; overflow-x: hidden; overflow-y: auto; width: 100%; diff --git a/pages/options.html b/pages/options.html index a952d6bac..d3610219f 100644 --- a/pages/options.html +++ b/pages/options.html @@ -73,16 +73,22 @@ Wholly or partially disable Vimium C. A "Pattern" is a JS regular expression if it starts with "^", - or ":" + the header of a URL. - Otherwise it will be converted. + or ":" + the header of a URL, + or "`" + URLPattern (a way to match URLs in W3C spec.). Otherwise it will be converted.
+
If "Keys" is empty, Vimium C gets wholly disabled;
if "Keys" starts with "^", only listed keys are enabled,
and all others are passed through;
otherwise, just the listed keys are passed through. + data-i="o15">otherwise, just the listed keys are passed through.