Repeat command

Hi guys!

Is there a way to make a button/shortcut that just repeats the previous command issued? (sort of like pressing "." on vim?)
many thanks!

There is for rename, but not in general, at least out of the box.

Scripts could do something along those lines for more commands, if all participating commands were changed to run via script code that recorded the last command into a variable.

;( ok thanks!