6527 Commits

Author SHA1 Message Date
Don Ho
d4442b9d15 Enhance Ctrl-F to copy to Find What field behaviour
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16976#issuecomment-3265850195
2025-09-08 16:19:40 +02:00
Don Ho
cfc3fb6cf5 Improve copy multilines to comboboxs behaviour in Find Replace Dialog
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16952#issuecomment-3263821316

Close #16976
2025-09-08 13:04:41 +02:00
Alan Kilborn
5c6f89df32 Add capacity of pasting multiline into Find/Replace fields
Fix #16952, close #16956
2025-09-06 22:37:27 +02:00
xomx
de7aa5ae7a Add NPP_UAC_CREATEEMPTYFILE
+ minor fixes for FileManager::deleteFile

Follow 4b0fc8d316

Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16933#issuecomment-3247142370
2025-09-04 17:16:21 +02:00
PeterCJ
b3884c18af Add NPPM_GETNPPSETTINGSDIRPATH message to get Notepad++ settings directory path
Fix #16944, close #16946
2025-09-04 02:55:28 +02:00
xomx
4b0fc8d316 Improve Notepad++ UAC operations largely
This native implementation of UAC (User Account Control) operations in Notepad++ is designed not only to substitute the deprecated & problematic NppSaveAsAdminPlugin - which interferes with the FlushFileBuffers WINAPI used by Notepad++ - but also to support any future Notepad++ feature which may require elevated privileges.

When a user attempts an operation that fails due to indufficient rights, the system performs only that specific requested action with elevated privileges. After completing it, the elevated Notepad++ instance immediately exits, returning the user to his/her original Notepad++ instance seamlessly, as if nothing unusual occured.

This mechanism is independent of any Notepad++ features such as backup-snapshot or multi-instance mode. All UAC-related operations are executed at the very beginning of the wWinMain function, ensuring they are not affected by mutex handling, or other internal logic.

Importantly, this approach eliminates the need for a separate signed helper executable like NppAdminAcess.exe. Everything is handled within the main Notepad++ project, just as before.

In this commit, the NPP_UAC_SAVE, NPP_UAC_SETFILEATTRIBUTES & NPP_UAC_MOVEFILE are implemented.

Summary of the changes:

added last _dwErrorCode in:
.\PowerEditor\src\MISC\Common\FileInterface.h
.\PowerEditor\src\MISC\Common\FileInterface.cpp

FileManager::saveBuffer adjustment for the NPP_UAC_SAVE_SIGN in:
.\PowerEditor\src\ScintillaComponent\Buffer.cpp

N++ UAC ops signatures definitions & new invokeNppUacOp common func, toggleReadOnlyFlagFromFileAttributes func adjustment for the NPP_UAC_SETFILEATTRIBUTES_SIGN in:
.\PowerEditor\src\MISC\Common\Common.h
.\PowerEditor\src\MISC\Common\Common.cpp

only to fix Notepad_plus::doSave for isEndSessionCritical() in:
.\PowerEditor\src\NppIO.cpp

added getLastFileErrorState() & m_dwLastFileError in:
.\PowerEditor\src\Utf8_16.h
.\PowerEditor\src\Utf8_16.cpp

UAC ops handling at the very start of wWinMain + added new NPP_UAC_ handling nppUacSave and nppUacSetFileAttributes funcs in:
.\PowerEditor\src\winmain.cpp

Fix #886, fix #8655, fix #9561, fix #10302, fix #14990, fix #15008, fix #15137, fix #15323, close #16933
2025-09-02 19:20:59 +02:00
Don HO
dc58d41359 Enhance Column Editor
1. Change the order of GUI items to make the insert mode (dec/hex/oct/bin) more explicit.
2. Reduce the showing time of the warning baloon tip from ~10 seconds to 3.5 seconds.
3. Use ESC keystroke to cancel the warning baloon tip.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16931#issuecomment-3236582042

Note that while the baloon tip showing then clicking on the upper-right 'X', the dialog won't be closed. Instead, the baloon tip will be cancel.
Curiously, clicking on the "Cancel" button under the same context closes the dialog.
The reason could be, while the "Cancel" button being clicked, the focus is changed and the system hides the baloon tip. Whereas the click on the upper-right 'X' doesn't make the focus changed, then the system does nothing.
Anyway such behaviour is a bug, but can happen very rarily.

