6167 Commits

Author SHA1 Message Date
Don Ho
c17d1d428d Optimize Scintilla notification code performance (part 2)
Turn off modification events for some Scintilla controls.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15981#issuecomment-2565003286

Close #16009
2025-01-03 08:20:35 +01:00
Don Ho
f40df3cdf1 Optimize Scintilla notification code performance
Treat only main & sub Scintilla views for the most of SCN_* notification:

1. Move all SCN_* together.
2. Add a if (!notifyView) return FALSE; in the begining of case for most of all SCN_* notification.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15981#issuecomment-2565003286

Close #15994
2024-12-31 02:09:54 +01:00
Don Ho
de9ffd2ea8 Enhance large files with syntax highlighting performance
Fix #15952, close #15981
2024-12-30 16:06:35 +01:00
Don Ho
8a8f8b2a89 Notepad++ 8.7.5 release v8.7.5 2024-12-25 05:34:02 +01:00
Don Ho
50c2c3a74a Fix regression "Open Selected PathName(s)" command not working with Ctrl-A
The regression is introduced by:
467182602a

The solution is from:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15960#issuecomment-2553746218

Fix #15960
2024-12-21 03:53:45 +01:00
xomx
0447dc8988 [xml] Update czech.xml to v8.7.5
Close #15971
2024-12-21 03:08:52 +01:00
Matteo Concato
6a8e0d4080 [xml] Update italian.xml
Close #15972
2024-12-21 03:04:12 +01:00
~GOLEM~
0692b4fdbe [xml] Update russian.xml v 8.7.4
Close #15973
2024-12-21 03:00:10 +01:00
rddim
1372001473 [xml] Update Bulgarian localization
Close #15974
2024-12-21 02:57:15 +01:00
Don Ho
2f1cdbbef8 Fix nfo file losing modification issue (regression)
The regression is introduced by:
dd0b557e14 (diff-d88ddee57a027ab23daf332c4778ced0cee352edcb34efdda1b218e8a75c61b2R1864)

Fix #15964, close #15969
2024-12-20 10:58:33 +01:00
Andrei Miloiu
a664213210 Update romanian.xml
Close #15882
2024-12-20 07:46:18 +01:00
Krazal
6c6532b254 Update hungarian.xml
Updates for v8.7.3:
• Updated header and versioning to be more trackable/understandable
• Added translation of missing (un)pin operations
• More consistent translation of tab operations

Close #15910
2024-12-20 07:44:05 +01:00
Radoš Milićev
cfdbfc139a Update Serbian to v8.7.4
Close #15911
2024-12-20 07:41:05 +01:00
schnurlos
5c3d481509 [xml] Update german.xml
Following 83080c3404

Close #15927
2024-12-20 07:33:20 +01:00
Marcellomco
7816c50b06 Update brazilian_portuguese.xml
Added translation for "Fix the localization files to match the new behaviour"

Close #15931
2024-12-20 07:00:59 +01:00
kubalav
795129f4e5 [xml] Update Slovak translation
Close #15933
2024-12-20 06:58:11 +01:00
yasmise
017837f932 [xml] Update japanese.xml
Update translation texts for:
* Enhance "Follow current doc." GUI action/option in Find in files (6453379)
* Make translations clear.

Close #15962
2024-12-20 06:47:16 +01:00
A. Regnander
a6a300dd97 Update swedish.xml
Close #15965
2024-12-20 06:44:37 +01:00
Don Ho
f205b12230 Fix UDL comment & comment line conflicting
Fix #11897, close #15961
2024-12-20 04:37:38 +01:00
Don Ho
cb1172e2a4 Enhabnce updateTimeStamp fuction
Follow the disscussion:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15936#discussion_r1886067242

Close #15968
2024-12-20 04:34:56 +01:00
Don Ho
f535087e5d Code enhancement: remove obsolete code
The removed code in this commit were added for working around Microsoft ReadDirectoryChanges notification issue:
1a97d3c854
Apparently the issue has been fixed. The following issue has been tested with this commit, no issue found:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5591#issuecomment-487313886

This commit could remedy #15819 partially.

