3107 Commits

Author SHA1 Message Date
Don Ho
a26599794c Refactoring & optimizing open/save large files time 2022-10-09 01:08:22 +02:00
Christian Grasser
f57c69aac6 Fix output from makefile and correct cmake for c++20
Close #12297
2022-10-07 02:58:44 +02:00
Don Ho
e73fca5a85 Use c++20 function ends_with()
Close #12294
2022-10-06 20:49:23 +02:00
Don Ho
3cbbb42933 Revert "Fix CI system error due to the project build env update"
This reverts commit c64049a1e64f9f8145bcd0847e914f8b05437739.
2022-10-06 14:15:16 +02:00
Don Ho
c64049a1e6 Fix CI system error due to the project build env update
And use C++20 for string::ends_with() function.
2022-10-05 17:28:21 +02:00
SinghRajenM
4b539b4d5d Build project using C++20
Fix #12232, close #12233
2022-10-05 15:44:56 +02:00
Robert Di Pardo
a610387fb4 Fix language detected from content not applied if default language is set
Properly handle missing file extensions in `Buffer::setFileName`

Before 6263ce5, the user-preferred default language would apply to
files with no extension, but got overwritten by `L_TEXT` when the
extension was present *but unknown*.

This is why the `buf->_lang == L_TEXT` condition failed *only for
buffers with _no_ extension*.

Fix #11504, close #12286
2022-10-05 00:56:15 +02:00
Don Ho
af0bc2e113 Revert "Fix detected language not being applied issue"
This reverts commit 6263ce5dece595543bbfaa4207391075ae3a212a for fixing the regression.

Fix #12226, fix #12253
2022-10-05 00:06:57 +02:00
xomx
23fc940a27 Enhance N++ EndSession logging
To be able to distinguish:
- different types of Windows system restart/shutdown
- WM_CLOSE messages after previous WM_QUERYENDSESSION

Close #12257
2022-10-04 17:36:49 +02:00
Christian Grasser
20b14b8e4b Updated nlohmann json to 3.11.2
Updated nlohmann json to 3.11.2 from https://github.com/nlohmann/json/releases/download/v3.11.2/json.hpp

Close #12271
2022-10-04 03:46:57 +02:00
Don Ho
4d50692809 Add new API for getting bookmark ID
ref: https://community.notepad-plus-plus.org/topic/23541/notepad-v8-4-6-release/22?_=1664842498334
2022-10-04 03:31:09 +02:00
Don Ho
83ee8f09bf Clean up NPPM_ALLOCATEMARKER API 2022-10-03 01:32:11 +02:00
Don Ho
11884bd97f Fix long filters get truncated in Find in Files feature
Increse filter size from 256 to 512 bytes.

Fix #12041
2022-09-30 16:14:15 +02:00
Chukwudumebi Smarty
dfa6c19d87 Make ESC Key abort "Move to Recycle Bin" confirmation prompt
Fix #12117, close #12239
2022-09-29 16:49:53 +02:00
Adrian
4b3ee9c4ea Fix line hiding issues
Fix #12184, fix #8149, close #12250
2022-09-29 15:32:58 +02:00
Don Ho
6750d4dbbc Notepad++ release 8.4.6 2022-09-29 02:57:44 +02:00
SinghRajenM
2d4af44f54 Fix plugin admin UI overlapping
Fix #12229, close #12230
2022-09-25 19:11:13 +02:00
Christian Grasser
0ce3bc08df Fix rebol syntax quote issue
see http://www.rebol.com/r3/docs/guide/code-syntax.html#section-3
setREBOLLexer seems to use wrong, non ASCII single quote, see also https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/lexilla/lexers/LexRebol.cxx#L38
found by clang tidy warning

Close #12221
2022-09-24 19:40:52 +02:00
Don Ho
18971709f5 Change colours for applying to tab more distiguishable
And simplify the code.

Ref: https://community.notepad-plus-plus.org/topic/23513/notepad-v8-4-6-release-candidate-2/3?_=1663982940040

Fix partially #12223
2022-09-24 19:35:08 +02:00
Don Ho
848b412cf7 Fix Change History margin visual glichy under dark mode
Ref: https://community.notepad-plus-plus.org/topic/23510/notepad-v8-4-6-release-candidate/2?_=1663857801779
2022-09-22 19:28:08 +02:00
ozone10
b29a9ce142 Code enhancement - removing gcc warning
Fix conversion-null, nonnull-compare, dangling-else, address warnings, add initializers.

Fix #12198, close #12199
2022-09-20 16:19:58 +02:00
ozone10
d3b630841e Fix horizontal bar showing issue while resizing document list's height
Take into account vertical scrollbar when resizing document list.

Fix #12191, close #12192
2022-09-20 03:39:03 +02:00
Don Ho
6a801cc0a4 Make Change History margin colour configurable
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12165#issuecomment-1250899679
2022-09-19 19:24:57 +02:00
Christian Grasser
ead6fb6b8f Fix gcc linux build and cmake build issues under ubuntu
1. Fix gcc build issues under ubuntu linux due to upper/lower case filename issues.
2. corrected cmake build issues.

Close  #12188
2022-09-19 01:42:49 +02:00
ozone10
1ac1b1150d Code enhancement
Fix some conversion-null, nonnull-compare, unknown-pragmas, switch warnings, add initializers.

Fix #12179, close #12180
2022-09-19 01:38:26 +02:00
Don Ho
fc32fbdcce Add Change History markers for saved/unsaved/undone modification
Implement Change History by using the new abilities of Scintilla v5.3.0.

Fix  #12164, close #12165
2022-09-18 23:57:36 +02:00
ozone10
3295cc8d2c Code improvement
Fix warnings ,some conversion-null, format, unused-but-set-variable, class-memaccess.
Add initializer.

Fix #12171, close #12172
2022-09-15 02:07:38 +02:00
ozone10
43c8d8115f Code improvement, remove unnecessary part
Fix some conversion-null, unused-* warnings, add initializer.

Fix #12151, close #12152
2022-09-13 15:42:55 +02:00
blu3mania
84b8c64944 Fix NPPN_DARKMODECHANGED wrong return value to plugins
Send NPPN_DARKMODECHANGED notification with hwndNpp as hwndFrom, so the documented API info on https://npp-user-manual.org/docs/plugin-communication/#nppn-darkmodechanged is correct. Previously it sends 0 which is of no use to plugin authors.

Fix #12144, close #12160
2022-09-13 02:10:07 +02:00
blu3mania
d03b11ebf8 Add dark mode support to ColourPicker/ColourPopup's ChooseColor dialog
Fix #12148, close #12158
2022-09-13 01:15:20 +02:00
Don Ho
9455684b42 Renumber Notepad++ marks for preparing Scintilla 5.3.0's integration
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12045#issuecomment-1229195785
2022-09-12 18:46:25 +02:00
Don Ho
6322562cf8 Revamp tab context menu
Add sub-menu in tab context menu so it will be less cluttered.

Fix #12147, close #12150
2022-09-12 17:01:50 +02:00
Don Ho
aad36afc6b Change to menu name to the "normalized" terms on Internet
Fix #12146
2022-09-11 23:06:30 +02:00
ozone10
2da5c5b393 Code enhancement
Fix parentheses, misleading-indentation, sign-compare, some conversion-null warnings.

Fix #12139, close #12140
2022-09-11 18:22:51 +02:00
spaxio
42d863dd9f Add setting colour ability for individual tab
Fix #2271, close #12098
2022-09-11 17:07:11 +02:00
ozone10
233c697183 Fix gcc reorder warnings
Fix #12132, close #12133
2022-09-09 18:08:08 +02:00
Don Ho
82055985f3 Add Plugin list repository link and its version in PluginAdmin dialog
And add the localization entries.
2022-09-09 17:56:39 +02:00
Don Ho
a5c201f79c Fix Windows 11 OS version not detected in getWindowsVersion
Fix #12100
2022-09-09 11:14:32 +02:00
Don Ho
5a94263bee Add incompatible (unloaded) plugin list in Plugin Admin
The plugins which are not compatible but their newer versions are available are not only on the incompatible list, but also on the Updates list.

Fix #12069, close #12105
2022-09-08 03:23:37 +02:00
SinghRajenM
85d7215d9b Fixes security vulnerability
Fix #12113, close #12114
2022-09-07 20:31:03 +02:00
Don Ho
15e5da6f7d Unify the terms "Fold/unfold" on menu
Rename menu item from "collapse" to "fold".

Fix #12035, close #12094
2022-09-07 18:28:51 +02:00
ozone10
ebe7648ee1 Code improvement, remove unnecessary part
Fix pedantic warnings, add initializers.

Close #12093
2022-09-07 17:49:56 +02:00
Don Ho
ea1e9295eb Notepad++ v8.4.5 release 2022-09-07 05:12:29 +02:00
ozone10
4ddd2d4a46 Remove unneeded subclass
Fix #12086, close #12087
2022-09-03 03:46:37 +02:00
ozone10
95cb564c27 Don't use memset to initialize tTbData
Fix #12084, close #12085
2022-09-03 03:22:46 +02:00
ozone10
39ab226c8c Fix button text in dark mode regression from Wine crash fix
ref: https://community.notepad-plus-plus.org/topic/23432/notepad-v8-4-5-release-candidate/4?_=1662157237187

Close #12083
2022-09-02 23:09:32 +02:00
Don Ho
5f60ee70dc Fix a grammar error & add an easter egg
Fix #12056
2022-08-30 19:25:35 +02:00
Ashfaaq18
adcace3380 Improve performance for "Find in Files" and ""Find all in..."
Fix #11878, close #12048
2022-08-29 20:32:31 +02:00
doug1234
9809e2fc2c Add option to turn off selecting text when Field dialog is invoked
Fix #11988, close #11989
2022-08-29 05:26:54 +02:00
Robert Di Pardo
6263ce5dec Fix detected language not being applied issue
Fix detected language not being applied if Default languge is set in Document settings.
Don't override detected file type with default language:

When loading files with no extension from disk, remove the extra condition so the default language setting does not take precedence over the auto-detected file type (if any)

Fix #11504, close #11992
2022-08-27 02:35:26 +02:00