Commit Graph

272 Commits (dff7b2d2ae4e2aaa6c1f4eef0e2237bd5267e3b1)

Author SHA1 Message Date
chrysn dff7b2d2ae More explicit warning of restoring :all: programs
Closes: https://github.com/tmux-plugins/tmux-resurrect/issues/250
2021-03-17 12:54:21 +01:00
Bruno Sutic 1c0eae57c8
Merge pull request #325 from alfredbez/master
How to restore to a previously saved environment
2021-03-13 11:49:28 +01:00
alfredbez afcddf8b9e Add link to how-to restore to a previously saved environment 2021-03-12 13:10:21 +01:00
Bruno Sutic 4a36ded50f
Merge pull request #376 from coldeasy/patch-1
Add extra detail around using MacVim
2021-02-02 16:00:52 +01:00
Colin Deasy 76656c510b
Add extra detail around using MacVim 2021-02-01 15:34:21 +00:00
Bruno Sutic e4825055c9
Merge pull request #361 from diegoximenes/fix/restore_window_renaming
Fix rename-window's target-window during restore
2020-09-18 10:59:01 +02:00
Diego Ximenes b6cbf652c4 Fix rename-window's target-window during restore 2020-09-18 00:47:32 -03:00
Bruno Sutic 123d83c668
Do not output deleted files to stdout 2020-08-17 10:32:11 +02:00
Ash Berlin-Taylor e815c50f13
Make backup retention period configurable
For instance `tmux set-option -g @resurrect-delete-backup-after 1`
to only keep 1 day of backups.

Closes 252.
2020-08-17 10:28:42 +02:00
Bruno Sutic 5f5f9d8fd5
Kill session 0 if it's not restored 2020-08-03 08:58:41 +02:00
Bruno Sutic 78d67e4dcb
Merge pull request #211 from malkomalko/mm-rename-window
actually rename windows when restoring
2020-07-27 09:18:18 +02:00
Bruno Sutic da1a755802
Whitespace cleanup 2020-06-14 11:37:47 +02:00
Bruno Sutic e4e21f3f48
Restore command args for inline strategies with '*'
Example inline strategy: "~/bin/my_program->my_program *"
for full command: "ruby /Users/john/bin/my_program arg1 arg2"
restores command: "my_program arg1 arg2"
2020-06-14 11:33:31 +02:00
Bruno Sutic bd671b83dc
Don't be too smart when restoring vim session
A user may decide to use custom session file. Eg vim -S Session1.vim
With the previous approach we were preventing that as we only checked
for the existence of the default Session.vim file.
2020-06-05 09:24:42 +02:00
Bruno Sutic 327c0481ad
Add 'view' to the list of restored processes 2020-03-21 23:51:59 +01:00
Bruno Sutic 905abba3c3
Merge pull request #283 from rummik/cmdline
Add cmdline save strategy
2019-12-17 18:03:06 +01:00
*Kim Zick 2382467b8e
Change `CPID` to something a little less cryptic 2019-12-17 11:04:45 -05:00
*Kim Zick 17cf30a69c
Rename cmdline.sh to linux_procfs.sh 2019-12-17 11:00:52 -05:00
Helmut K. C. Tessarek 1160c1da71
only add -l when default_shell is bash 2019-12-06 13:00:39 +01:00
Bruno Sutic c66b791fff
Merge pull request #281 from lwilke/hotfix/94_use_login_shell_with_default_shell
Fix #94 start default-shell as login shell.
2019-11-27 14:56:15 +01:00
Bruno Sutic 0f0ec12e92
Merge pull request #308 from tmux-plugins/deprecate_restoring_shell_history
Deprecate restoring shell history
2019-10-21 12:03:38 +02:00
Bruno Sutic d7825683d1
Deprecate restoring shell history
"restoring shell history" feature is very invasive and dirty. I propose
removing it in the future without the replacement.

I worry it spoils the first experience of using this plugin for users
that accidentally turn it on and don't know how to turn it off, see
https://github.com/tmux-plugins/tmux-resurrect/issues/288

Also, it hurts me to reject PRs that improve the feature.

Thoughts?
2019-08-27 13:26:29 +02:00
Bruno Sutic e3f05dd34f
Update README.md 2019-04-19 12:44:26 +02:00
Bruno Sutic 8fcb4ab40b
Merge pull request #291 from pattersongp/bugfix-162
Adds a fix for directory paths with spaces that aren't escaped.
2019-03-01 18:19:42 +01:00
Graham Patterson a876ad6648 Adds a fix for directory paths with spaces that aren't escaped. 2019-03-01 10:37:01 -05:00
*Kim Zick (rummik) ac8a446667 Remove lingering code from base64-dependent cmdline solution 2019-01-07 11:34:59 -05:00
Bruno Sutic c3ffe89e52
Merge pull request #284 from rummik/mosh-client-strategy
Add mosh-client default strategy
2019-01-07 13:35:20 +01:00
*Kim Zick (rummik) e99f1977b6 Add mosh-client default strategy 2018-12-28 20:08:46 -05:00
*Kim Zick (rummik) 913f693f80 Remove cmdline dependency on base64 and perl 2018-12-28 19:37:33 -05:00
*Kim Zick (rummik) 15cabbb930 Fixes for cmdline save/restore strategy 2018-12-28 17:16:53 -05:00
donat-b edd8132bef Add cmdline strategy 2018-12-27 22:45:15 -05:00
Lars Wilke 9187f8b377 Fix #94 start default-shell as login shell.
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.
2018-12-10 10:43:16 +01:00
Bruno Sutic b020b2481e
Merge pull request #220 from kevinkjt2000/fix-issue-95
fix #95 restore name of first window
2018-11-30 13:29:24 +01:00
Bruno Sutic e5cbe54c75
Merge pull request #272 from JBlond/master
Windows file names can not contain a colon
2018-10-08 11:42:29 +02:00
Mario 71b93407f2
Changed to fit ISO8601
See https://github.com/tmux-plugins/tmux-resurrect/pull/272#issuecomment-419934801
2018-09-11 13:23:58 +02:00
Bruno Sutic 9dc3f8c639
Always use 'ps -ao' to detect commands
Previously we used 'ps -eo' for some operating systems. It turns out
flags '-ao' work fine for all, and it should also be fine per posix spec

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ps.html#tag_20_96
2018-09-11 11:16:30 +02:00
Mario 8b504d4b06
Windows file names can not contain a colon
That would solve https://github.com/tmux-plugins/tmux-resurrect/issues/131
2018-09-10 10:46:09 +02:00
Bruno Sutic 6feae65a83
Merge pull request #267 from ashb/save-restore-hooks
Further Save and restore hooks
2018-08-20 16:57:24 +02:00
Ash Berlin-Taylor 8aa999c591 Add more hook points
And make the hook calling simpler at the call site.
2018-08-20 12:17:43 +01:00
Sergey Vlasov 0133c7a96a Save and restore hooks 2018-08-17 20:19:27 +01:00
Bruno Sutic 42f77b303c
Merge pull request #233 from woutgg/master
Fix https://github.com/tmux-plugins/tmux-resurrect/issues/176.
2018-01-28 17:40:17 +01:00
Wouter R 2f5394bfed Remove superfluous if-block. 2018-01-27 19:08:28 +01:00
Wouter R fee390d1b5 Update tests to save and restore a setup with a zoomed pane. 2018-01-24 22:32:35 +01:00
Wouter R 6d10ee01b6 Fix https://github.com/tmux-plugins/tmux-resurrect/issues/176.
This removes (un)zooming on save which should not be necessary anymore
with recent tmux versions (from 2.2 on?).
2018-01-24 18:20:44 +01:00
Kevin Tindall 8f3f8d7cb9
fix #95 restore name of first window 2017-12-03 22:11:51 -06:00
Bruno Sutic 7c77c70483
Merge pull request #214 from mc10/patch-1
README: Use the SVG Travis badge
2017-11-14 13:17:47 +01:00
Kevin Ji 195a16f35f
README: Use the SVG Travis badge 2017-11-14 02:40:05 -08:00
Robert Malko 365a2e78ae
actually rename windows when restoring 2017-10-30 08:40:56 -07:00
Bruno Sutic 9c7ec631d4 Merge pull request #210 from eugenevd/20171014-remove_old_backups-find
remove_old_backups() : replace xargs with -exec to handle 0 files found better
2017-10-26 14:06:11 +04:00
Eugene Van Dam 5f3873c502 remove_old_backups() : replace xargs with -exec to handle 0 files found
by find better
2017-10-25 14:30:50 +02:00