francostellari / NppPlugins

Other
105 stars 6 forks source link

Take Notes 'Open' toolbar icon does not open notes folder #35

Open rob040 opened 1 year ago

rob040 commented 1 year ago

Take Notes 'Open' toolbar icon does not open the notes folder but the current working directory. The 'New' toolbar icon however, does create and open new file in the notes folder.


I have configured in Options: Folder: %USERPROFILE%\Documents\Notes Note name: note_$word$_$date$_$time$ Note extension: .txt

Running Notepad++ v8.4.6 (32-bit) on Windows 10 64-bit

francostellari commented 1 year ago

Hi I can see the problem as well but I'm currently unable to solve it. The lpstrInitialDir field of OPENFILENAME does not seem to be used by GetOpenFilenName(). I tried several workaround but N++ always points the dialog to the last used folder. While I thought it used to work at one point, I have also been unable to find an older version of N++ or TakeNotes that would solve the problem.

francostellari commented 1 year ago

@chcg are you aware of what may prevent my open dialog box from using the specified "lpstrInitialDir"?

chcg commented 1 year ago

@francostellari I tested with N++ 8.5.2 and Take Notes 1.24 on Win 10 64bit and for me opening the specified dir seems to work after creating it. In case the specified dir doesn't exist the dialog seems to open with a different directory likely the last used one.