Initial commit

This commit is contained in:
He4eT 2024-01-19 19:35:19 +01:00
commit bb4c82deac
6 changed files with 98 additions and 0 deletions

7
.editorconfig Normal file
View file

@ -0,0 +1,7 @@
[*]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/dist

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Alexey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
dist_dir = dist
filename = tabswitcher.xpi
cleanup:
rm -rf ${dist_dir}
package: cleanup
mkdir ${dist_dir}
zip -r -FS ./${dist_dir}/${filename} * \
--exclude './dist/*' \
--exclude './screenshots/*' \
--exclude '*.git*'
# vim: set ts=4 sw=4 autoindent noexpandtab:

29
README.md Normal file
View file

@ -0,0 +1,29 @@
# Tabswiper
A Firefox extension that enhances tab switching and closing through fuzzy search.
## How to Use It
1. Open the search page using the extension icon or by pressing `F2`.
You can customize the keyboard shortcut by accessing the `Manage Extension Shortcuts` in Firefox settings.
1. Filter the list of open tabs with the searchbox.
1. If there is one tab left in the list, navigate to it by pressing `Enter`.
1. Otherwise, navigate to or close the desired tab using the commandbox.
## Development
### Adding an Unpacked Extension to Firefox
1. In the Firefox address bar, type `about:debugging` and press Enter.
1. Click on `This Firefox`, then select `Load Temporary Add-on...`.
1. Choose the `manifest.json` file.
### Build the Package
To generate the XPI file, just use the `make package` command.
The output file will be stored in the `dist` directory.

26
manifest.json Normal file
View file

@ -0,0 +1,26 @@
{
"action": {
"default_title": "Tabswitcher"
},
"browser_specific_settings": {
"gecko": {
"id": "tabswitcher@oddsquat.org",
"strict_min_version": "110.0"
}
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "F2"
}
}
},
"description": "Switch to a tab or close unwanted ones using fuzzy search",
"homepage_url": "https://github.com/He4eT/tabswitcher",
"manifest_version": 3,
"name": "Tabswitcher",
"permissions": [
"tabs"
],
"version": "1.0.0"
}