Commit Graph

3221 Commits (4ffd897ccf8d30d8dd945c42907e61381c590d08)

Author SHA1 Message Date
Don Ho 4ffd897ccf Add SHA-512 hash features
Fix also SHA-1 hash result wrong length bug while "Treat each line as a separate string" enabled.

Fix #13805, fix #13812, fix #13811, close #13806
2023-06-20 23:19:19 +02:00
Don Ho 5b5238610e Fix menu Tools contains 2 SHA-256 item while using localization
Fix #13797
2023-06-19 18:29:13 +02:00
Don Ho 85ba11bf7e Notepad++ 8.5.4 release 2023-06-18 14:21:27 +02:00
Don HO 19c6895f83 Fix gcc compiling failure
Close #13793
2023-06-17 20:15:45 +02:00
Don Ho b883759c83 Add SHA-1 hash feature
Fix #13791, close #13792
2023-06-17 13:25:07 +02:00
Don Ho 51bddf57ad Use multiple-files Save dialog in Document list
Fix #13768, fix #13178, close #13776
2023-06-17 13:24:13 +02:00
ozone10 af1ab5d294 Support up down control generic dark mode for plugins
Fix #13766, close #13767
2023-06-17 13:24:13 +02:00
Don Ho d2fdfd7b73 Fix defective detection for file read-only attribute removal via Explorer
The regression has been made by 5e2f5d79aa

Fix #13742
2023-06-17 13:24:13 +02:00
Don Ho 7077e304aa Add CSHA1 2023-06-17 03:46:44 +02:00
Don Ho 3b823f358e Add SHA1 hash generator 2023-06-13 19:35:06 +02:00
xomx b0e849fe65 Fix ignored writeStr return value in TiXmlDocument::SaveFile
Previously the TiXmlDocument::SaveFile could return true even when the underlying writeStr func failed.

Close #13774
2023-06-12 16:06:34 +02:00
ozone10 28594daef3 Progress window: Prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
Fix #13764
2023-06-11 14:05:34 +02:00
ozone10 da8e48f67a Fix EOL symbol color/appearence being reset while changing encoding issue
Fix #13728, close #13763
2023-06-11 13:41:23 +02:00
Robert Di Pardo fadc083051 Enable code folding in Assembly source files
Enables the folding capabilities of Lexilla's Assembly lexer by:

 - adding the currently [unused keyword groups], `Directives4Foldstart` and `Directives4Foldend`;

b5e2e9d737/lexilla/lexers/LexAsm.cxx (L101-L109)

 - adding some fold-trigger keywords to the new `Directives4Foldstart` and `Directives4Foldend` groups, and *duplicating* them in the existing `Directives` group, following [these instructions].

 - activating a *selection* of the lexer's [optional folding properties]. Since `fold.asm.comment.explicit` is not likely to be popular, the default delimiters `;{` and `;}` are permanent, and `fold.asm.explicit.anywhere` is *not* turned on. Users who want different options can always use [Python Script] to set them dynamically.

