Commit Graph

231 Commits

Author SHA1 Message Date
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
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
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
Bruno Sutic
dcef21995a Merge pull request #209 from job/add_weechat
Add weechat to conservative list
2017-10-10 12:14:25 +02:00
Job Snijders
e3878caa75 Add weechat to conservative list 2017-10-10 08:12:44 +00:00
Bruno Sutic
4f7f4e00ae Merge pull request #206 from nguymin4/improve-doc
Add instruction for NodeJS related project and tools
2017-09-24 19:44:31 +02:00
Minh Son Nguyen
75ecae9bcb Add instruction for NodeJS related project and tools 2017-09-24 06:36:31 +03:00
Bruno Sutic
3a31bfbbb8
Use 'xargs rm' instead of 'find -delete' 2017-06-04 00:52:37 +02:00
Bruno Sutic
241f62089a
Update changelog 2017-06-04 00:32:53 +02:00
Bruno Sutic
fe8390a578
Resurrect file prefix and extension vars 2017-06-04 00:31:17 +02:00
Xu Cheng
9d81e8d026
auto remove old backup files
remove backup files older than 30 days, but keep at least 5 copies of backup.

Fixes #102.
2017-06-04 00:23:50 +02:00
Bruno Sutic
7e0bfcb7e9
Remove comment 2017-06-04 00:19:51 +02:00
Mohammad Alsaleh
aaec581334
Immediately restore shell history after saving
This is necessary for zsh.

Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2017-06-04 00:17:36 +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
Mohammad Alsaleh
bf07546645
mv docs/restoring_{bash,shell}_history.md and update the doc
Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2017-06-04 00:16:53 +02:00
Mohammad Alsaleh
2c9cc224c0
Rename dump_bash_history() to dump_shell_history()
Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2017-06-04 00:16:52 +02:00
Mohammad Alsaleh
655ed8c6f4
Add @resurrect-save-shell-history option
Also make @resurrect-save-bash-history an alias to the new option.

Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2017-06-04 00:16:51 +02:00
Mohammad Alsaleh
e757e1b8a9
Add zsh support in save/restore functions
Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>
2017-06-04 00:15:01 +02:00
Bruno Sutic
fbed36ad0e
Allow using '$HOSTNAME' in @resurrect-dir
Closes #197
2017-06-01 17:35:00 +02:00
Bruno Sutic
eef844c747
Memoize return of resurrect path functions 2017-06-01 17:03:39 +02:00
Bruno Sutic
b7a4ee2a40
Pane contents save and restore in separate dirs 2017-06-01 05:47:09 +02:00
Bruno Sutic
ba59a2b642
Revert "remove pane contents cleanup to repair restore"
This reverts commit 0a6f90788f.
2017-05-30 06:14:21 +02:00
Bruno Sutic
573897cd71
Revert "Remove pane_content_files_cleanup function"
This reverts commit 7a8d90a27d.
2017-05-30 06:11:41 +02:00
Bruno Sutic
7a8d90a27d
Remove pane_content_files_cleanup function 2017-05-30 05:49:51 +02:00
Bruno Sutic
8de2570960 Merge pull request #193 from Mellbourn/restore-pane-fix
remove pane contents cleanup to repair restore
2017-05-30 05:49:13 +02:00
Bruno Sutic
1a3a094265
Make send-keys more reliable
Thanks @mk12 for the PR
https://github.com/tmux-plugins/tmux-resurrect/pull/180
2017-05-30 05:43:12 +02:00
Bruno Sutic
40c776c747 Merge pull request #194 from Mellbourn/remove-terminal-clearing
remove terminal clearing since it collides with capture-pane-contents
2017-05-30 05:31:27 +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
dec4e15fc5
Update '.travis.yml' from tmux-test 2017-05-30 05:04:08 +02:00
Bruno Sutic
14b2a97791
Update tmux-test 2017-05-30 05:02:58 +02:00
Bruno Sutic
0a2de2ea44
Fix tests for tmux 2.5 2017-05-30 04:55:10 +02:00
Bruno Sutic
69480dcd87
Update tmux-test 2017-05-30 04:54:59 +02:00
Bruno Sutic
5722856e54
Fix bug for restoring commands on tmux 2.5 2017-05-30 02:05:23 +02:00
Klas Mellbourn
0a6f90788f remove pane contents cleanup to repair restore
as suggested in https://github.com/tmux-plugins/tmux-resurrect/issues/141
2017-05-07 19:35:06 +02:00
Klas Mellbourn
71fd3c8dd2 remove terminal clearing since it collides with capture-pane-contents 2017-05-06 00:37:13 +02:00
Bruno Sutic
b8cc90a7f4 Merge pull request #148 from kmiasko/patch-1
Fixed typo in Session.vim file name.
2016-05-28 17:27:40 +02:00
Krzysztof Miąsko
c6a4d9dfd1 Fixed typo in Session.vim file name. 2016-05-16 23:28:54 +02:00
Bruno Sutic
a2eb3b01d2 Merge pull request #125 from HeathNaylor/master
Fix comparision operators. Fixes #124
2016-01-30 10:49:40 +01:00
Heath Naylor
3bc852bbae Fix comparision operators. Fixes #124 2016-01-29 09:41:52 -07: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
5f04ceabbc
Add sleep when saving zoomed windows
When saving zoomed windows:

- window is un-zoomed
- window layout snapshot is taken
- window is zoomed back

This is done because otherwise tmux does not provide correct window
layout. With this we're working around a tmux bug really.

The above causes an issue with vim. For some reason vim cannot properly
reload it's content when "un-zoom + zoom" is done quickly. Everything
works ok if a little sleep/wait is added, so we're doing just that.
0.1 second sleep seems to be enough.

About `sleep 0.1 || sleep 1`: this is a hack. We want to wait for 0.1
seconds, which seems to be enough to fix the issue. However, according
to POSIX, `sleep` command takes only integers.
BUT, decimal values seem to work everywhere. So, we're using a decimal
value, and if that fails, we behave POSIX friendly.

Related to issue #112.
2015-10-26 01:22:46 +01:00
Bruno Sutic
fbfb0993a1 Merge pull request #113 from peteches/master
Adding png attributes as binary files so git does not swap the crlf t…
2015-10-15 13:58:45 +02:00
Pete "Peteches" McCabe
7fc9757e9d Adding png attributes as binary files so git does not swap the crlf to lf. 2015-10-14 18:06:20 +00:00