Skip to content

Find-in-Files "Follow current doc" not working when absolute Default Directory set #8045

@sasumner

Description

@sasumner

Description of the Issue

When a Default Directory (Open/Save) setting is set to be an absolute folder path (the 3rd of 3 radio buttons) in Preferences > Default Directory > Default Directory (Open/Save), the Follow current doc. checkbox on the Find in Files tab of the Find window DOES NOT work to change the Directory: box value for Find in Files. The Directory: box value is always set to the chosen absolute path in the Preferences.

Steps to Reproduce the Issue

  1. Open Preferences > Default Directory and tick the 3rd (lowest) of 3 radio buttons, and provide an absolute path, for example: W:\
  2. Open a file on C: drive, for example, readme.txt that comes with Notepad++
  3. Invoke Find in Files by pressing Ctrl+Shift+f
  4. Tick the Follow current doc. checkbox on the Find in Files tab. Or, tick and untick it a few times, and observe that the C: drive folder path of readme.txt NEVER appears in the Directory: box, as it should.

Expected Behavior

The folder path of the active file in the editor should appear in the Directory: box after an untick/tick cycle of Follow current doc.

Actual Behavior

The correct folder path never appears in Directory:.

Debug Information

Notepad++ v7.8.5 (32-bit)
Build time : Mar 4 2020 - 11:04:20
Path : C:.......\npp.7.8.5.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.973
Plugins : mimeTools.dll NppConverter.dll NppExport.dll

Relevant Screenshots

image

image

Additional information

Even if the Preference settings is moved away from the 3rd (bottommost) absolute path setting for Default Directory (Open/Save), if there is ANY TEXT at all in the box to the right of this bullet, then the Follow current doc. checkbox on the Find in Files tab of the Find window DOES NOT work to change the Directory: box value for Find in Files.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions