-
Notifications
You must be signed in to change notification settings - Fork 245
Closed
Labels
Description
(This is an idea for a feature.)
If you're editing a large match expression, it could be nice to jump to the previous/next case, e.g.:
let f x =
match x with
| A ->
let x1 = ... in
let x2 = ... in
^
(* many dozens of lines of code *)
| B -> 3If my cursor is as indicated in the A case, it would be nice to jump to the B case.
A sensible place to put this feature might be in the jump rpc. Right now, that supports jumping to the top of a let, match, or function; it might be easy to extend it to support next-case and prev-case.
(I started to look at this but it wasn't trivial so I thought I'd log this issue.)