3705 Commits

Author SHA1 Message Date
Don Ho
b3110cdccf Notepad++ 8.7.4 release 2024-12-05 03:14:51 +01:00
Don Ho
11a02f69c8 Fix regression of multi-line tabbar height not updated after closing
Fix regression of multi-line tabbar height not updated after "Close all to the Right" command.

Fix #15905, close #15906
2024-12-04 21:33:56 +01:00
xomx
da79968bd4 Add some more Debug Info
+ Placeholders
+ DirectWrite
+ Multi-instance Mode
+ File Status Auto-Detection
+ Dark Mode

Fix #15903, close #15904
2024-12-04 16:19:01 +01:00
Don Ho
3426d58339 Fix applying MS-Dos style displayed incorrectly issue 2024-12-03 18:36:08 +01:00
Don Ho
dd0b557e14 Fix encoding of nfo file cannot be changed bug
Fix #8823, fix #9153, fix #13905, close #15902
2024-12-03 17:00:53 +01:00
Don Ho
28244a5996 Buffer small refactoring
Close #15895
2024-12-03 16:16:23 +01:00
pawelzwronek
2ed30a53ee Fix the extension defined by user not override language default extension
Check user defined extensions for styles first when detecting lang from extension.

Fix #8035, fix #8304, fix #15826, fix #10609, close #15888
2024-12-02 16:55:52 +01:00
Don Ho
a7e2faf868 Notepad++ 8.7.3 release 2024-12-01 17:05:43 +01:00
xomx
b43eba3f4b Fix docked panels invisibility in multiinst mode
When Notepad++ was set to "Always in multi-instance mode" and the 1st instance has been minimized to the task-bar, then the other instance's docked panels were invisible.

Fix #15873, and fix many Community reports like this link: https://community.notepad-plus-plus.org/topic/26164/v8-7-search-results-missing
2024-11-29 18:04:00 +01:00
Don Ho
dc883d94d3 Fix a crash while disabling "Pin tab" feature
Fix #15860
2024-11-29 01:18:27 +01:00
Don Ho
61a1ca89ff Add "Close All BUT Pinned" command
Close #15863
2024-11-28 21:49:05 +01:00
xomx
6229e0f5d4 Fix regression: Drag&drop a folder in Notepad++ launch redundant dialog
The regression is introduced by commit: c021c86195

Only returning BUFFER_INVALID in FileManager::loadFile immediately if the file size check == -1. This is a must here because of the following code does not expect such -1 in fileSize.
But an error msg is not appropriate here, as it could also be a legal attempt to open a dir (with files inside) or an attempt to use the N++ globbing feature.
This early return also speeds up the loading stage a bit.

Fix #15869, close #15870
2024-11-28 19:51:00 +01:00
xomx
b1237df06a Fix a possible buffer overflow issue
Fix possible DockingManager::FindEmptyContainer() buffer overflow.

Fix #15850, close #15851
2024-11-28 18:07:04 +01:00
Don Ho
287c85f8f0 Add Pin/Unpin Tab context menu item
Close #15852
2024-11-27 20:01:54 +01:00
Alan Kilborn
2c1212cba5 Rename an option in Preferences dialog to fit other settings
Rename 'Darken inactive tabs' to 'Change inactive tab color' and add "Go to Settings" for "inactive tab" in Style Configurator.

Fix #15800, close #15840
2024-11-27 18:46:04 +01:00
Don Ho
aaf3b3906e Notepad++ 8.7.2 release 2024-11-27 04:15:57 +01:00
Don Ho
ae56752472 Fix "Reduce Tabbar" option on/off not changing to needed tab width
Fix: https://community.notepad-plus-plus.org/topic/26388/notepad-v8-7-2-release-candidate/17?_=1732420272946
2024-11-25 17:31:38 +01:00
Don Ho
7af3c104d5 Fix copied paths repeated for "Copy Selected Pathname(s)" in Search results
Fix: https://community.notepad-plus-plus.org/topic/26388/notepad-v8-7-2-release-candidate/11?_=1732379132698

Fixed by: af2b90f0a5 (r149445528)
2024-11-23 17:50:06 +01:00
Don Ho
09332d6f98 Promote Pin Tab feature
Fix: https://community.notepad-plus-plus.org/topic/26388/notepad-v8-7-2-release-candidate/8?_=1732379132695
2024-11-23 17:24:22 +01:00
Don Ho
c1244b076a Remove unnecessary translation
ref: c021c86195 (r149366417)
2024-11-22 03:10:54 +01:00
WildByDesign
dad2353a1b Update Record macro toolbar icon for dark mode
Close #15818
2024-11-19 16:01:30 +01:00
xomx
c021c86195 Code enhancement for file checking
Add missing dwFileAttributes init to INVALID_FILE_ATTRIBUTES.

Close #15820
2024-11-19 15:44:13 +01:00
Don Ho
8f0484caf3 Fix Ctrl-C not doing copy from Search result issue (part 2)
Fix using F7 to switch in Search results not working with Ctrl-C issue.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15739#issuecomment-2481400295
2024-11-19 02:52:48 +01:00
Don Ho
af2b90f0a5 Add ability to open/copy selected files from Search-results (2)
Restoring the ability of copying untitled document name.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15741#issuecomment-2481665911
2024-11-18 16:52:26 +01:00
Don Ho
467182602a Fix selected pathnames in search results localization issue
Bug introduced by commit: b8224808bd (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472L1722)

Fix by https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15741#issuecomment-2480350071

