tree-edit icon indicating copy to clipboard operation
tree-edit copied to clipboard

Jumping to nodes with the same start range

Open ethan-leba opened this issue 3 years ago • 0 comments

Currently attempting to avy jump to a call in Python in the following scenario will only yield one choice, due to the node layout:

[[foo()].baz()]

This is because the avy jump is based on the start point of node range. How can we address this?

Switch to the end point of the node.

This could work, but has two issues:

  1. When do we decide if we should use the end node? If the no. unique start points < no. unique end points?
  2. Behavior needs to not be surprising to users. Could be mitigated with a (message "Start points are not unique, ...")

ethan-leba avatar Dec 24 '21 01:12 ethan-leba