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@lemm.ee
    link
    fedilink
    arrow-up
    107
    ·
    edit-2
    1 year 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).

      • Jay K@lemmy.ml
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        1 year 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.

        • Makiterr@iusearchlinux.fyi
          link
          fedilink
          arrow-up
          26
          ·
          1 year 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.

          • sugar_in_your_tea@sh.itjust.works
            link
            fedilink
            arrow-up
            4
            ·
            1 year 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.

        • SkyeStarfall
          link
          fedilink
          arrow-up
          10
          ·
          edit-2
          1 year 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.

        • Vincent@feddit.nl
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          You could already do that; it just was a separate keyboard shortcut/menu item before.

      • geno@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year 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@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

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

        • Aram855@feddit.cl
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year 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.

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          1 year 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.

          • blackbelt352@lemmy.sdf.org
            link
            fedilink
            arrow-up
            1
            ·
            1 year 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.

    • oce 🐆@jlai.luOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      That’s last closed tab, not window.

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

      • ReversalHatchery@beehaw.org
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I think that’s a fairly recent change, I remember reading it in the changelogs. There was also something else relating to the feature, but now I don’t remember

  • HeavyRaptor@lemmy.zip
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 year 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)

  • Lenny@lemmy.zip
    link
    fedilink
    arrow-up
    17
    ·
    1 year 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.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year 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.

  • RagingNerdoholic@lemmy.ca
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year 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.

  • entropicshart@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    I wish Firefox had a method to restore windows after a restart. Losing all my tabs across multiple windows due to work required updates is a huge pain.

    • Robmart@lemm.ee
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      This is literally a thing? You just go to options and tick General -> Startup -> Open previous windows and tabs. It is quite literally the first option in the interface. I only mean to be a slight bit rude, but did you not even take a cursory look through the options?

      • Kilgore Trout@feddit.it
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Don’t worry about being rude. Spreading demeaning misinformation about free software, especially one as important for the Web as Firefox, should be frowned upon.

      • grue@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        Personally, I’d like it to be able to do it sometimes without having to set it to happen every time. In other words, I’d like a “restore previous session” UI element in the history interface.

        I should probably look into some of the extensions folks in this thread are talking about.

    • Albbi@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      There is a “recently closed windows” section in the history area. You can get all your tabs back.

    • superfiercelink@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      If you can use extensions, I use the Tab Session Manager extension. It has a ton of features too but the big one is auto saving your sessions so you can always restore it all after a restart.

    • oce 🐆@jlai.luOP
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I don’t understand this thread, this is exactly what I’m talking about in my OP.

    • Aa!@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      It’s funny, it does do this when Windows restarts outside of your control.

      But if you manually trigger a reboot, it assumes you closed all your windows intentionally.

      At least that’s how it behaves for me

  • circuitfarmer@lemmy.sdf.org
    link
    fedilink
    arrow-up
    6
    ·
    1 year 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.