ggandor / leap.nvim

Neovim's answer to the mouse 🦘
MIT License
4.38k stars 46 forks source link

Allow traversing directionally after bidirectional search #210

Open tvdab opened 7 months ago

tvdab commented 7 months ago

When doing a bidirectional search, the next_target and prev_target keybindings doesn't work. I would love if next_target would jump to the next match in the direction of the end of the buffer and prev_target would jump in the other direction.

ggandor commented 7 months ago

You can use repeat keys (:h leap-repeat), which effectively do the same.

To make traversal mode work for non-directional motions, we should maintain additional tables (winlocal-directional-idx : original-idx) for each window, I'm not sure it would worth the effort. But I will give it some thought.

ggandor commented 7 months ago

Related #136.

tvdab commented 7 months ago

Thx for your fast reply. It seems to work :)