fix tree walking

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add collapsing and expanding

Signed-off-by: Mattias Andrée <maandree@operamail.com>
use function for determining if expanded

Signed-off-by: Mattias Andrée <maandree@operamail.com>
collapsing affect walking

Signed-off-by: Mattias Andrée <maandree@operamail.com>
quit with q

Signed-off-by: Mattias Andrée <maandree@operamail.com>
derp

Signed-off-by: Mattias Andrée <maandree@operamail.com>
autoexpand

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m

Signed-off-by: Mattias Andrée <maandree@operamail.com>