Close #16959
2025-08-31 12:26:19 +02:00
Don Ho
06750919ac Fix column editor egression: insert column with bad parameters
The regression was introduced by: 1a0e8bea75

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16931#issuecomment-3236873787

Close #16951
2025-08-29 18:52:55 +02:00
PeterCJ
1a0e8bea75 Use radix for GUI input fields to match the output in Column Editor
Use hex/oct/bin for GUI input fields, to match the output, and allow choosing a-f vs A-F for output.

Fix #16912, close #16931
2025-08-29 13:15:47 +02:00
PeterCJ
dab30de9c6 Fix font size inconsistencies
No fontSize definitions except in Default Style, and Default Style always = 10pt

Fix #16924, close #16928
2025-08-20 14:07:05 +02:00
Alan Kilborn
5933f791c4 Prevent stale search-result from making selection inside a multibyte character
Fix #16879, close #16897
2025-08-17 22:40:35 +02:00
Don HO
4467a4c99e Notepad++ 8.8.5 release v8.8.5 2025-08-14 01:32:08 +02:00
Don HO
faaa9bee78 Notepad++ 8.8.4 release v8.8.4 2025-08-12 12:09:17 +02:00
Karlo-F
8b5fafca0b [xml] Update croatian.xml translation
Close #16902
2025-08-10 13:25:49 +02:00
Don HO
b56ac80ff7 Fix MSIX singing issue
"error 0x8007000B: The signature hash method specified (SHA512) must match the hash method used in the app package block map (SHA256)."
"The hashAlgorithm specified in the /fd parameter is incorrect. Rerun SignTool using hashAlgorithm that matches the app package block map (used to create the app package)"

Ref: https://learn.microsoft.com/en-us/windows/msix/package/signing-known-issues

Fix https://github.com/notepad-plus-plus/nppShell/issues/70
2025-08-10 13:08:47 +02:00
xomx
5542066816 [xml] Update czech.xml
Close #16906
2025-08-10 12:35:15 +02:00
wzsx150
aed12006a6 Update chineseSimplified.xml
Added and corrected some translations.

Close #16909
2025-08-10 12:31:24 +02:00
Don HO
df87c76724 Fix "Edit with Notepad++" not removed by uninstaller regression (from v8.8.3)
The regression was introduced by:
889efad2e8 (commitcomment-161831592)

Fix #16896
2025-08-05 18:19:06 +02:00
rddim
67693a84a2 [xml] Update Bulgarian localization
Close #16893
2025-08-03 03:00:36 +02:00
Don Ho
3a90f4f8c3 Make NFO font overridable by adding fontName in Lexer "nfo" of stylers.xml
Fix #16839
2025-08-03 02:49:11 +02:00
ArkadiuszMichalski
559085be82 [xml] Update polish.xml to the latest commit
Close #16890
2025-08-02 18:36:10 +02:00
Tmp341
c9f750fe15 [xml] Update Turkish localization
Close #16793
2025-08-02 04:03:49 +02:00
kubalav
4ddcd0b9a6 [xml] Update Slovak translation
Close #16837
2025-08-02 04:01:48 +02:00
Marcellomco
5f101df77e [xml] Update brazilian_portuguese.xml
Close #16842
2025-08-02 03:59:18 +02:00
yasmise
1ccdacc198 [xml] Update japanese.xml
Close #16844
2025-08-02 03:56:45 +02:00
A. Regnander
fb5f1171b9 Update swedish.xml
Close #16843
2025-08-01 21:23:32 +02:00
~GOLEM~
1afd680efb [xml] Update russian.xml
Close #16851
2025-08-01 21:18:32 +02:00
schnurlos
9e7ab3f0fc [xml] Update german.xml
Close #16853
2025-08-01 21:05:08 +02:00
Patriccollu
8c0db1450b [xml] Update Corsican translation for Notepad++ 8.8.3
Close #16857
2025-08-01 20:55:20 +02:00
Andrei-Valentin Miloiu
a75832cf93 Update romanian.xml
Close #16858
2025-08-01 20:45:40 +02:00
Thomas De Rocker
8abf5814fa Update dutch.xml
Close #16866
2025-08-01 20:41:58 +02:00
Krazal
95996b9db9 [xml] Update hungarian.xml
• Make translation up-to-date (see: d6ad51a, f5a34dc, 22c5063)
• Fix too long (truncated) setting labels/options

