Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions content_scripts/mode_find.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
62 changes: 29 additions & 33 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand All @@ -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": [
"<all_urls>"
]
}
]
}
],
"browser_specific_settings": {
"gecko": {
"id": "{d7742d87-e61d-4b78-b8a1-b469842139fa}",
"strict_min_version": "112.0",
"data_collection_permissions": {
"required": [
"none"
]
}
}
}
}