6030 Commits

Author SHA1 Message Date
Don Ho
a866900c8d Make find dlg status msgs color customizable via Style Configurator
Fix #5087, close #15597
2024-09-02 18:51:59 +02:00
Don Ho
43ebe796af Add comments for Style Configurator's parameters 2024-09-01 16:56:06 +02:00
Don Ho
21e5350f90 Refactoring for Find dlg Status messge color 2024-08-31 15:00:11 +02:00
Don Ho
22c03102f2 Recognize Cython files as Python
Fix #3069, fix #3767, close #15591
2024-08-31 00:08:36 +02:00
ozone10
bdf3ccaca9 Fix regression of multiple selections in comboboxes of Find dialog
The regression was introduced from commit e25e15b9b25afee7f56fe6e02ef4a314468f6d7b

Fix #15583, close #15587
2024-08-28 20:41:43 +02:00
Don Ho
446cc980e8 Add new plugin command & notification while native lang being changed
Add new plugin notification NPPN_NATIVELANGCHANGED when the native language has been changed, and add new plugin message NPPM_GETNATIVELANGFILENAME for plugins calling after getting NPPN_NATIVELANGCHANGED notification.

Usage of the command:

	#define NPPM_GETNATIVELANGFILENAME (NPPMSG + 116)
	// int NPPM_GETNATIVELANGFILENAME(size_t strLen, char* nativeLangFileName)
	// Get the Current native language file name string.
	// Users should call it with nativeLangFileName as NULL to get the required number of char (not including the terminating nul character),
	// allocate commandLineStr buffer with the return value + 1, then call it again to get the current native language file name string.
	// wParam[in]: strLen is "commandLineStr" buffer length
	// lParam[out]: commandLineStr recieves all copied native language file name string
	// Return the number of char copied/to copy

Usage of the notification:

	#define NPPN_NATIVELANGCHANGED (NPPN_FIRST + 31)  // To notify plugins that the current native language is just changed to another one.
                                                      // Use NPPM_GETNATIVELANGFILENAME to get current native language file name.
                                                      // Use NPPM_GETMENUHANDLE(NPPPLUGINMENU, 0) to get submenu "Plugins" handle (HMENU)
	//scnNotification->nmhdr.code = NPPN_NATIVELANGCHANGED;
	//scnNotification->nmhdr.hwndFrom = hwndNpp
	//scnNotification->nmhdr.idFrom = 0; // preserved for the future use, must be zero

Fix #15513, close #15582
2024-08-28 17:09:40 +02:00
Alan Kilborn
8e26e08c1c Simplify Python smart indent regex
Fix #15573, close #15574
2024-08-26 18:31:22 +02:00
xomx
d2bb7a2af6 Fix a single undo reverting many changes issue
Fix mismatched SCI_BEGINUNDOACTION:
When there is a SCI_BEGINUNDOACTION without the corresponding SCI_ENDUNDOACTION, it then causes that a single undo reverts many changes in at once.

Fix #9426, close #15577
2024-08-26 17:56:29 +02:00
Don Ho
fb11abc5c0 Add TOML configuration file format
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15564#issuecomment-2305174561

Fix #5631, close #15576
2024-08-26 05:04:06 +02:00
Christian Grasser
b32c07f746 Enhance build in other platforms
Avoid linux issue:
../src/WinControls/DoubleBuffer/DoubleBuffer.cpp:18:10: fatal error: CommCtrl.h: No such file or directory
   18 | #include <CommCtrl.h>
      |          ^~~~~~~~~~~~

Close #15566
2024-08-23 18:03:40 +02:00
ozone10
86adb21480 Improve Styler Configurator performance
ref #15560