There are plenty of *more* candidate keywords than what I've added, but I'm not very familiar with [Microsoft's macro assembler].

Fix #13758, fix #9888, close #13762
2023-06-11 12:12:14 +02:00
Don Ho e61b20a7fe Small refactoring 2023-06-11 00:59:15 +02:00
Don Ho b5e2e9d737 Fix macro recording regression on Unicode character
Fix #13757
2023-06-10 17:47:34 +02:00
molsonkiko 96ff66b225 Fix infinite loop in running macro to EOF
To test fix, try making file
```
f
f
```
and recording macro of find/replace form searching for f, then running until EOF.

This does not break any existing behavior, including:

   - macros where the cursor moves towards EOF but line num doesn't change (those already stopped after one iteration)
   - macros where line(s) are deleted with every iteration (even if line number doesn't change, they run until file empty)
   - macros where the line number increases with each iteration
   - macros where the cursor advances up or down with each iteration but would eventually stop anyway (those end at the correct time)

Fix #13342, close #13587
2023-06-08 22:20:29 +02:00
Don Ho 61503a2dcd Add "open new blank document in addition on startup" ability
To enable/disable this feature, go to New Document section of Preferences dialog, and check/uncheck "Always open a new document in addition at startup" checkbox.

Fix #11134, fix #9535, fix #5527, close #13738
2023-06-08 19:16:56 +02:00
Don Ho ccf80a0699 Add session.xml.fail2Load for analyzing
When session.xml is written while Notepad++ exit, it'll be load for checking if it's an valid xml file.
If not, then it will be replaced by the old session file (if any).

This commit renames session.xml to session.xml.fail2Load so in case of the situation user can provide session.xml.fail2Load to devs for analyzing.

Ref #13694

Close #13741
2023-06-06 13:40:17 +02:00
Don Ho dba15cfaf3 Fix document language not remembered through sessions issue
Fix document language not remembered through sessions due to languange being hidden from languages menu.

Fix #13743, close #13744
2023-06-06 02:07:19 +02:00
blu3mania 406a77a608 Fix lexer plugin is sorted unconventionally in language menu issue
Correct the logic when inserting external lexer's language into language menu,
while inserting external lexer's language into language menu, also search in submenu if compact language menu is used.
Fix also a similar issue in Preferences dialog when enabling a previously disabled language.

Fix #9516, close #13660
2023-05-31 15:39:28 +02:00
ozone10 776a3fb945 GUI Enhancement: StylerDlg & URLCtrl
-  prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
-  optimize dark mode
-  fix override warnings

Fix #13705, close #13706
2023-05-30 18:42:51 +02:00
ozone10 781709a022 GUI Enhancement: Tabbar part 2
- use one tab icon size
- close button crop in RTL
- improve text positions
- font size adjustment

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13702#issuecomment-1564296333

Fix #10349, fix #8109, close #13709
2023-05-30 01:15:49 +02:00
ozone10 e2f1662c90 GUI Enhancement: Docking Container & Function List
-  prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
-  fix override warnings
-  add initializer

Fix #13703, close #13704
2023-05-29 20:23:07 +02:00
ozone10 e7f321f21a Add message NPPM_DARKMODESUBCLASSANDTHEME
to allow plugin authors to use generic dark mode.
Unfortunately not for C# plugins.
related #13572

Fix #13574, close #13596
2023-05-28 11:52:14 +02:00
ozone10 b88456764b GUI Enhancement: Tabbar
-  prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
-  fix inconsistent tab bar size values
-  add initializer
-  fix override warnings

Fix #13701, close #13702
2023-05-25 14:51:48 +02:00
ozone10 1806b8994b GUIEnhancement: About, Debug, Save dialogs
-  add accelerators
-  optimize dark mode
-  remove/comment unused variables
-  replace debug copy link with push button
-  fix override warnings
-  add initializers

Fix #13686, close #13687
2023-05-23 16:05:54 +02:00
ozone10 779db128ac GUI Enhancement: Go to Line dialog
- optimize dark mode
- simplify code
- fix override warnings

Fix #13665, close #13666
2023-05-22 13:38:21 +02:00
ozone10 a1d7db8049 GUI Enhancement: General & Editing sections in Preferences dialog
- increase width for some items for translation
- make translation consistent between source and xml files
- reorder items for consistent tab focus

Ref #13627, ref 0cad36d#r108675058
Fix #13657, fix #13676, close #13632
2023-05-22 10:19:23 +02:00
ozone10 41af936855 GUI Enhancement: Column Editor
- fix override warnings
- replace SendMessage check with isCheckedOrNot
- make translation consistent

Fix #13667, close #13668
2023-05-20 20:08:20 +02:00
ozone10 af8b339296 GUI enhancement: Find in Finder dialog
- add key accelerator
- optimize dark mode
- add initializers
- fix override warnings

Fix #13624, close #13625
2023-05-18 10:52:13 +02:00
ozone10 4e0f50416d GUI Enhancement: Plugins Admin dialog
- add key accelerators
- remove unused define
- add initializers
- fix override warnings
- optimize dark mode
- resize listview controls based on other child controls

Fix #13622, close #13623
2023-05-18 06:29:54 +02:00
Don Ho a561cd37d4 Notepad++ 8.5.3 release 2023-05-15 07:01:31 +02:00
Don Ho 50b81eadef Backup session file in case of its corruption
It could be, in certain unknown circumstances, the session file (session.xml) is saved with the incorrect characters (for example NUL characters) which leads session file corrupted and empty session loaded on the next launch. This commit makes a backup of session file before rewritting it, then check the session file after it having been writting - if written session file is corrupted, the backup session file will be restored, otherwise the backup file will be removed.

Ref:
1. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1121781830
2. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1544703701

Fix #13514, close #13648
2023-05-15 05:59:14 +02:00
Don Ho 34186d2e85 Fix menu strings cut off regression for some localication
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13556#issuecomment-1518197329

Fix #13556, close #13645
2023-05-15 05:51:05 +02:00
ozone10 052626ca99 GUI Enhancement: User Define dlgs
- main dlg shared part - tab focus reorder
- string dlg (User language name, New tab name) - make edit ctrl larger
- remove obsolete style
- add initializer
- fix override warnings
- optimize dark mode
- make translation consistent between source code and english lang xml files

Fix #13615, close #13616
2023-05-07 05:50:58 +02:00
ozone10 2a21a042d1 Fix GCC warnings & add initializers
Fix #13603, close #13604
2023-05-06 05:58:58 +02:00
ozone10 2d5c241e2b Fix Change history margin in black color issue
Use Line number margin style color for Change history margin, if not defined in 'theme.xml'.

Fix #12764, fix #13593, close #13594
2023-05-04 05:03:49 +02:00
ozone10 6b194453b8 GUI Enhancement: Preference Print sub-dialog
- add initializers
- reorder controls for tab focus
- add accelerators
- make comboboxes larger
- replace variable static text with edit control
- fix override warnings

Fix #13601, fix #12812, close #13602
2023-05-04 04:25:57 +02:00
Don Ho 23a0cfb3aa Enhance shortcuts backup & warning
Commit 5b5c30b0d3 backup current shortcuts file before rewritting it, and gives a warning to users.
However, when a PC installs v8.5.3 (or later version) from scratch (ie. no v8.5.2 or previous version installed), there should be no warning and no backup.
This commit remove unnecessary cases for warning user (and backup shortcuts file).

Enhance #13589 & #13599

Close #13609
2023-05-04 04:11:54 +02:00
ozone10 7e6c4b3c6b GUI enhancement: MD5 and SHA256 Hash dialogs
- add accelerators
- add initializers
- optimize dark mod

Fix #13579, close #13580
2023-05-02 16:58:08 +02:00
ozone10 997ef821d1 GUI enhancement: Find Characters in Range dialog
- add accelerators
- add initializers

Fix #13577, close #13578
2023-05-02 04:58:52 +02:00
ozone10 61d2d36821 Make focus on edit field in Project panel File relocalizer dialog
- tab focus reorder
- optimize dark mod
- fix override warnings
- add initializer

Fix #13575, close #13576
2023-05-02 04:18:44 +02:00
Don Ho 5b5c30b0d3 Backup old version of shortcuts.xml
An enhancement (fff5f9b - it will be in v8.5.3) makes Macro & Run menu completely localizable. However, it will bring a regression and critical bug for all macro recorded by v8.5.2 and previous versions.
In order to remedy this issue, shortcuts.xml will be copied to shortcuts.xml.v8.5.2.backup before being written. So user can recover backup file if they want to back to v8.5.2 or previous version with the old data.

Fix #13589, close #13599
2023-05-01 19:26:28 +02:00
ArkadiuszMichalski ecb10712c1 Improve "Remove consecutive duplicate lines" command performance
Rewrite "Remove consecutive duplicate lines" without using regex.

Fix #5538, fix #12548, close #13558
2023-05-01 12:58:26 +02:00
ozone10 c585a1ab08 Fix incosistent key accelerator cue for groupbox in dark mode
Fix #13597, close #13598
2023-04-29 19:47:14 +02:00
ozone10 80b34f0adf Fix regression Run Macro Multiple Times cmd
Not changing times immediately from edit control.

Fix #13561, close #13563
2023-04-25 04:48:51 +02:00
Don Ho c76f178534 Fix regression of macro recording
Fix #13565, close #13570
2023-04-23 15:16:52 +02:00
doug1234 2c6c556a3a Project Workspace "Save a Copy As" confusion issue
Fix #13135, close #13303
2023-04-22 15:39:51 +02:00
Don Ho 0457a112c7 Fix regression: Key-Combos in Shortcuts Mapper displayed incorrectly
Fix #13554
2023-04-21 20:36:29 +02:00