5812 Commits

Author SHA1 Message Date
Don Ho
f68e1d1fd3 Fix a logic error
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16889#issuecomment-3328064735
2025-09-24 14:54:43 +02:00
Don Ho
f44795a69e Fix column mode pasting to multi-selection issue due to different EOL
Fix #16889
2025-09-24 02:26:52 +02:00
Don Ho
68c27fb143 Fix Pin Tab operation being too long with many opened documents
Remove pinned tab moving forward/backward animation to prevent waiting the operation.

Fix #16117, close #17020
2025-09-23 17:44:29 +02:00
mpheath
3546a4d97e Fix DOCTYPE styling in xml and html
Fix #17012, close #17018
2025-09-22 19:53:07 +02:00
Don Ho
9510f75fda Enhance Window dialog "File Modified Time" sorting capacity
This commit enhance the commit:
5528fed4b0

Make the modified time on Notepad++ instead only on file system, so the new (untitled) document can the modified time if snapshot backup is ON.
2025-09-21 20:50:54 +02:00
Get Lit Games
5528fed4b0 Add Window dialog "File Modified Time" sorting capacity
Fix #16953, close #16954
2025-09-21 20:49:53 +02:00
Anthony Lee Stark
105a141a43 Fix double clicking on border creates a new tab issue
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16561#issuecomment-2938756492
Close #16755
2025-09-19 17:43:41 +02:00
Christian Grasser
884f8cdc06 Fix C# function list not working with comments
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3643#issuecomment-1455254475

Close #16386
2025-09-18 22:53:51 +02:00
Don Ho
03d1268b44 Add function list ability for CSS
Close #17006
2025-09-18 15:03:32 +02:00
Don Ho
be59048c5e Fix filling Find what length not accurate problem
+ a lot of refactoring

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16955#issuecomment-3287770729

Fix #16955, fix #16992, close #17001
2025-09-18 01:14:13 +02:00
Don Ho
7a1cde702a Adjust "Find what" tooltip position for not hidding search settings
Fix #16979, close #16988
2025-09-12 20:31:21 +02:00
Don Ho
962a17e9f6 Allow user to customize max selected chars to auto-fill "Find what" field
Add "Max Characters to Auto-Fill Find Field from Selection" option to allow users to customize max selected characters for auto-filling "Find what" field in Find dialog.
The value can be set from 1 to 16383 characters (not byte).

Note that if "Select Word Under Caret when Nothing Selected" is ON, the word's length in character will be limited also by the set value.

Fix #16955, close #16983
2025-09-11 00:13:23 +02:00
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 2025-08-14 01:32:08 +02:00
Don HO
faaa9bee78 Notepad++ 8.8.4 release 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