Giter VIP home page Giter VIP logo

Comments (4)

LasseWolter avatar LasseWolter commented on August 28, 2024 1

Hey man,
here is a quick fix in case you don't want to wait until it's implemented in the actual add on.
Just go to your addons folder for your thunderbird profile, something like:
.thunderbird/<RANDOM_CHARS>.default/extensions

In case you are comfortable with vim you can just edit the file in place with vi [email protected].

If not you need to unzip the .xpi file, modify the files, zip them again and then drag and drop into thunderbird add-ons window (which installs the addon). Make sure to remove the old one before you install the modified version.
In a bash shell you can do the following:

  1. unzip [email protected] -d code
  2. cd code and edit implementation.js as described below
  3. zip -r ../new_version.zip *
  4. Go to thunderbird add-on page, remove the old add-on and install the new one by dragging and dropping the new_version.zip.

What you need to modify
The code you posted is already part of the extension. You can find it in the implementation.js file. The problem is the line below that:
win.goDoCommand("cmd_getMsgsForAuthAccounts");
Just comment out that line - looks like this for me:
Screenshot_20210114_175711

Then reinstall the add-on and you should be good to go :)

Hope that helped :)

from tbkeys.

Snorch avatar Snorch commented on August 28, 2024 1

Hey man,
here is a quick fix in case you don't want to wait until it's implemented in the actual add on.
Just go to your addons folder for your thunderbird profile, something like:
.thunderbird/<RANDOM_CHARS>.default/extensions

In case you are comfortable with vim you can just edit the file in place with vi [email protected].

If not you need to unzip the .xpi file, modify the files, zip them again and then drag and drop into thunderbird add-ons window (which installs the addon). Make sure to remove the old one before you install the modified version.
In a bash shell you can do the following:

1. `unzip [email protected] -d code`

2. `cd code` and edit implementation.js as described below

3. `zip -r ../new_version.zip *`

4. Go to thunderbird add-on page, remove the old add-on and install the new one by dragging and dropping the `new_version.zip`.

What you need to modify
The code you posted is already part of the extension. You can find it in the implementation.js file. The problem is the line below that:
win.goDoCommand("cmd_getMsgsForAuthAccounts");
Just comment out that line - looks like this for me:
Screenshot_20210114_175711

Then reinstall the add-on and you should be good to go :)

Hope that helped :)

This should probably be on the README.md somewhere near "Common key bindings" as a way how to actually add custom bindings.

Thanks! It helped me to make several needed "Common key bindings" working =)

from tbkeys.

leeyc0 avatar leeyc0 commented on August 28, 2024
if (win.document.getElementById("tabmail").tabContainer.selectedIndex != 0) {
  win.CloseTabOrWindow();
}

This piece of code works exactly what I want. I'd like to be included in tbkeys-lite. I have to use tbkeys at the moment and set key binding as the code above.

from tbkeys.

morat523035 avatar morat523035 commented on August 28, 2024

I would close the current tab like so.

window.document.getElementById('tabmail').closeTab();

Reference...

http://searchfox.org/comm-esr78/search?q=closeTab.aOptional&regexp=true

from tbkeys.

Related Issues (20)

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.