Close #15967
2024-12-20 04:32:50 +01:00
xomx
de1a04038b Fix network file wrong modification detection (regression from v8.7.1)
- increased DEFAULT_MILLISEC constant from 1000 to 3000 (some slower networks obviously cannot respond within the previous 1sec response timeout).
- the problematic situation was apparently made worse by the fact that the Buffer::checkFileState() did not issue one GetFileAttributesEx call but also an unnecessary second one (this was probably caused by an incorrect transcription of the previous version of this func for the new non-blocking thread method of calling the GetFileAttributesEx).
- other problem was that the checking func did not check at all whether the threaded call to the GetFileAttributesEx succeeded or had to be forcibly terminated from the main app thread and expected successful calling only.
- the nppLogNetworkDriveIssue logging has been enhanced.
- added option to check possible WIN32API error code of the threaded GetFileAttributesEx call from the main N++ thread.

Fix #15819, close #15936
2024-12-19 05:21:23 +01:00
Don Ho
0c4bb240eb Fix a typo for Kabyle identifier
Fix #15947
2024-12-18 06:02:24 +01:00
Christian Grasser
d6a32d2f0c Added Visual Basic function list + unittest case
Fix #3239, close #15953
2024-12-18 02:28:24 +01:00
pryrt
f5f7c14853 Update Verilog stylers/themes
Update verilog stylers/themes to remove conflicting styleID=2 style named TAGNAME.

Fix #15955, close #15957
2024-12-18 02:16:33 +01:00
Don Ho
a0bb55f0ed Remove the obsolete entry from localization files 2024-12-17 17:57:23 +01:00
Alan Kilborn
6453379ac8 Enhance "Follow current doc." GUI action/option in Find in files
Fix #15908, close #15938
2024-12-17 14:02:07 +01:00
notdodgeball
06a03ea41e Fix Reload Workspace not working
In case of reloading, openWorkSpace() needs to be called forced=true always.

Fix #11551, close #15946
2024-12-17 06:10:16 +01:00
Alan Kilborn
471a308bca Improve Copy-Selected-Lines
Follow the spec: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15803#issuecomment-2515580625

Fix #15803, close #15854
2024-12-14 04:38:24 +01:00
Don Ho
10ae99e790 Fix unsaved documents lost on next launch if portable npp change path
When Notepad++ portable version changes its path (move/rename), the periode backup files (unsaved documents) are lost on the next session, due to the absolute paths in session files. This commit fixes the issue by ensuring the backup path matches with such documents.

Fix #1587, fix #15886, close #15942
2024-12-12 13:30:05 +01:00
xomx
dc583bf34e Code enhancement: Prevent backup worker thread crash at Notepad++ exit
Use thread safe g_bNppExitFlag and optimize the Notepad_plus::backupDocument worker thread.

Fix: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15681#issuecomment-2403168094, close #15935
2024-12-11 05:16:29 +01:00
Don Ho
fdf3ed2714 Add Swift, TypeScript, and Go for advanced Auto-indent
Fix #15900, close #15925
2024-12-09 23:30:42 +01:00
Don Ho
83080c3404 Fix the localization files to match the new behaviour 2024-12-09 22:47:39 +01:00
xomx
d6169c418e Fix unusuability after deleting files in split view
Update _mainWindowStatus before switchEditViewTo for fixing hidden document-view after deleting files in both views from outside.

Fix #15922, close #15923
2024-12-09 02:04:51 +01:00
Christian Grasser
af9af11aec Refactoring for the better performance & smaller binary size
1. remove deprecated std::codecvt
2. replace s2ws -> string2wstring and ws2s -> wstring2string

Fix #15898, close #15913
2024-12-08 16:16:14 +01:00
xomx
4972dcf4b3 Add "Show details" functionality in installer
Fix #15718, close #15719
2024-12-07 16:07:32 +01:00
Don Ho
b3110cdccf Notepad++ 8.7.4 release v8.7.4 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
Piotr Kostrzewski
ec0b2b5aa2 Update polish.xml
Close #15862
2024-12-04 21:03:45 +01:00
Hugo Carvalho
8cd3860cec [xml] Update Portuguese.xml
Close #15849
2024-12-04 20:48:45 +01:00
schnurlos
136c8d1197 [xml] Update german.xml
Following 2c1212cba5 & 287c85f8f0

Close #15865
2024-12-04 20:22:23 +01:00
Njardarheim-1337
c0cdb2e432 Updated Norwegian translation 8.7.2
Close #15866
2024-12-04 20:19:05 +01:00
Tmp341
10627b02de [xml] Update Turkish localization
* Used [Compare](bfe27cc..f18d99e (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472)).

Close #15896
2024-12-04 20:14:57 +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 v8.7.3 2024-12-01 17:05:43 +01:00
Don Ho
1c3c2f8d3b Update localization files 2024-11-30 15:39:00 +01:00