Note-to-note lines don't avoid staff....

Note-to-note lines are meant to go from note head to note head, similar to a gliss line.

If you want something that spans other notes and avoids the staff, you want lines attached to rhythmic grid positions or a bar lines.