Giter Club home page Giter Club logo

webextension-open-tabs-next-to-current's Introduction

pre-commit Status

Open Tabs Next To Current

Open tabs that would normally be opened last next to the current one. Tabs that are being re-opened are thus not included. You can use Ctrl-Y (Ctrl-Shift-Y on Windows) to open a new tab at the default location.

Note for Chrome

Keyboard shortcuts are not automatically set up. You need to do that manually on the extension page in settings.

Note for Firefox

After the addition of the browser.tabs.insertAfterCurrent setting in about:config you do not need this extension anymore.

Known Issues

Caused by limitations of the webextension API, see #26 and #29:

  • tabs are visibly moved to their final position
  • the tab bar is scrolled so the opened tab becomes the first visible one on the left (Firefox only) - you can set browser.tabs.tabMinWidth in about:config to something low like 20 so the tab bar is not scrollable at all
  • when opening multiple tabs at once, only one of them is opened at the right position

Privacy Policy

This extension does not collect or send data of any kind to third parties.

Feedback

You can report bugs or make feature requests on Github

Patches are welcome.

webextension-open-tabs-next-to-current's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar renovate[bot] avatar sblask 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  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  avatar  avatar  avatar  avatar  avatar  avatar

webextension-open-tabs-next-to-current's Issues

Tab opens at end if a pinned tab is focused

Previously, if I had a pinned tab selected, and opened a new tab (e.g. via Ctrl-T), it would open as the first (leftmost) non-pinned tab -- that is, as close to next to the current tab as possible. Now, with v2.0.0, it opens as the last (rightmost) tab; this seems to be a regression.

Request: only work for blank tabs

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description (please include examples/screenshots where applicable)

Add an option to only work when opening blank and unrelated tabs (without tabOpenerId)

This way firefox's configurable behavior of maintaining tab opening order can be used in parallel with this.

I've created a fork for this feature to be persistent (for my needs), it still needs the option page if it is to be implemented.

https://github.com/averissimo/webextension-open-tabs-next-to-current

1Password

If I use OpenTabsNextToCurrent with Stylish, 1Password doesnt open websites correctly when using "open and fill". I hope you can reproduce and maybe fix it? The tab always loads the start page but not the one I wanted to open in 1Password.

Something is wrong

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox Quantum 57.0.1 (64 Bit)
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description (please include examples/screenshots where applicable)

When i restart the Browser next day with last session, the last tab is moved to the first place, right behind the sticky tabs and before the other tabs.

Slows down Fx startup

Firefox 45dev 64b on Linux Mint.

With disabled extension Fx is usable after around 6 seconds. I see below 0.5 second delay between painting of new tab search bar and speedial thumbnails.
Enable extension and restart two times.
I see ~3 seconds delay between when search bar on new tab page is visible, and when speeddial thumbnails are loaded. Fx startup time increase to ~9 seconds.

This is somehow related to extension configuration, because I see this behavior in other extensions (Google™ Translator)

Behaviour when middle-clicking items is wrong

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description (please include examples/screenshots where applicable)

So let's say my tab order currently looks like this: X Y and I'm currently on X. With default FF, when I middle-click links A, B, and C (in that order) on X, my tab order is now X Y A B C. Now, with this addon enabled, in waterfox I would get X A B C Y (the expected behaviour). Now, however, in firefox, I instead get X C B A Y. Because, I click A, and it opens right after X so X A Y. Then I click on B and instead of opening after A, it opens, again, right after X, so X B A Y. Same with C so X C B A Y.

Option to avoid switching to tab

Hi,

I love the ability provided by your add-on, but it seems to inevitably switch to the newly opened tab. Can you add config to avoid doing this? This is useful, e.g., when opening many links on a page using an add-on which opens tabs at the end; without this option, I have to keep going back to the page with the links.

I would also suggest defaulting to (or exclusively using) the setting already in Firefox's options, "When I open a link in a new tab, switch to it immediately".

