DontCloseWindowWithLastTab icon indicating copy to clipboard operation
DontCloseWindowWithLastTab copied to clipboard

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

Open dartrax opened this issue 7 years ago • 2 comments

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.

dartrax avatar Jul 20 '18 17:07 dartrax

@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.

AgentSam avatar Sep 28 '22 18:09 AgentSam

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?

dartrax avatar Sep 29 '22 19:09 dartrax