Commit Graph

111 Commits

Author SHA1 Message Date
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
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
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
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
Bruno Sutic
241f62089a
Update changelog 2017-06-04 00:32:53 +02:00
Mohammad Alsaleh
ea3cbcedc6
Add zsh history saving and restoring to CHANGELOG.md
Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2017-06-04 00:17:35 +02:00
Bruno Sutic
fbed36ad0e
Allow using '$HOSTNAME' in @resurrect-dir
Closes #197
2017-06-01 17:35:00 +02:00
Bruno Sutic
b1f3df21e9
Create new file only if there are changes
Code submitted by @vburdo in
https://github.com/tmux-plugins/tmux-resurrect/issues/156
2017-05-30 05:14:14 +02:00
Bruno Sutic
5722856e54
Fix bug for restoring commands on tmux 2.5 2017-05-30 02:05:23 +02:00
Bruno Sutic
370b4861cb Revert "Symlink 'last' file at the end of successful save"
This reverts commit 6750a88e74.
2015-11-25 13:42:37 +01:00
Bruno Sutic
6750a88e74
Symlink 'last' file at the end of successful save 2015-11-25 13:40:54 +01:00
Bruno Sutic
53578fee8b
Added guide for migrating from tmuxinator 2015-08-18 23:56:57 +02:00
Bruno Sutic
06b8ad744a
Mutt added to the list of automatically restored programs 2015-08-14 19:23:36 +02:00
Bruno Sutic
e81f8e5f37
More portable pane_capture archiving 2015-07-10 19:29:40 +02:00
Bruno Sutic
a47236d247
Implement pane content files compression 2015-07-10 18:01:20 +02:00
Bruno Sutic
a750628a44
Change 'save pane contents' directory 2015-07-08 00:14:40 +02:00
Bruno Sutic
74773bed62
Save pane contents only if pane not blank 2015-07-08 00:02:20 +02:00
Bruno Sutic
852af79075
Do not save empty trailing lines when pane content is saved 2015-07-07 19:23:47 +02:00
Bruno Sutic
6fe70853a5
Expand tilde in @resurrect-dir
Fixes #74
2015-07-07 18:23:43 +02:00
Bruno Sutic
8af7aed9b3
Bugfix for pane contents restoration 2015-05-12 13:31:13 +02:00
Bruno Sutic
f3c6321501
Refactoring: drop dependency on command 2015-05-09 15:05:30 +02:00
Bruno Sutic
c85a3b4487
Improve pane content restore: remove extra cat 2015-05-09 14:05:51 +02:00
Bruno Sutic
00008e7f40
Quiet set-options in resurrect.tmux
Using "loud" set-options command is an issue when plugin is installed
manually.

Fixes #83
2015-04-23 14:22:55 +02:00
Bruno Sutic
c32fb488e7
Update tmux-test 2015-04-20 01:31:54 +02:00
Bruno Sutic
6a6a87626a
Add 'save&restore pane contents' feature to changelog and readme 2015-04-02 15:20:32 +02:00
Bruno Sutic
9c63ea625b
v2.4.0 2015-02-23 02:05:18 +01:00
Bruno Sutic
781b5104e4
Add travis badge to the readme 2015-02-23 01:21:13 +01:00
Bruno Sutic
f4f36a5af9
Update changelog 2015-02-23 01:19:19 +01:00
Bruno Sutic
890a413b9f
Update changelog 2015-02-22 21:54:20 +01:00
Bruno Sutic
671699a054
v2.3.0 2015-02-12 14:13:22 +01:00
Bruno Sutic
b7e7669999
Improve fetching "window_layout" value
It's faster now.
2015-02-12 14:10:56 +01:00
Bruno Sutic
952e1f9784
v2.2.0 2015-02-12 12:53:47 +01:00
Bruno Sutic
abad85f03b
Enable quiet saving 2015-02-12 12:53:19 +01:00
Bruno Sutic
e1b01ee4f9
Export script paths so that 'tmux-resurrect-auto' plugin can use them 2015-02-12 12:48:44 +01:00
Bruno Sutic
708cd49d31
Fix a zoomed windows related regression 2015-02-12 12:47:09 +01:00
Bruno Sutic
47db8198d3
v2.1.0 2015-02-12 03:45:15 +01:00
Bruno Sutic
c4375bf642
Enable 'full restore' by overwriting a single pane 2015-02-10 15:16:26 +01:00
Bruno Sutic
442b3ed244
v2.0.0 2015-02-10 12:57:24 +01:00
Bruno Sutic
b91e18cb0e
Remove deprecated and key bindings 2015-02-10 12:56:23 +01:00
Bruno Sutic
028e7b7c2e
Refactoring: prefer using variable with tab character 2015-02-10 12:48:53 +01:00
Bruno Sutic
b502572a07
Restore active and alternate windows only if they are present in the 'last' file 2015-02-10 12:48:53 +01:00
Bruno Sutic
1c8efb034a
If there are no grouped sessions, do not output empty line 2015-02-10 12:48:53 +01:00
Bruno Sutic
95ec3c1d9b
Save and restore active and alternate windows for grouped sessions 2015-02-10 12:48:53 +01:00
Bruno Sutic
5dc22a4a9b
Restore grouped sessions 2015-02-10 12:48:53 +01:00
Bruno Sutic
9eae48b87e
Update README 2014-11-21 14:47:57 +01:00
Bruno Sutic
e770c87e10
v1.5.0 2014-11-09 16:43:44 +01:00
Bruno Sutic
601366be6d
Support for restoring neovim sessions 2014-11-09 16:42:53 +01:00