Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Instead of New Tab, go back in same tab #4

Open
dartrax opened this issue Jul 20, 2018 · 2 comments
Open

Feature Request: Instead of New Tab, go back in same tab #4

dartrax opened this issue Jul 20, 2018 · 2 comments

Comments

@dartrax
Copy link

dartrax commented Jul 20, 2018

Hi,
I came across your extension and I think it's currently the best I can get for my usecase.
Very clean and thoughtfully!

I have a suggestion for a new option:
Instead of opening a new tab, reopen the same tab and go back in history (if possible).

The usecase is as follows:
I have a webpage where I often open PDF files with the chrome-internal viewer.
Unfortunately, those PDFs are opened in the same tab (which I usually not notice).
When I'm done, I close the tab with the PDF in order to get to the page where I came from.
Unfortunately, that was the last tab and the browser closes - I should have used "back", but it's too late now.
Normally, I would open Chrome again, hit "CTRL+SHIFT+T" to open last closed Tab and go back.
With your extension, I still need to hit "CTRL+SHIFT+T" and to go back.
With this feature request, I would get back as intended by (accidentially) closing the last tab.

@AgentSam
Copy link

@dartrax :

Necroposting to an old request, but let me just ask:

How would the extension determine what your intention is?

It cannot know, if you wanted to close or simply go back in history.

These are two completely different actions. A "tab close" cannot be considered "back in history" sometimes, and sometimes not.

You, as a user, must adjust your own behavior in the cases you described and select the appropriate action depending on what you want.

If you find yourself selecting the wrong action, eg. closing, instead of going back in history, then that's on you.

Let me know if you think there's a logical way to add the feature like you described.

@dartrax
Copy link
Author

dartrax commented Sep 29, 2022

Hi @AgentSam,
thanks for your reply, better late than never 😄

How would the extension determine what your intention is?

It doesn't need to know. If it's the last tab that was closed, instead of

  • closing the window (normal Chrome behavior) or
  • opening a new/pinned tab (what your extension does if I remember correctly)

do the following:
reopen the last closed tab and go back in history of that tab.

I don't see any logical problem here. But maybe I don't understand your point correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants