Commit Graph

17 Commits

Author SHA1 Message Date
kt programs b8ff2ea08b _get_proc_restore_command: use "," as sed delimiter
When command_arguments contains a path, there are too many delimiters
for sed, which causes it to not replace properly.

The result of this is that the original command gets executed without
remapping and/or expanding the arguments.
2023-01-30 10:37:15 +08:00
kt programs 4941cdb074 _get_command_arguments: make trailing space optional
When pane_full_command has no arguments, the regex doesn't find argv[0]
as there is no trailing space.

For example, if pane_full_command was "vim" and the restore option was
"~Vim->vim *", the command "vim vim" would get executed instead of just
"vim".

Make the trailing space optional to match having only the command
without arguments.
2023-01-30 10:37:15 +08: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 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 5722856e54
Fix bug for restoring commands on tmux 2.5 2017-05-30 02:05:23 +02:00
Dmitry Motylev ed6fb9b523
try to treat inline strategy as alias for strategy
if strategy with that name exists apply it otherwise use it as inline
strategy

Closes #88
2015-06-11 15:29:13 +02:00
Bruno Sutic 94594efdb0
Small bugfix: text command arguments 2014-09-24 14:25:30 +02:00
Bruno Sutic a0a3f2fd56
When a pane is not restored, don't restore it's program 2014-09-02 22:47:38 +02:00
Bruno Sutic 8368355240
Enable inline strategies when restoring programs 2014-09-01 20:32:27 +02:00
Bruno Sutic f9ef86d604
Do not restore processes within existing panes
Closes #23
2014-08-29 15:50:18 +02:00
Bruno Sutic bd13c9bae8
Clean out comments 2014-08-29 01:04:50 +02:00
Bruno Sutic b8b87a6e29
Improve `irb` restore strategy
Fixes #21
2014-08-29 00:17:02 +02:00
Bruno Sutic cfe8e7979b
Restoring programs with arguments; improve process matching
Closes #20, closes #19
2014-08-28 23:48:04 +02:00
Bruno Sutic 0da279e4cd
"vi, irb, pry" are restored by default 2014-08-28 14:35:49 +02:00
Bruno Sutic 884a5e9c19
Improve default restored program command matching 2014-08-28 13:53:09 +02:00
Bruno Sutic cde50d4d92
Command strategies; restore vim sessions
Closes #4
2014-08-28 00:43:31 +02:00
Bruno Sutic 1e945c2cac
Enable selectively restoring processes
- user can restore all processes with ':all:'
- user can selectively restore wanted processes

Closes #13
2014-08-27 16:19:36 +02:00