Self-made rename buttons work nicely, but files get deselected afterwards

I have created a number of buttons that simply append text at the end of a file as a kind of simple tag system:

filename.doc would be changed to
filename #todo.doc for example

or I would append #animals to a series of photos.

This works really nicely, only that when I use the button the files loose selection state and I have to re-select them again. Is it possible to keep them selected so that I can push several buttons for the same selection of files?

Add a line with @nodeselect to the button.

Perfect! What a timesaver one line of code can be :wink:

Thanks a LOT!