How to move a window to another space without using the mouse?

I use spaces for having multiple desktops, but often need to move a program from one space to another.

I am aware of the various ways to do that with a mouse:

  • Click-and-hold on the title bar of window and drag to edge
  • F8 to show all Spaces and drag to desired location
  • Click-and-hold on the title bar, and use Ctrl+# or Ctrl+Scroll Arrow

But have not been able to find a keyboard-only method. I use Linux for one of my primary workstations which has this ability and I would LOVE to use it with OSX as well.


While dragging a window, press key combo to move window to numbered space:

  • Control + 1
  • Control + 2
  • Control + 3
  • etc ...

EDIT: For Lion, I had to go to System Preferences -> Keyboard -> Keyboard Shortcuts -> Mission Control and enable these hotkeys.


SizeUp

You could have a look at SizeUp, which has been recommended on apple.se at least once before - it has some nice keyboard tools for throwing windows around multiple monitors (as I use it) and also for throwing them around multiple 'spaces'.

It's not free, but it's very useful and certainly worth the small registration fee.