mapped spacebar to toggle folding
added function to redirect the output of a command