thanks glerm, I had tried that, but it doesn't work on the find window...
|bang/|[f $0]|[makefilename %d-sample]|[set $1/||window_number-sample/ <-- that's what you need. abraēzglerm