version

Adapted from findWordAtCursor by M.K. Safi (@msafi).

Make search a little bit easier.

No selection

no selection

With selection

selection

What differences?

  • Find next can loop back to the first line when reaching the end of the file
  • Be consistent with Ctrl + D
    • No selection → wholeWords: true; caseSensitive: true
    • Has selection → wholeWords: false; caseSensitive: false
  • Default key binding
    • F3 / Shift + F3 (find next/previous word at cursor)