diff --git a/content_scripts/mode_find.js b/content_scripts/mode_find.js index b648e337f..a443a529c 100644 --- a/content_scripts/mode_find.js +++ b/content_scripts/mode_find.js @@ -177,13 +177,18 @@ class FindMode extends Mode { case "R": this.query.isRegex = false; break; + case "I": + this.query.ignoreCase = false; + break; } return ""; }, ); - // Implement smartcase. - this.query.ignoreCase = !Utils.hasUpperCase(this.query.parsedQuery); + if (this.query.ignoreCase !== false) { // if not already set to false(\I flag present) + // Implement smartcase. + this.query.ignoreCase = !Utils.hasUpperCase(this.query.parsedQuery); + } const regexPattern = this.query.isRegex ? this.query.parsedQuery diff --git a/manifest.json b/manifest.json index 58c495a2d..9c745c336 100644 --- a/manifest.json +++ b/manifest.json @@ -4,16 +4,19 @@ "version": "2.4.0", "description": "The Hacker's Browser. Vimium provides keyboard shortcuts for navigation and control in the spirit of Vim.", "icons": { - "16": "icons/icon16.png", - "48": "icons/icon48.png", - "128": "icons/icon128.png" + "16": "icons/icon.svg", + "32": "icons/icon.svg", + "48": "icons/icon.svg", + "64": "icons/icon.svg", + "96": "icons/icon.svg", + "128": "icons/icon.svg" }, "minimum_chrome_version": "117.0", "background": { - "service_worker": "background_scripts/main.js", - "type": "module" - // Uncomment when developing in Firefox. - // "scripts": ["background_scripts/main.js"] + "type": "module", + "scripts": [ + "background_scripts/main.js" + ] }, "options_ui": { "page": "pages/options.html", @@ -29,15 +32,12 @@ "history", "storage", "sessions", - // Notifications are used to show a message when Vimium's major version has been upgraded. "notifications", - // We're using the scripting permission to 1) inject our content scripts and CSS into existing - // tabs when Vimium is first installed, and 2) inject the user's link hints CSS when a page - // loads. This permission was required when moving to manifest V3. "scripting", - "favicon", // The favicon permission is not yet supported by Firefox. "webNavigation", - "search" + "search", + "clipboardRead", + "clipboardWrite" ], "content_scripts": [ { @@ -86,22 +86,10 @@ "all_frames": true } ], - // Uncomment when developing in Firefox. - // "browser_specific_settings": { - // "gecko": { - // // This ID was generated by the Firefox store upon first submission. - // "id": "{d7742d87-e61d-4b78-b8a1-b469842139fa}", - // "strict_min_version": "109.0" - // } - // }, "action": { - "default_icon": { - "16": "icons/action_disabled_16.png", - "32": "icons/action_disabled_32.png" - }, - // Uncomment for Firefox. - // "default_area": "navbar", - "default_popup": "pages/action.html" + "default_icon": "icons/action_disabled.svg", + "default_popup": "pages/action.html", + "default_area": "navbar" }, "web_accessible_resources": [ { @@ -113,14 +101,22 @@ "pages/doc_completion_engines.html", "pages/command_listing.html", "resources/tlds.txt", - // This allows one to script the reloading of Vimium. - // This should only be enabled in development. - // "pages/reload.html", "_favicon/*" ], "matches": [ "" ] } - ] -} + ], + "browser_specific_settings": { + "gecko": { + "id": "{d7742d87-e61d-4b78-b8a1-b469842139fa}", + "strict_min_version": "112.0", + "data_collection_permissions": { + "required": [ + "none" + ] + } + } + } +} \ No newline at end of file