1. 27 Aug, 2021 3 commits
    • A Farzat's avatar
      Make window_name variable local in restoring func · 3e8fbdf7
      A Farzat authored
      In restore_window_properties function, the window_name is set globally
      at first, but now it is first declared as local to prevent that from
      happening.
      3e8fbdf7
    • A Farzat's avatar
      Fix even more bugs in before last commit · 1b63a940
      A Farzat authored
      First, increment the relevant indices in the awk statements regarding
      windows, as now the window_name entry exists.
      
      Second, remove the window_name entry from the dump_pane_contents and
      dump_shell_history functions as it no longer exists in the format.
      1b63a940
    • A Farzat's avatar
      Fix some of the errors in the last commit · 02a7f1f9
      A Farzat authored
      First, make sure to include the ":" placeholder in the window_name
      format.
      
      Second, decrement the indices in relevant awk commands to make sure they
      point to the right items.
      02a7f1f9
  2. 26 Aug, 2021 1 commit
    • A Farzat's avatar
      Leave window name handling to windows · 6c9322aa
      A Farzat authored
      Previously, window names were set when creating panes and were therefore
      saved with pane data. However, saving the names with window data is more
      intuitive and easier to manage. In addition, one can set the name and
      automatic-rename options in the same function, so one can make sure that
      renaming the windows will not overwrite the automatic-rename option.
      6c9322aa
  3. 23 Aug, 2021 1 commit
    • A Farzat's avatar
      Maintain the value of automatic-rename · 80adb917
      A Farzat authored
      When the session is restored, the windows are renamed to their original
      names switching off automatic-rename, which can be undesirable.
      Therefore the value of automatic-rename is now saved for each window and
      restored after the renaming.
      
      If the value is set, that value is saved and then applied. Otherwise, a
      placeholder of ':' is placed instead, in which case the local option is
      unset for that window (as it originally was).
      80adb917
  4. 05 Jul, 2021 1 commit
  5. 18 Sep, 2020 1 commit
  6. 03 Aug, 2020 1 commit
  7. 06 Dec, 2019 1 commit
  8. 07 Jan, 2019 1 commit
  9. 29 Dec, 2018 1 commit
  10. 28 Dec, 2018 2 commits
  11. 10 Dec, 2018 1 commit
    • Lars Wilke's avatar
      Fix #94 start default-shell as login shell. · 9187f8b3
      Lars Wilke authored
      If pane content is restored and no default-command is set, restore.sh
      falls back to default-shell, which tmux sets automatically and calls as
      a login shell.
      
      In pane_creation_command() we need to make sure to call default-shell as a login shell.
      As tmux does. But take care not to call default-command as a login shell.
      9187f8b3
  12. 20 Aug, 2018 1 commit
  13. 17 Aug, 2018 1 commit
  14. 04 Dec, 2017 1 commit
  15. 30 Oct, 2017 1 commit
  16. 04 Jun, 2017 2 commits
  17. 01 Jun, 2017 1 commit
  18. 30 May, 2017 1 commit
  19. 07 May, 2017 1 commit
  20. 06 May, 2017 1 commit
  21. 29 Jan, 2016 1 commit
  22. 10 Jul, 2015 1 commit
  23. 08 Jul, 2015 1 commit
  24. 07 Jul, 2015 1 commit
  25. 12 May, 2015 1 commit
  26. 09 May, 2015 1 commit
  27. 17 Mar, 2015 1 commit
    • quentin's avatar
      Save and restore tmux pane contents · b22b2a72
      quentin authored
      This feature is controlled by the '@resurrect-capture-pane-contents'
      option.
      Currently only the visible area of each pane is saved and restored.
      b22b2a72
  28. 12 Feb, 2015 2 commits
  29. 10 Feb, 2015 6 commits
  30. 25 Oct, 2014 1 commit
    • Arno Mayrhofer's avatar
      Preserving layout of zoomed windows across restores · ad52ade4
      Arno Mayrhofer authored
      The problem is that tmux list-window shows only the current pane layout
      if a pane is maximized. This is a bug in tmux. In order to avoid this
      bug we unzoom the window when saving and zoom in again after saving.
      This implies that the Z flag is no longer set in list-windows, and so it
      can't be used when restoring. Instead we use the Z flag of the panes
      (which still have it) to restore the zoom.
      ad52ade4