Giter Site home page Giter Site logo

abigailbuccaneer / firefox-ctrlnumber Goto Github PK

View Code? Open in Web Editor NEW
56.0 3.0 9.0 247 KB

A Firefox extension that adds keyboard shortcuts to switch tabs with Ctrl+Number

Home Page: https://addons.mozilla.org/en-GB/firefox/addon/ctrl-number-to-switch-tabs/

License: ISC License

JavaScript 100.00%

firefox-ctrlnumber's Introduction

firefox-ctrlnumber

This extension adds keyboard shortcuts to switch tabs with Ctrl+Number, similar to Chrome's keyboard shortcuts.

Installation

This extension can be installed from the Firefox Add-ons site.

Building from source

bun install && bun run test && bun run build
ls web-ext-artifacts/ # this directory now contains the extension .zip file

firefox-ctrlnumber's People

Contributors

abigailbuccaneer avatar zackmurry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

firefox-ctrlnumber's Issues

Add option to ignore pinned tabs #feature_request

Feature request, Option to ignore pinned tabs

Use case

I have some services that run as pinned tabs that are always there and have their own shortcuts / don't need regularly accessing such as a pinned WhatsApp web tab, a tab manager & Syncthing webUI. Currently I have have the option to rebind the shortcuts for tabs 4-8 to ctrl+1-4 respectively however this halves the amount of general browsing tabs I can access by shortcut.
From my experience most pinned tabs are not used for general browsing and users often already have unique shortcuts for the ones they need this is evidenced by the fact firefoxe's built in ctrl+tab ignores pinned tabs.

Proposed solution

adding an options menu with a toggle button "Ignore pinned tabs" when selected will only count unpinned tabs as tabs 1-8.

or

add option to ignore specific tabs, this could be by position or blacklist by url

Switch to the "Firefox View" tab with Ctrl + 0

Title says everything pretty much.

Firefox 106 introduced firefox view which is a separate tab that is the very first item of the tab list.
This tab however can't be switched to with the current ctrl keys.
Thus, I propose to set Ctrl + 0 as a keybind to switch to this special tab, as the keybind isn't in use yet, and it also kind of makes sense to have this first tab that is special be at the index 0.

If wanted, I can try to implement this, but I can't guarantee anything.

Hidden tabs can get unhidden

The extension doesn’t take into account that some tabs may be hidden. Instead of ignoring tabs that are not currently visible, it counts through all tabs, both visible and hidden.

Steps to reproduce:

  1. Install an extension that hides tabs, such as Simple Tab Groups or Hide Tabs.
  2. Open more than one tab.
  3. Right click on the last tab and hide it (or move it to a different group).
  4. Press Ctrl+9.

Expected results: The last visible tab is active.
Actual results: The hidden tab is unhidden and active, since that was the last tab before it was hidden.

Note that this bug doesn’t occur using the built-in Alt+#.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.