Close #15813
2024-11-17 16:54:07 +01:00
pawelzwronek
30e1319ea8 Fix empty.ico - removed random semi-transparent pixel
Close #15811
2024-11-17 16:38:47 +01:00
Don Ho
c24444acfe Fix Ctrl-C not doing copy from Search result issue
Solution from: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15739#issuecomment-2479671245

Fix #15739, close #15810
2024-11-16 22:09:10 +01:00
pawelzwronek
eeb4753044 Add "Minimize / Close to" option for System tray
Fix #15771, close #15785
2024-11-14 16:56:02 +01:00
Alan Kilborn
b8224808bd Add ability to open/copy selected files from Search-results
Add ability to open/copy selected files from Search-results, not always ALL files.

Fix #15741, close #15763
2024-11-14 16:01:02 +01:00
Don Ho
796b3a40b7 Highlight inactive darken tab on mouse hover
Fix #15791, close #15794
2024-11-13 18:04:46 +01:00
Don Ho
f607044da0 Fix wrong position of pin button while close disabled and pin enabled
After disable close button and enable pin button, relaunch Notepad++ will make wrong position of pin button on tab.
This commit fix the bug.
2024-11-13 02:11:20 +01:00
Don Ho
5f4610293c Hide inactive tab buttons (Close & Pin)
Fix #15298, close #15781
2024-11-12 04:38:34 +01:00
Don Ho
55df104606 Refactoring (part 2) 2024-11-10 03:51:33 +01:00
Don Ho
c5094fee8b Refactoring to move the message definitions to the right place
Move the message definitions of toolbar & tabbar to the right place.

Close #15775
2024-11-10 00:18:28 +01:00
Don Ho
ce58b424bd Add Pin tab feature
Fix #5786, close #15750
2024-11-09 03:59:20 +01:00
Coises
5d29f72464 Fix replace field focus losing when Notepad++ is switched back
Fix #6021, close #15756
2024-11-04 19:18:48 +01:00
Don Ho
ba3b4578b2 Notepad++ 8.7.1 release 2024-11-04 14:39:21 +01:00
Don Ho
682570ea6d Fix saved file from new empty doc keeping created time tip issue
Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/11?_=1730165549940
2024-10-31 00:13:35 +01:00
Don Ho
2aa47e3219 Revert "Fix saved file from new empty doc keeping created time tip issue"
This reverts commit 93ecbb004c8a216d17a8b940572a388f010c94ee.
2024-10-31 00:12:37 +01:00
Don Ho
93ecbb004c Fix saved file from new empty doc keeping created time tip issue
Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/11?_=1730165549940
2024-10-30 01:53:07 +01:00
xomx
62e6a5378a Fix SaveAs dialog "Append extension" option not working issue
Fix the regression introduced in commit:
f884a39dd4

Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/4
Close #15745
2024-10-29 01:24:22 +01:00
Czespo
7dbb459b55 Fix URL parsing issue with '?' after '#'
Fixes #13583, close #15670
2024-10-22 18:49:19 +02:00
Don Ho
c224a9630e Fix modified Find dialog status msg not being remembered throu sessions
Fix #15724
2024-10-21 17:07:10 +02:00
Don Ho
ad34461261 Make left behide hide line close marker removable
Fix #15713
2024-10-18 03:57:03 +02:00
Adrian Kulawik
5d2bea5b97 Fix hanging issue while hiding lines
Fix #15630, close #15632
2024-10-18 03:55:50 +02:00
Don Ho
bfe835e8a4 Fix wrong messages for replacement status 2024-10-16 16:56:26 +02:00
Don Ho
901014746c Fix Find dialog status bar wrong messaging
Fix #15662
2024-10-16 05:27:29 +02:00
Don Ho
1890ea65f9 Avoid user confusion between Global override & Default Styles
Fix #15640, close #15706
2024-10-16 00:49:44 +02:00
Don Ho
dc9f58ddac Reduce network file hanging issue due to win32API GetFileAttributes cache (unsynchronized).
STR:
1. Open a network file.
2. Close Notepad++ to have it in the session.
3. Disconnect the network, and launch Notepad++ immediately.
4. Around more than 1 minute's delay, then the "Error" dialog displayed.

The reason for the hanging is that the network file was incorrectly detected by doesFileExist (GetFileAttributesEx) as present, leading Notepad++ to attempt opening a non-existent file with _wfopen. This issue seems to stem from a caching mechanism within the IO function (GetFileAttributesEx). When the network disconnects, the cache is not immediately cleared, causing GetFileAttributesEx to falsely report that the file exists. Consequently, when Notepad++ is launched after a network disconnection, GetFileAttributesEx retains its cache, indicating the file exists, while _wfopen fails to locate the network resource, resulting in a hang.

Unfortunately, there's no efficient solution for this problem. The commit's remedy is to check if the file is on the network and whether its directory still exists. If the directory doesn't exist, we avoid calling _wfopen. We verify the directory's existence instead of the file itself because the cache issue with GetFileAttributesEx occurs before _wfopen is executed. Checking the directory avoids the cache problem due to the identical argument being used.

I've tested this remedy in debug mode, and it works fine. However, the problem persists in release mode. Despite this, I believe it's worth keeping this solution, as it provides some protection in a variable network environment, potentially mitigating the issue when it arises.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15658#issuecomment-2386662974

Improve #4306, #6178, #8055, #11388, #12553, #15540, close #15701
2024-10-15 21:27:44 +02:00
Don Ho
5e3ee3e0e4 Rename variable & enhance the code 2024-10-12 19:32:37 +02:00