Last tab is moved to second place on session restore

For several weeks, I've been annoyed by a strange behaviour and finally took the time to look for the cause which happens to be the "Open tabs next to current" extension.

The problem: every time I open Firefox, my previous session is reloaded BUT the last tab is suddenly moved to the second place in the tab bar (very similar to the Closed issue #28)

It took me a bit of time and patience to find the cause as I have 40+ extensions and had to use dichotomy in deactivating them until the problem disappeared.
To make matter worse, the problem does NOT happen the first time you restart Firefox after you just disabled/enabled/removed/installed any add-on!

Anyway here are simple steps to reproduce it:

  1. Create a new profile in Firefox
  2. Preferences > General > When Firefox starts: Show your windows and tabs from last time
  3. Install add-on "Open Tabs Next to Current"
  4. Open 4 tabs with different websites to identify them easily, let's call them A B C D
  5. Close & Reopen Firefox: the order is correct: A B C D
  6. Close & Reopen Firefox again: the order is now A D B C
  7. Close & Reopen Firefox again: the order is now A C D B
  8. and so on...

I'm using Firefox 54 (64 bits) on Ubuntu 17.04 with Open Tabs Next to Current 2.0.8

Deactivate when following a link and `browser.tabs.insertRelatedAfterCurrent` is true

Is it possible to have this addon not act when:

  • A link is opened in a new tab?
  • browser.tabs.insertRelatedAfterCurrent is set to true?

My objective is to have ctrl + T + links opened externally + menus opened to appear next to the current tab but links opened in a web page appear as they were when I have insertRelatedAfterCurrent turned on.

Related to #17

Request: chosing the website linked in the new tab

Not an issue, but I didn't know where else to post this.

Any chance you guys might be willing to add a feature that also allows the user to customize what website is opened when a new tab is selected? Every add-on for this purpose conflicts with this extension for some reason.

Thanks, let me know! :)

No longer appears to work in Firefox 53?

Hi, thanks a lot for a great extension that has become essential to my life!

Recently, however, it has stopped working. I hypothesise that it's because of my system now updating to Firefox 53, but I'm not very sure.

I'm also not technical, but am happy to provide any settings etc. that help you track this down.

Conflict

On firefox 58 when using "New tab context" addon https://addons.mozilla.org/en-US/firefox/addon/new-tab-context/ opening a new tab using their function did open the new tab next to the tab that was right clicked but now (firefox 59) your addon forces the tab created by the addon to move next to the current tab. Is there a way your addon could respect the behavior of tabs opened by addons like it was pre 59?
Thank you.

Plans to migrate to WebExtensions

Hello,

Sorry if this has already been previously answered.

All of the add-ons (including this one) I use are legacy extensions - some of which won't be updated past version 57. I'm sure I won't be the last one to say I am very unhappy Mozilla are deciding to purge an entire add-on ecosystem at the expense of end users and developers :-(.

Given that Firefox is scheduled to drop support for legacy add-ons in version 57, due out in November, are there plans to migrate this add-on over to the WebExtensions platform before then?

Thanks.

Tabs are placed respecting opening order

It would be cool to have the tabs placement in the order they were opened from a window.

Example:

  1. Click to open link in new tab (Tab1), which opens a new tab right to Tab1 (lets call it T2)
  2. Without switching tabs - open a link in a new tab that should open right of Tab2

The idea is to respect the opening order of the tabs.

I would guess a temporary variable (cleaned on each tab switch) would have to be kept with the id of the latest tab opened from current tab, so that the next one would open to the right.

On the other hand, this might increase the complexity and I'm used to another addon and need to adapt to this one :)

ps. thanks for the addon, it comes to fill the void of one of tab mix plus features!

Incorrect information: "Firefox: Tabs that are opened by clicking on links are opened at the default location"

Just tested in v57 stable and v59.0a1 (2017-11-14) (64-bit) Nightly.

Tabs opened by clicking links (child tabs) are still controlled by this add-on.

STR:

  1. set browser.tabs.insertRelatedAfterCurrent to false (so child tabs will also open at the very right).
  2. Install this add-on.

What expected: according to readme, it shouldn't change the behavior of child tab opening.
What observed: the behavior of child tab opening changed. It opens next to the parent tab.

"Focus tab when closing current tab".......

Would it be possible to add the option for " Set Focus tab when closing current tab "? This is something that Tab Utilities has......and, to me, is a must. When closing a tab, I'd like to have it go back to the tab I was previously viewing. Thanks!

Tabs are Reordered on Multi-Window Session Restore

Ever since the update that causes the known issue (tabs being moved after being opened), tabs are being reordered when Firefox is opened and a multi-window session is restored. It seems like the add-on is being triggered for every tab opened by the session restore, which is causing tabs to be re-ordered unpredictably. Is there a way to limit this add-on to only activate when a new tab is created from the "New Tab" button, rather than when Firefox is first opened and a session is being restored? I have two windows with several tabs each, and it seems like one window has its tabs basically reversed, and the other window has the last tab moved almost all the way to the left, but this behavior is not consistent.

Steps to Reproduce:

  1. Open two Firefox windows with 5+ tabs each.
  2. Close Firefox (File -> Exit, with session restore enabled).
  3. Re-open Firefox.
  4. Notice tabs are moved to new positions after Firefox is opened.

Shortcut for default beaviour

Hello,

I'm the developer of a fork of your repository called "open tabs next to current plus". I've created that fork since I wanted "new tab button" to act with the default behavior. I see that option is now implemented in the original add-on.

I was wondering if you could add a keyboard shortcut to use default behavior too? If you could do that, I could simply remove my add-on and put a redirection link to yours since my version would no longer make sense to have.

The feature I'm suggesting is,

Ctrl + T would open a next to the current as it is right now.
Ctrl + Shift + Alt + T(for example, or maybe something configurable) would open the tab with default Firefox behavior, such as "new tab button"

If not I will try get my fork updated to comply with e10's, I honestly don't see any good reason except for that shortcut to have very similar add-ons.

Let me what do you think, I can help implementing the shortcut as well.

[Feature request] Don't reload all tabs from hidden container, if new tab created

New Issue Checklist

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description

Consider a hidden container with 30 tabs (e.g. "Shopping"). Creating a new tab e.g. for Amazon (which is automatically "Shopping") this triggers making all of these 30 tabs visible, cluttering everything.

It would be great if not all tabs were repopulated upon adding a new tab that belongs to that group. I suppose that would make the option to hide/unhide single tabs per container necessary. This would allow for all tabs in a container to remain hidden, the new tab could be visible.

[Feature Request] Use only on New Tabs and not when opening links into new tab

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description (please include examples/screenshots where applicable)

My primary need for this add-on is for opening a New Tab next to the current one, more than opening links in new tab in the newest-to-oldest order (I quite like Firefox's default behavior with opening links in new tabs you see). So I think it would be nice to have an option where it's enabled only for new tabs opened via the + sign or a keyboard shortcut.

Thanks in any case.

Increase Indentation?

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)
    Just installed it today.

What is your browser?

  • Firefox
    58.0.2 64b
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows
    W7 Enterprise 64b

Description (please include examples/screenshots where applicable)

Is there a way to indent the child tab of a parent tab a bit more to easily be able to distinguish groups?
Thanks.

New tabs open one tab over from the current one (i.e. not next to it, but skips a tab)

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open and closed) for possible duplicates

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description (please include examples/screenshots where applicable)

Just installed this. When I open a new tab, it does not open next to the current tab, but rather, it opens next to the tab to the RIGHT of the current tab. What I mean is, if the tabs are in order, A, B, C, D, and currently tab 'A' is open, the new tab will open between tab 'B' and 'C', rather than next to 'A'. It doesn't matter if it's the first tab, or a tab in the middle that's open, the new tab will always skip one tab over to the right. Of course if you're on the last tab, then this is a non-issue.

I'm running the new Quantum Firefox now, so I don't know if this is an issue with the new Firefox or what, but I didn't see any open issues posted.

Let me know if I can provide more information. Thanks.

WebExtension - New tab moves to the beginning of the visible tab bar

I'm testing the new beta and opening a new tab has the effect of moving the tab bar to the first position of the new tab.

For example, let's say tab 12 is the active tab:

| tab 10 | tab 11 | tab 12 (active) | tab 13 | tab 14... 30 |

If I open a new tab, then the tab bar becomes:

| tab 13 (new tab) | tab 14 | tab 15 | tab 16 | tab 17... 30 |

I much prefer the older XUL method of the tabbar not moving:

| tab 10 | tab 11 | tab 12 | tab 13 (new tab) | tab 14 | tab 15... 30 |

This is probably a limitation of the new WebExtension API, but thought I'd post an issue about this.

add-on only works after disable/enable

Using Firefox 33.1.

After starting/restarting Firefox, this add-on does not work unless I first disable and then re-enable it. I am not sure if something loads after this add-on that overrides the functionality; maybe by disable/re-enable it then overrides the other something?

This add-on should enforce its functionality so it automatically starts working after launch of Firefox.

Switching to previous tab after closing current

By default, if I closing current tab Firefox will switch me on next tab. With «Open Tabs Next to Current» if I closing current tab Firefox switching me on previous tab.

Is it possible to use addon and return switching on next tab after closing current?

Sorry for my English :-)

Potential hack to make the scrolling issue less jarring

Hi, here's a potential hack to make the scrolling, #26, a bit less jarring:

If you focus the originally focused tab before refocusing the newly opened tab, the original tab should stay visible at least. This also shouldn't mess with the optional most recently used ctrl-tab behavior either I think.

Focus would go like this, which should ensure that the original tab stays visible:

origin tab -> new tab (move it) -> origin tab -> new tab

Should be fairly easy to implement, just need some logic to determine if the new tab is opened in the background, in which case the refocus isn't necessary.

Link drag from one window to another moves to wrong position

When dragging a link from one window to another to sandwich between tabs, the link will instead be opened in the first position. The link could also open in other positions dependent on which position the first window's tab (ie the tab position of the source link) starts on.

Confirmed on Firefox 54.0b8 32bit (Win10 x64) with Open Tabs Next to Current 2.0.2
Confirmed on Firefox 53.0.2 64bit (Linux Manjaro) with Open Tabs Next to Current 2.0.2

only work with 1 tab

I use link ninja addon to open multi tabs at one but only one tab is open next to active tab, another tab still open at the end of tabbar.

Conflict with "Session Manager" add-on: Tab order reversed on session restore

I'm having the same issue as mentioned here. This seems to be a conflict with Session Manager.

When restoring tabs with Session Manager, the tab order of the last n-1 tabs are reversed. For example, when restoring tabs (a, b, c, d, e), the order when restored is (a, e, d, c, b). From the behavior, it seems like this add-on hooks into something used by Session Manager, so I'm not sure how fixable this is on your end.

Weird tab behavior

The bug only appears after version 1.1.5, this affects me using the imacro add on to create a new tab; I have to stay on version 1.1.5 to avoid the bug. I have recorded the action:

Setup: There are at least two tabs, and the current tab is on the left side or second last from the right.

The imacro code is:

TAB T=1
'open 2 tab
TAB OPEN
TAB OPEN

'go to tab 2
TAB T=2
'open google page
URL GOTO=www.google.com
TAB OPEN
TAB T=3
TAB T=1

The result should be google page next to the current select tab, the old version did the job, but after version 1.1.5, everything broke, the google tab becomes the 3rd, not the 2nd.

Should be work like this
https://www.screencast.com/t/CT8WKpiX

Newest version bug - Google tab page on the 3rd tab on the 2nd tab.
https://www.screencast.com/t/Qie7vgtk

