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

Possible for PearTreeJump to search beyond current line

Open perks opened this issue 5 years ago • 0 comments

Currently the <Plug>(PearJumpTree) command invokes pear_tree#GetSurroudingPair() to get positions to jump past, and it works as long as the pairs are located on the same line/ cursor is within an actual pair.

Was wondering if it would be possible to modify (or add a new) command so that if #GetSurroundPair() is empty, it could then search for the next closer and jump past it.

Ex:

foo() {
    ThisAllWorks("as Expected"); | [cursor]  //Will jump the \" and \) correctly, 
             //however will not jump out to the closing \}
}   // <-Here->

perks avatar May 24 '19 20:05 perks