Find in Files Bug

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Find in Files Bug

Post by Drxenos »

I think I found a bug in "Find in Files" when attempting to jump to one of the files.

I am using the latest versions of 8 and 9 (8.21.0 and 9.7.0), and both have the issue.

In the resultant list of found files, there are some that I cannot double click on to open. I get "Cannot jump to item under the cursor." I can open them manually just fine.

For this given output:

Code: Select all

Searching for: keep-duplicate-titles
N:\media-root\Config\Scripts\dump_hb_bluray_table.sh(35): readarray lines < <("${HB}" --keep-duplicate-titles -title 0 --min-duration 1 --input "${dir}" 2>&1 | tee /dev/stderr | dos2unix -q)
N:\media-root\Config\Scripts\dump_hb_cropping.sh(12): hb_args=(--keep-duplicate-titles --min-duration 1 --previews 40:0 --title 0 --input)
N:\media-root\Config\Scripts\dump_hb_cropping_json.sh(15): hb_args=(--keep-duplicate-titles --json --min-duration 1 --previews 40:0 --title 0 --input)
Found 3 occurrence(s) in 3 file(s), 1750 ms
I can jump to the first file, but neither of the last two. I assume it has something to do with TextPad confusing the file's path and the output from the file itself.

Thanks,
DrX
User avatar
bbadmin
Site Admin
Posts: 938
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Find in Files Bug

Post by bbadmin »

I copied and pasted your search results to the Search window (after making it writable and then back to read-only), then double clicked one of the lines. I obviously don't have those files, so this is what I got:

Screenshot 2025-03-23 155647.png
Screenshot 2025-03-23 155647.png (76.98 KiB) Viewed 3490 times

The filename and line number were matched, as expected, so I don't understand why it's not working for you.
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Re: Find in Files Bug

Post by Drxenos »

Here is a screenshot after I double clicked. Note the status line. If I copy/paste one of the paths into the open dialog, the file opens fine.
textpad.jpg
textpad.jpg (46.95 KiB) Viewed 3488 times
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Re: Find in Files Bug

Post by Drxenos »

FYI: if I rename the file so it doesn't exist, I get the same error dialog as you. That is, I only get the error if the file exists.
User avatar
bbadmin
Site Admin
Posts: 938
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Find in Files Bug

Post by bbadmin »

I don't have an N drive, so I created this file and changed N to C in the Search Results:

C:\media-root\Config\Scripts\dump_hb_cropping.sh

TextPad opened that file when double clicking it in Search Results.

"Cannot jump to item under the cursor" is output if you double click anything in Search Results which does not look like a filename followed by a line number in brackets, followed by a colon, or after reporting why the file couldn't be opened. Maybe there's a mismatch between where you and TextPad think the mouse is being clicked.

Here's some things you could try:
  • Position the caret on the line using the keyboard and then press Enter.
  • Insert blank lines between the matched lines (i.e. double space them).
  • Increase the font size.
  • Change the font. (I use Consolas Regular 10pt.)
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Re: Find in Files Bug

Post by Drxenos »

I copied them to C\tmp and it works. I don't under why it doesn't work from my N: drive (a network drive). They open just fine, otherwise.
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Re: Find in Files Bug

Post by Drxenos »

Weird, your suggestion of putting the caret on the line and pressing enter worked, but only once. Subsequent tried do not open the file.
User avatar
bbadmin
Site Admin
Posts: 938
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Find in Files Bug

Post by bbadmin »

Very weird! Have you tried restarting TextPad and doing the same search? Rebooting your PC?
User avatar
Drxenos
Posts: 217
Joined: Mon Jul 07, 2003 8:38 pm

Re: Find in Files Bug

Post by Drxenos »

bbadmin wrote: Mon Mar 24, 2025 9:42 am Very weird! Have you tried restarting TextPad and doing the same search? Rebooting your PC?
It does it on two different machines with two different versions of TextPad (8 & 9), but I will give it a try.

Thanks,
Post Reply