Author Topic: Preserve Search highlighting across buffers  (Read 1561 times)

davew

  • Senior Community Member
  • Posts: 224
  • Hero Points: 6
Preserve Search highlighting across buffers
« on: January 17, 2019, 06:47:41 PM »
This has bugged me for a while and I'm hoping that I just haven't found the right option.
I'm using vim emulation on Windows.

When I search with '/' I have it set up to highlight all of the search results (Vim option "Always highlight search results"). This makes it easy to see all of the occurrences of the string in a buffer as I scroll through.
However, when I move to a new buffer, the string is not highlighted. When I use find next, it highlights the next occurrence of that string in the buffer, but nothing else. I have to enter the string again to get it to highlight everything in the new buffer. Then when I switch back to the original buffer, the highlighting has been removed.

Is there some way to make the highlighting persistent until I search for something else?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Preserve Search highlighting across buffers
« Reply #1 on: January 17, 2019, 09:47:42 PM »
Symhighlights allows you to highlight any text.
It will highlight either the selected text, or the word under the cursor.
You can have any number of highlights.

The most recent macros are here:  https://github.com/jporkka/slickMacros.git

https://community.slickedit.com/index.php/topic,11445.0.html

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Preserve Search highlighting across buffers
« Reply #2 on: January 18, 2019, 01:51:51 PM »
I have reproduced it moving to new buffer and using find next only highlights the current occurrence.  That is a bug, it shouldn't be doing that.  It should only be highlighting the original buffer that search occurred.  I will file a defect and see if that can be hotfixed.