daveosborne/brackets-vimderbar

Search leaves selection active.

Closed this issue · 2 comments

In Vim, when you search, the highlighted result is not visually selected - it's just highlighted. Highlighting and visually selecting text are two different things.

You're right. While implementing the Vim.js file, I had to decide between using CodeMirror's (at the time) buggy search+highlight feature or Brackets' more reliable native search+visual select. I went with the Brackets search and just left it there. I do intend to bring back the former if it works better these days.

I think the recent changes to CodeMirror have fixed this issue, the results of the search are highlighted, but not visually selected.

I've set up the '/' command in Vimderbar to run the normal CodeMirror search, and left Ctrl-F searching as an alternative option, both only highlight the text.