Tab position, usability improvment.

It is more of a feature request rather than an issue.

Case a:
If user uses keyboard shortcut (ctrl + t), the new tab opens next to currently selected tab. As it is now.
Case b:
If user click to open new tab button on Firefox(Right end of the tab bar). The tab opens at the end of the list.

I believe it is more appropriate in terms if UX, since new tab button is more related to the right end rather than, right of the selected tab. As a user, I simply am focused on the new tab button, therefore I believe it is more likely that I would expect the tab to appear at the end of tab list. At least that is the case for me and some people that I know.

I have previously implemented this feature by Forking this repository, but it broke with E10's and I do not have any time to maintain that repository. Below is the link to the repository if you think that feature is worth implementing.

https://github.com/Nidre/firefox-open-tabs-next-to-current

Thank You

Context awared tab placement.

Suppose I have three tabs : 1, 2 and 3, and the current tab is 2. If I open three new tabs, currently it will end up like this : 1, 2 , 6, 5, 4, 3. Is there a way to get this tab order : 1, 2, 4, 5, 6, 3 ?

Firefox : new tab opened on far right when duplicating tab

New Issue Checklist (tick off like this: [x])

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description (please include examples/screenshots where applicable)

Using Firefox 57.0 on Windows 7 with open tab next to current v2.0.10
When I right click on a tab and select duplicate, the new tab is opened on the far right, as all the tabs are before installing the extension.
Can the extension also handle this use case ?

Scrolling the tab bar when opening a new tab next to current

Your add-on does the job, but

  • it firstly opens the tab as the last one, and only then "moves" it next to the current (JUMP)
  • it scrolls the tab bar in order to make the newly opened tab leftmost visible (SCROLLING)

Could you please repair this?

When a tab is opened from a pinned tab, the browser's focus does not move to the beginning of the tab list, stays at the end

Thanks for the extension.

  1. When a tab/link is opened from a pinned tab, the browser's focus does not move to the beginning of the tab list, where the tab is correctly opened, it stays at the end -- thus the user does not see the new tab as the focus is not there.

Normally it does not matter as few people use pinned tabs, but for those who do like myself it is an issue as every new opened tab/link requires additional clicks to actually see the tab.

If possible, can you please make sure that the extension keeps focus moved along with the newly opened tab?

  1. Is it possible to assign double left click on mouse to create a new tab, not just the "+" icon in the UI?

Thank you in advance.

[Feature request] Don't scroll to the new tab in the tabbar

New Issue Checklist

  • I checked existing issues (open and closed) for possible duplicates
  • I can reproduce the problem on the latest stable version (not nightly!)

What is your browser?

  • Firefox
  • Chrome

What is your operating system?

  • Linux
  • Mac
  • Windows

Description

If API limitation, don't mind this issue. Maybe as a reminder.

When opening a new tab with e.g. CTRL+T (or middle-mouse clicking) it gets opened next to the current one. It is annoying thought that the tab is also scrolled to in the tab bar, meaning this new tab is now the leftmost tab in the tab bar. Maybe this is because the tab is created in the last position and you just move it to the right of the previous tab?

It would be great if my initial position in the tab bar could be kept or remembered. Currently I loose track of "where I was" because the new tab changed the scroll position of my tab bar.

Allow both opening of tabs right of the current and at the end of the list

It'd be great to be able to decide whether to open a tab right to the current or at the end of the list of tabs of the current window (default behaviour). This could be realized by making the "New Tab" menu item in the file menu a menu with two menu items doing the former and the latter. This transformation should be configurable.

In order to handle the opening of tabs with Ctrl+t it be great to be able to configure whether

  • a tab should be opened always right to the current or at the end of the list,
  • a dialog should be displayed asking for what to do

An option to configure the keyboard shortcut to open a tab at the two locations could be added to a settings dialog (override the meaning of Ctrl+t and define a second shortcut for the counterpart action).

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.