A recent piece at the New Yorker explores the relationship between walking and creative thinking, diving into the scientific reasons why this connection exists. The article also notes the many writers who found getting up and going for a walk an integral part of doing their jobs. It concludes:
Perhaps the most profound relationship between walking, thinking, and writing reveals itself at the end of a stroll, back at the desk. There, it becomes apparent that writing and walking are extremely similar feats, equal parts physical and mental.