I generally have a “home” Firefox window with my most used tabs pinned. Sometimes I close it before another window, so I was frustrated to “lose” it and having to redo my pins. But recently I discovered this feature. Joy!

  • radix
    link
    fedilink
    99
    edit-2
    11 months ago

    How would people function without knowing this?? Maybe I’m just young, but this has been a thing as far back as I can remember (maybe 2010 or so), on all browsers I’ve used (Safari, Chrome, Firefox).

    • @PmMeFrogMemes
      link
      5411 months ago

      yeah if I did ctrl-shift-T and didn’t get my tab back on a modern browser I’d assume it was a bug lol

      • Jay K
        link
        fedilink
        11
        edit-2
        11 months ago

        This about reopening entire Windows that you closed, which you can undo since version 116, released August 1.

        The keyboard shortcut to reopen closed tabs (Ctrl + shift + t or Command + shift + t depending on your operating system) now reopens last closed tab or last closed window, in the order items were closed. If there aren’t any tabs or windows to reopen, this command restores the previous session. This change is in anticipation of upcoming changes to recently closed tabs.

        • @[email protected]
          link
          fedilink
          2611 months ago

          Nope, this feature has existed forever. They just changed the shortcut, previously it was Ctrl-shift-T for re-opening the last closed tab and Ctrl-shift-N for re-opening the last closed window.

          • radix
            link
            fedilink
            411 months ago

            Ohh, this makes much more sense. Thanks!

          • @[email protected]
            link
            fedilink
            311 months ago

            Yup, I’ve been using Ctrl-shift-N for years, so long that I don’t recall it ever not being a thing. Basically, as soon as I needed to reopoen a closed window, I just added “shift” to do the opposite of opening a new window and it worked.

        • @[email protected]
          link
          fedilink
          10
          edit-2
          11 months ago

          Uh, no, it’s certainly much older than that. I know because I have literally used it.

          This has to be something else.

          Edit: yeah, it’s not a new addition. It’s under “changes” in the patch notes. Big difference.

      • xttweaponttx
        link
        fedilink
        111 months ago

        Yeah! That still works for tabs it looks like, but you have to do Ctrl+shift+N to get closed windows back.

    • Aram855
      link
      fedilink
      0
      edit-2
      11 months ago

      It got removed from chrome a while ago. Have to use an extension for it.

      • @geno
        link
        4
        edit-2
        11 months ago

        What are you talking about? I used it like 2 days ago last time, no plugins. Not sure if there’s a hotkey for reopening a closed window (ctrl shift T?), but you can find it from the menu in upper right corner of the browser.

        • Tippon
          link
          fedilink
          English
          211 months ago

          Yeah, same here. I use it fairly regularly because I’m a dumbass who closes the wrong window all the time

        • Aram855
          link
          fedilink
          1
          edit-2
          11 months ago

          I actually checked and nope, it’s not there. Been like a year since this? what the fuck?

          EDIT: I’m a moron. What happened is that before you could reopen one by right clicking any tab and clicking the option, but that option was removed. I never did the “click the empty space after the tabs” thing because I normally run 50 tabs at the same time.

  • chi-chan~
    link
    5711 months ago

    Ctrl+Shift+T anywhere.

      • oce 🐆OP
        link
        fedilink
        1711 months ago

        Just checked, it appears ctrl+shit+T will also reopen a window if the last closed tab was on it.

        • @Cyanity
          link
          211 months ago

          “shit” is my new favourite key from now on

        • @[email protected]
          link
          fedilink
          211 months ago

          Hm, was that always the case? I seem to remember me trying to check this years ago and it didnt work then

          • @[email protected]
            link
            fedilink
            211 months ago

            Nope, it was literally added this month :) See https://www.mozilla.org/en-US/firefox/116.0/releasenotes/

            The keyboard shortcut to reopen closed tabs (Ctrl + shift + t or Command + shift + t depending on your operating system) now reopens last closed tab or last closed window, in the order items were closed. If there aren’t any tabs or windows to reopen, this command restores the previous session. This change is in anticipation of upcoming changes to recently closed tabs.

          • @[email protected]
            link
            fedilink
            111 months ago

            I don’t know about you, but I don’t think I’ve had separate logins since the 90s, well, outside of my school’s computers.

            Computers are just so much cheaper today than they were in the 90s.

        • @[email protected]
          link
          fedilink
          111 months ago

          I’m not a fan of that shortcut though:

          • Ctrl+T - open new tab; Ctrl+shift+T - reopen closed tab
          • Ctrl+N - open new window; Ctrl+shift+N - reopen closed window
          • Ctrl+P - print (or apparently preview on Lemmy); Ctrl+shift+P - private window?

          It breaks the nice pattern.

          • @[email protected]
            link
            fedilink
            111 months ago

            Yeah it does break the pattern but there isn’t much of an option that keeps everything super clean like tjat, unless it’s something like ctrl alt N for a private window.

            • @[email protected]
              link
              fedilink
              211 months ago

              Yeah, I think that would be a better option, and then an eventual private tab would be intuitive too.

    • oce 🐆OP
      link
      fedilink
      -1
      edit-2
      11 months ago

      That’s last closed tab, not window.

      Edit: actually it will reopen a window too if the last closed tab was on it.

  • @[email protected]
    link
    fedilink
    English
    1611 months ago

    Shift+ctrl+T is usually the keyboard shortcut to bring back closed tabs Shift+ctrl+N is to bring back closed windows (doesn’t work on private browsing windows)

  • @[email protected]
    link
    fedilink
    1511 months ago

    I can still feel the pain when it’s 2 AM and you meant to Ctrl + Shift + T and you’re muscle memory leaks in and hits you with the Ctrl + Shift + W.

    FYI there’s a confirm close option that will mitigate this terrible scenario, for anyone that’s been there before.

    • @[email protected]
      link
      fedilink
      2
      edit-2
      11 months ago

      Or just Ctrl+shift+N will reopen that window. It has been there for years, perhaps more than a decade, and is the perfect companion to Ctrl+N, just like Ctrl+shift+T is the perfect companion to Ctrl+T.

  • @pillars_in_the_trees
    link
    1411 months ago

    I have Ctrl + W and Crtl + Shift + T bound to my mouse for this reason.

  • @[email protected]
    link
    fedilink
    English
    1011 months ago

    You can just press CTRL+SHIFT+T and CTRL+SHIFT+N continually to reopen closed tabs and windows, respectively, in the order they were closed.

  • circuitfarmer
    link
    fedilink
    611 months ago

    It also persists through a reboot, so if you shutdown or reboot with tabs open, it will ask you to restore the previous session when you next start it after the boot.

    If you didn’t restore it, but didn’t open any more tabs, you can close it again, reboot, etc, and this option will still work to get your tabs back when you’re ready.

    • @Custoslibera
      link
      111 months ago

      What about if it’s private browsing mode?

          • @[email protected]
            link
            fedilink
            111 months ago

            If you want them to be recoverable, then you’ve got a bit of a misunderstanding about what private browsing mode is for. Not saving history is basically its whole “thing.”

  • @[email protected]
    link
    fedilink
    English
    511 months ago

    Chrome crippling the reopen tab option(they removed from right click menu) is what drove me back to Firefox.

    • @Aussie_Damo
      link
      English
      311 months ago

      I’m so sorry you had to use chrome, hope your day gets better.

      • @[email protected]
        link
        fedilink
        English
        411 months ago

        I don’t use keyboard shortcuts. And the right click menu only has like 5 things, and that was the option I used the most. It was a pointless change.

  • JokeDeity
    link
    fedilink
    511 months ago

    I highly recommend Tab Session Manager if you’re a crazy person like me.