Skip to content

'Find in Files': Not possible to jump to every single hit in certain cases #8525

@tstone-1

Description

@tstone-1

Description of the Issue

When using 'Find in Files', Notepad++ will find all occurrences of the string of interest. However, it is not possible to open the respective files from the list of hits, jumping to the particular occurrence.

Steps to Reproduce the Issue

  1. Within a folder mwe, create a file mwe.tex containing
Aryl-Aryl

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Aryl-Aryl.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Seit dem ersten Bericht über Nickel-katalysierte \ac{SMC}-Reaktionen 1995 von Percec \textit{et al.}\supercite{Percec1995} hat sich diese Reaktion durch stetige Fortentwicklung für viele Anwendungen zu einer effizienten Alternative zur klassischen Palladium-katalysierten Aryl-Aryl-Kreuzkupplung entwickelt.\supercite{Han2013,Tasker2014} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  1. Use 'Search' -> 'Find in Files' to search for 'aryl-aryl' with filter *.tex within the folder mwe. Three occurrences will be found. Double-clicking the three occurrences will highlight the corresponding 'Aryl-Aryl' string.

  2. Another

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

is appended to line 5 and the file is saved. Now, 'Search' -> 'Find in Files' is run again using the same settings as before. Again, there will be three hits. The first two can be double-clicked, causing Notepad++ to jump to the respective occurrences.

Expected Behavior

When the third line is double-clicked, 'Aryl-Aryl' within line 5 is expected to be highlighted.

Actual Behavior

However, double-clicking the third hit will not highlight the occurrence of 'Aryl-Aryl' within line 5.

Debug Information

Notepad++ v7.8.8 (64-bit)
Build time : Jun 23 2020 - 23:59:56
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 2004
OS Build : 19041.329
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll XMLTools.dll

I made a video of what I've been doing here, see: http://yeticave.de/2020-07-0413-48-54.xxx ; replace xxx with mkv to download the file. I've tried to track this down to the most minimal example I'm able to produce right now. I've been observing this issue for quite a long time now - I'm writing on a LaTeX document with multiple inputs and use the 'find in files' method quite often to find a particular part of the code. However, in many cases, I can't open a file containing a specific occurrence from Notepad++ and have to open the file manually from explorer, using CTLR + F afterwards.

Metadata

Metadata

Assignees

Labels

verifiedIssues verified to be valid and reproducible, PRs that have been tested thoroughly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions