6378 Commits

Author SHA1 Message Date
Alan Kilborn
d7ddb6ea3a Enhance UX in "Find in file" action while Directory field is empty
Move the input focus to Directory edit control if Directory field is empty while launching Find in files search.

Fix #16051, close #16057
2025-01-13 08:28:03 +01:00
Don Ho
e28324b8d0 Fix reload losing syntax highlighting regression
The regression is introduced by:
de9ffd2ea8

Fix #16027, close #16042
2025-01-11 04:48:57 +01:00
rdipardo
9e1db77f81 Fix literals wrong style for server side JavaScript
Add styles for SCE_HJ_TEMPLATELITERAL and SCE_HJA_TEMPLATELITERAL in styles.xml.

Fixes #15821, close #15822
2025-01-09 11:29:05 +01:00
Mmaloy
4fc044ed67 Add "color-scheme" keyword for CSS
Fix #15825, close #15930
2025-01-09 11:06:29 +01:00
Alan Kilborn
104cc8af73 Fix crash while passing invalid buffer with NPPM_SETUNTITLEDNAME
Fix #15970, close #15975
2025-01-09 10:55:03 +01:00
Don Ho
d9d7c4fbb3 Fix vertical tab crashes on enabling/disabling pin tab feature
Fix #16033, close #16034
2025-01-08 18:50:36 +01:00
Alan Kilborn
4b637b4fc8 Fix wrong replace all while 2nd time replace in selection
Prevent search from running with unintended "In selection" parameter.

Fix #14897, fix #14624, fix #15992, close #15995
2025-01-08 09:00:46 +01:00
Christian Grasser
a6103d5de7 Update to scintilla 5.5.3 & Lexilla 5.4.1
Release 5.5.4 (https://www.scintilla.org/scintilla554.zip)

    Released 18 December 2024.
    Update to Unicode 15.1. Issue #285.
    Improve performance of SCI_BRACEMATCH. Feature #1533.
    Improve performance of DBCS text. Feature #1535.
    Fix wrapping removed lines. Bug #2456.
    Fix moving line down to empty final line and moving empty final line up. Bug #2457.
    On GTK, allow middle click to insert multiple times within a document. Geany Issue #2629.

Release 5.4.2 (https://www.scintilla.org/lexilla542.zip)

    Released 18 December 2024.
    Update to Unicode 15.1. Issue #285.
    Lexer added for Nix "nix". Pull request #282.
    JavaScript: Use correct SCE_HJA_TEMPLATELITERAL style for server-side template literals in HTML instead of client-side style. Issue #286.
    JavaScript: Use correct SCE_HJ_SYMBOLS style for '.' after regex instead of SCE_HJ_WORD. Prevent empty word assertion when non-word character after regex flag. Issue #289.
    PHP: Fix unstable lexing with substyled keyword and unterminated string. Issue #288.
    Rust: Add C string and raw C string literal styles SCE_RUST_CSTRING and SCE_RUST_CSTRINGR. Pull request #292, Issue #268.
    TOML: Don't treat keys without values as errors. Pull request #283.
    Zig: Add SCE_ZIG_IDENTIFIER_STRING for identifiers expressed as strings. Pull request #287.

Fix #15817, fix #10528, fix #15801, close #15982
2025-01-08 07:14:08 +01:00
Don Ho
7544df5348 Fix regressionn while disabling clickable link
The regression was introduced by commit 71be434a334d300487c5d23114dc4afd084b94aa

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15926#issuecomment-2572268207

Close #16025
2025-01-07 05:18:31 +01:00
Don Ho
71be434a33 Improve performance while disabling clickable URL link
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15981#issuecomment-2570310216

Close #16021
2025-01-06 04:40:05 +01:00
Don Ho
c5dd85cd93 Improve performance: Optimize activateBuffer function
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15952#issuecomment-2567521808

Close #16010
2025-01-03 14:08:12 +01:00
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