add command `goto-latest-note` and `goto-earliest-note`, and introduce case macro.