Close #15565
2024-08-23 17:56:50 +02:00
Christian Grasser
ad79718fc8 Update to scintilla 5.5.2 & Lexilla 5.4.0
Release 5.5.2 ( https://www.scintilla.org/scintilla552.zip )

    Released 21 August 2024.
    Add SCI_SETCOPYSEPARATOR for separator between parts of a multiple selection when copied to the clipboard. Feature #1530.
    Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its nesting depth.
    Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.
    Add SCI_LINEINDENT and SCI_LINEDEDENT. Feature #1524.
    Fix bug on Cocoa where double-click stopped working when system had been running for a long time.
    On Cocoa implement more values of font weight and stretch.

Release 5.4.0 ( https://www.scintilla.org/lexilla540.zip )

    Released 21 August 2024.
    Inside Lexilla, LexerModule instances are now const. This will require changes to applications that modify Lexilla.cxx, which may be done to add custom lexers.
    Lexer added for TOML "toml".
    Bash: Handle backslash in heredoc delimiter. Issue #257.
    Progress: Fix lexing of nested comments. Pull request #258.
    Force lower-casing of case-insensitive keyword lists so keywords match in some lexers. Issue #259.

Close #15564
2024-08-23 02:59:58 +02:00
Don Ho
d84f9b2048 Fix Styler Configurator performance issue considerably
Improve Styler Configurator modification application performance considerably.

While one of dockable Panels (Folder as Workspace, for example) is loaded heavily, any action (checkboxes & comboboxes) on Styler Configurator reacts very slowly - for example, check "Bold" in "Font Style".
This commit makes difference among the operations, and optimizes each action in Styler Configurator.

Fix #12436, close #15560
2024-08-21 23:24:29 +02:00
Don Ho
c1954e5c44 Fix "User-defined keywords" not being saved properly (Style Config)
When "User-defined keywords" field has been set keywords, removing all keywords then saving doesn't have any change (the keywords are kept after saving). The commit fix it.

Fix #15543, fix #14303
2024-08-16 17:20:20 +02:00
PeterCJ
9e4290094d Add user-defined keyword ability for some supported programming languages
Add new SubStyles and their available keyword lists to specific languages:
- Enable 8 Scintilla's SubStyles (each), which allow for new keyword lists and styles for the languages with SubStyles available: ActionScript, ASP, Bash, C, C++, C#, GDScript, Go, HTML, Java, JavaScript (standalone and embedded), JSP, Lua, PHP, Python, Resource (RC), Swift, TypeScript, and XML.
- The new SubStyles have been added to `langs.model.xml`, `stylers.model.xml`, and the themes, which means users can just use the StyleConfigurator for the SubStyles, just like they do for the original Styles.

Fix #15520, close #15537
2024-08-14 20:01:36 +02:00
WildByDesign
2d79edca95 Enhance FunctionList, FaW & project panels' icons in lite mode
Add Fluent Icons for light mode treeview.

Close  #15541
2024-08-14 15:09:47 +02:00
ozone10
f751ecaf04 Add fluent icons for treeview
ref #14959

Close #15532

Signed-off-by: ozone10 <positronix10@gmail.com>
2024-08-11 23:31:56 +02:00
Alan Kilborn
ae1d09cab8 Improve Python smart indent in case of string
Improve Python smart indent by using style context.

Fix #15534, close #15535
2024-08-11 17:30:59 +02:00
Alan Kilborn
48a2b30c13 Fix Python smart indent wrongly when comment line ends in colon
Fix #15528, close #15529
2024-08-10 00:18:09 +02:00
Don Ho
72751182bf Several enhancements for code - part III 2024-08-06 21:51:07 +02:00
Don Ho
bf72b5ec4a Several enhancements for code - part II 2024-08-05 21:22:45 +02:00
Don Ho
b78b3bdef0 Several enhancements for code
Close #15516
2024-08-05 15:40:44 +02:00
PeterCJ
9fb538d125 Add file type filters for UDL in Save dialogs
Fix #8083, fix #11096, close #15490
2024-08-04 12:53:30 +02:00
Alan Kilborn
e17d77ceab Fix edit zone not getting focus while clicking the active tab
Move input focus to editor when clicking on already-active tab.

Fix #8446, close #15508
2024-08-03 12:29:22 +02:00
Don Ho
a16261caaa Add customizable option for individual tab color
Fix #12156, close #15509
2024-08-03 00:12:23 +02:00
Don Ho
29ff2da823 Fix Style Configurator regression: "URL hovered"'s "Go to Settings" not working
Fix #15493
2024-07-28 21:46:33 +02:00
Don Ho
6b97e68cbb Refactoring - make tab color code on its correct place 2024-07-28 12:34:30 +02:00
Don Ho
6556b17ee2 Fix a typo; Make a function name & comment more accurate 2024-07-28 11:40:38 +02:00
Alan Kilborn
bfe27cc860 Add the ability to open the copy after "Save a Copy" command
Fix #11861, close #15476
2024-07-26 12:32:21 +02:00
Christian Grasser
d8c6350918 Update to scintilla 5.5.1 & Lexilla 5.3.3
Release 5.5.1 ( https://www.scintilla.org/scintilla551.zip )

    Released 22 July 2024.
    SCI_CUTALLOWLINE added which is similar to SCI_COPYALLOWLINE but also deletes the copied text. Feature #1518.
    Can set font used for autocompletion lists with SCI_AUTOCSETSTYLE. Feature #1523.
    Increase maximum zoom set interactively to +60 points. Feature #1517.
    Fix flickering cursor after some mouse action sequences. Bug #2443.

Release 5.3.3 ( https://www.scintilla.org/lexilla533.zip )

    Released 22 July 2024.
    ASP: Control whether ASP is enabled for XML and HTML with lexer.xml.allow.asp and lexer.html.allow.asp. Issue #252.
    JavaScript: Recognize regular expressions at start or after '>' in JavaScript when lexer is cpp, hypertext, or xml. Issue #250, Bug #918.
    JavaScript: Recognize initial #! 'shebang' line as a comment in standalone files. Issue #253.
    Lua: Fix non-ASCII identifiers joined with '.' or ':'. Issue #242.
    Lua: Fix folding for multi-line SCE_LUA_LITERALSTRING and SCE_LUA_COMMENT when performed incrementally. Issue #247.
    PHP: Control whether PHP is enabled for XML and HTML with lexer.xml.allow.php and lexer.html.allow.php. Issue #252.

Close #15466
2024-07-23 13:07:50 +02:00
Don Ho
d805dcb39c Fix typo & minor changes 2024-07-20 19:55:53 +02:00
xomx
19ddb91a64 Fix cannot paste issue after removing read-only via menu
Syncronize Paste and Undo commands with file buffer read-only status.
Previously, after e.g. removing the read-only flag, file editing was possible immediately, but Ctrl-V was not. At least a cursor movement or switching between the N++ tabs or apps-switching was required (SCN_UPDATEUI message generated...).

Fix https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13742#issuecomment-2233570312, close #15452
2024-07-20 15:29:54 +02:00
xomx
f05f4105de Fix Folder as Workspace for network storage sorting problem
Now Notepad++ ensures that the Folder as Workspace treeview sorting will be ok even for the *nix (Samba, WebDAV, WSL..) storage used.

Fix #10557, fix #15397, close #15457
2024-07-20 14:15:50 +02:00
Jiri Hruska
955b042fcb Enhance DoubleBuffer and fix the debug assert issue
Refactor DoubleBuffer, fix bugs, add comments, allow easy disabling.

Fixes #15363, close #15389
2024-07-19 19:32:54 +02:00
ozone10
bdbd65182c Replace treeview bmp with ico
- use recommended subclassing
- fix missing icons in function list when searching

ref #14959

Close #15405
2024-07-19 19:20:01 +02:00
Don Ho
4cde33048f Use std::wstring instead of generic_string 2024-07-19 04:35:14 +02:00
Don Ho
d13c9bb943 Use wchar_t instead of TCHAR
For making Unicode application status more explicit.

Close #15459
2024-07-19 01:04:42 +02:00
Don Ho
a427ace34c Use explicite L to replace TEXT - part 2 2024-07-18 21:39:08 +02:00
ozone10
8866d4b7fe Add dpi support for panel tab and caption
- use recommended subclassing for docking panel tab and caption
- remove unused function

ref #14959

Close #15394
2024-07-18 19:39:28 +02:00
Don Ho
3bca7bf278 Use L"" instead of TEXT("") - Part 1 2024-07-18 05:26:20 +02:00
ozone10
ea5e36a5be Add missing localization for debug info dialog and print error
Fix #15375, fix #15105, close #15416
2024-07-17 00:41:46 +02:00
Don Ho
108b9f0d24 Improve description for settings "Backup"
Fix #14560, close #15351
2024-07-15 00:34:35 +02:00
Don Ho
0858dfa4af Use GetFileAttributes instead of PathFileExists
Ref: https://github.com/notepad-plus-plus/nppShell/pull/64#discussion_r1664890166
Ref: https://devblogs.microsoft.com/oldnewthing/20071023-00/?p=24713

Fix #14839, close #15400
2024-07-14 22:50:00 +02:00
Don Ho
ac67f15c2b Fix closing unsaved clone document makes periodic backup lost issue
And change the behaviour of closing a cloned document: there's no more "Save or not" dialog appears.

Fix #8227, close #15409
2024-07-14 21:14:44 +02:00
Don Ho
439bbb04d2 Make C-Like indent deactivatable
Add one more option for auto-indent so user can choose among "none", "basic" & "advance".
Also add the indentation section in Preferences dialog.

Fix #15396, close #15414
2024-07-14 21:10:13 +02:00
Don Ho
761060819f Notepad++ v8.6.9 release v8.6.9 2024-07-14 04:42:28 +02:00
Don Ho
504e4ca5df Fix periodic backup's disfunction regression for the main view
The regression was introduced in:
97279d024f (diff-5f6ec155ff896fe5cab66dcf3e3f99c2b72d2498dda4cb68a4002da4468cabda)
2024-07-07 05:17:50 +02:00
schnurlos
1c47c368b8 [xml] Update german.xml
Modified backspace description.

Close #15353
2024-07-05 16:25:19 +02:00
Hugo Carvalho
f47b0e8d2f [xml] Update portuguese.xml
Close #15393
2024-07-05 16:20:49 +02:00
Matteo Concato
163e2712ed Update italian.xml
Close #15395
2024-07-05 16:17:30 +02:00