tmux-resurrect icon indicating copy to clipboard operation
tmux-resurrect copied to clipboard

Add @resurrect-process-match-strategy option and "basename" strategy

Open rummik opened this issue 6 years ago • 2 comments

This adds a process matching strategy that functions similarly to running basename on the program path

It can be enabled with

set -g @resurrect-process-match-strategy 'basename'

rummik avatar Dec 29 '18 16:12 rummik

I think this can already be achieved via ~, see here: https://github.com/tmux-plugins/tmux-resurrect/blob/master/docs/restoring_programs.md#general-instructions-

If have a process, /usr/bin/bla/process it can be matched with just ~process.

bruno- avatar Jan 07 '19 12:01 bruno-

The ~ prefix matches any part of the command string, which can result in restoring commands that happen to have an argument that contains the text being matched

rummik avatar Jan 07 '19 16:01 rummik