Close #16880
2025-08-01 20:39:30 +02:00
PeterCJ
6f65d6fa48 Add pyi extension to Python
Fix #16623, close #16888
2025-08-01 18:07:05 +02:00
Don Ho
76c3e30fe3 Fix JavaScript indent settings incorrect behaviour
1. More understandable naming: "javascript.js" to "JavaScript".
2. Disassociate the value of Embedded JS & JavaScript, and remove Embedded JS from the list.
3. Prevent from eventual crash due to null pointer.

Fix #16884, close  #16885
2025-07-31 18:30:31 +02:00
xomx
c710439b51 Fix possible heap memory leak
Close #16883
2025-07-31 17:41:19 +02:00
Christian Grasser
c367ab8966 Some code improvements
Close #16876
2025-07-30 00:06:08 +02:00
Don Ho
bf6fd373d4 Fix JavaScript listed twice in Language Preferences issue
Fix #16861, fix #4521
2025-07-29 20:23:37 +02:00
Don Ho
8fd2d12ab5 Fix crash on indent settings after changing lang name in lang.xml
Fix #16881, close  #16882
2025-07-29 18:53:20 +02:00
Don Ho
07a49ca0f1 Reduce stack memory usage to eliminate the compiling warning
Follow 36aeb8f681

Close #16874
2025-07-27 16:24:13 +02:00
Don Ho
36aeb8f681 Refactoring: use dynamic allocation to reduce stackoverflow risk
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16865#issuecomment-3120357091

Close #16871
2025-07-26 19:20:09 +02:00
Don Ho
71fbdae005 Revert "Increase CURRENT_LINESTR variable length of run dialog"
This reverts commit 11bc8107b0947c9b86ce27fd698730497312f65b,
due to the crash caused by stackoverflow.

Fix #16865
2025-07-26 15:40:49 +02:00
Don Ho
11bc8107b0 Increase CURRENT_LINESTR variable length of run dialog
Increase CURRENT_LINESTR variable length from (2048 - 1) to (16384 * 2 - 1).

Fix #16840, close #16859
2025-07-25 14:43:59 +02:00
Don Ho
fe3f609361 Add asNotepad.xml status to Debug Info
Also make debug info readable again.

Fix #16795
2025-07-24 18:46:29 +02:00
Don Ho
22c5063d26 Increase search input length from 2046 to 16383
* The search input length has been extended from (2048 - 1) up to (16384 - 1) characters.
* For saving find input history, only search strings shorter than 2048 characters will be stored for the next session.
* The tooltip warning is displayed in both cases above.

Fix #16749, fix #1088, close #16855
2025-07-23 21:00:50 +02:00
Don Ho
f5a34dcc9f Enhance "Go to settings": guide users to the related setting explicitly
Fix #16846, close #16847
2025-07-21 23:45:01 +02:00
Don Ho
1582c67b63 Update tip info 2025-07-21 14:37:02 +02:00
Don HO
fe42d71db7 Update MVS to v17.14 (MS Visual Studio Community 2022)
Info:
```
Microsoft Visual Studio Community 2022
Version 17.14.0
VisualStudio.17.Release/17.14.0+36109.1
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

Visual C++ 2022   00482-90000-00000-AA924
Microsoft Visual C++ 2022
...
```

Close #16581
2025-07-20 17:22:56 +02:00
Don Ho
d6ad51a022 Add warning tip for the max length text on search (Find/Replace)
Fix #16749, close #16834
2025-07-20 15:15:11 +02:00
Don HO
0d98bd24f1 Fix -notabbar & asNotepad.xml stop hiding tabbar regression (from v8.7.9)
The regression is due to the refactoring of tabbar:
ff734af115

Fix #16794, close #16825
2025-07-17 17:18:53 +02:00
Don Ho
f897972070 Fix external lexers showing several time in tab_settings
Fix #16462, close #16826
2025-07-17 17:00:10 +02:00