Commit Graph

5163 Commits (6102687faff1ea9948f8a615cb9f2feeaf6367e9)

Author SHA1 Message Date
xomx 19c6489a9a [xml] Update czech.xml to v8.6.1
Close #14527
2023-12-30 17:49:12 +01:00
kubalav 0aebe13b3e [xml] Update Slovak translation
Close #14528
2023-12-30 17:48:06 +01:00
~GOLEM~ 03d1a5dcd1 [xml] Update russian.xml
Close #14529
2023-12-30 17:46:11 +01:00
schnurlos c664299dfa [xml] Update german.xml
Following 78d0e7e12f

Close #14530
2023-12-30 17:43:52 +01:00
Patriccollu 026ab75b38 [xml] Update Corsican translation for Notepad++ 8.6.1
Close #14531
2023-12-30 17:41:31 +01:00
Karlo-F 79fab08f02 [xml] Update croatian.xml to v8.6.1
Close #14532
2023-12-30 17:39:44 +01:00
Marcellomco 5e13a7b128 [XML] Update brazilian_portuguese.xml
Added translation for "Add new localization entries"

Close #14533
2023-12-30 17:37:14 +01:00
yasmise 81832b1690 [xml] Update japanese.xml
Add translation texts for these commits:
* Add new localization entries (d039eaa)
* Add navigation to the 1st & last tab abilities (4e6bbbc)

This also includes fix-ups to existing texts, to make it clearer.

Close #14534
2023-12-30 17:35:30 +01:00
rddim 24305466b3 [xml] Update Bulgarian localization
Close #14535
2023-12-30 17:33:52 +01:00
Don Ho 4bde0d4b53 Fix incorrect code
ref: 8ae049afbc (r135905629)

And also add new entries to tabContextMenu_example.xml
2023-12-30 03:53:47 +01:00
Don Ho d039eaa900 Add new localization entries
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14497#issuecomment-1871689104
2023-12-29 18:07:53 +01:00
Don Ho d1664226d3 Add comments in RTL localization files for explanation of "editZoneRTL" 2023-12-29 04:22:00 +01:00
Don Ho 8ae049afbc Use 64-bit positions instead of 32-bit obsolete ones
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14359/files#r1437502252
2023-12-29 02:56:37 +01:00
schnurlos c1fa9273e5 [xml] Update german.xml
Close #14370
2023-12-28 17:54:35 +01:00
Karlo-F 65701313cd [xml] Update croatian.xml to v8.6
Close #14396
2023-12-28 17:42:50 +01:00
rddim 76b2ca3f40 [xml] Update Bulgarian localization
Close #14398
2023-12-28 17:30:01 +01:00
Andrei Miloiu 275a6853be [xml] Update romanian.xml
Close #14468
2023-12-28 17:13:20 +01:00
Patriccollu fe17d2824d [xml] Update Corsican translation for Notepad++ 8.6.1
Close #14483
2023-12-28 17:02:56 +01:00
Christophe Mateos e4d494c9d0 [xml] Update french.xml
Close #14484
2023-12-28 16:48:15 +01:00
~GOLEM~ 7c9312b438 [xml] russian.xml 8.6.1
Close #14485
2023-12-28 16:32:58 +01:00
A. Regnander 211b9b7331 Update swedish.xml
Close #14486
2023-12-28 16:29:56 +01:00
Thomas De Rocker 1a1d6e352c Update dutch.xml
Close #14512
2023-12-28 16:22:51 +01:00
Juan 8898d0dcc8 [xml ]Update spanish.xml v.8.6
Close #14524
2023-12-28 16:20:19 +01:00
Juan fabf129678 [xml] Update galician.xml v.8.6
Close #14525
2023-12-28 16:08:43 +01:00
Don Ho d7630fa42d Fix file status in "other view" is not detected
Fix #14225
2023-12-28 01:43:10 +01:00
Don Ho 5f13c84719 Fix dropped file being opened in the wrong view
Fix #14354
2023-12-28 01:00:50 +01:00
Marcellomco 89f83f1023 [XML] Update brazilian_portuguese.xml
Added translation for 'Make RTL per document & remembered across the sessions'.

Close #14439
2023-12-27 03:45:17 +01:00
yasmise 65988cf16d [xml] Update japanese.xml
Update translation texts for these commits:
* Fix confusing memory allocation error message (reused FileTooBigToOpen) (ffc0ed2)
* Make RTL per document & remembered across the sessions (2724e0d)

Close #14448
2023-12-27 03:43:02 +01:00
kubalav 55f535cd35 [xml] Update Slovak translation
Close #14366
2023-12-26 23:57:25 +01:00
Christian Grasser dcc7e600c7 Updated to Scintilla 5.4.1 & Lexilla 5.3.0
Scintilla 5.4.1
https://www.scintilla.org/scintilla541.zip
Released 27 December 2023.

1.  Add IDocumentEditable interface to allow efficient interaction with document objects which may not be visible in a Scintilla instance. This feature is provisonal and may change before being declared stable. For better type-safety, the ScintillaCall C++ API uses IDocumentEditable* where void* was used before which may require changes to client code that uses document pointer APIs DocPointer, SetDocPointer, CreateDocument, AddRefDocument, and ReleaseDocument.
2.  Ctrl-click on a selection deselects it in multiple selection mode.
3.  Add SCI_SELECTIONFROMPOINT for modifying multiple selections.
4.  Add SCI_SETMOVEEXTENDSSELECTION and SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.
5.  Improve performance of global replace by reducing cache invalidation overhead. [Feature #1502](https://sourceforge.net/p/scintilla/feature-requests/1502/).
6.  Fix regular expression search for "\<" matching beginning of search when not beginning of word and for "\>" not matching line end. [Bug #2157](https://sourceforge.net/p/scintilla/bugs/2157/).
7.  Fix regular expression search failure when search for "\<" followed by search for "\>". [Bug #2413](https://sourceforge.net/p/scintilla/bugs/2413/).
8.  Fix regular expression assertion (^, $, \b. \B) failures when using SCFIND_CXX11REGEX. [Bug #2405](https://sourceforge.net/p/scintilla/bugs/2405/).
9.  Fix regular expression bug in reverse direction where shortened match returned. [Bug #2405](https://sourceforge.net/p/scintilla/bugs/2405/).
10. Avoid character fragments in regular expression search results. [Bug #2405](https://sourceforge.net/p/scintilla/bugs/2405/).
11. With a document that does not have the SC_DOCUMENTOPTION_TEXT_LARGE option set, allocating more than 2G (calling SCI_ALLOCATE or similar) will now fail with SC_STATUS_FAILURE.
12. Protect SCI_REPLACETARGET, SCI_REPLACETARGETMINIMAL, and SCI_REPLACETARGETRE from application changing target in notification handlers. [Bug #2289](https://sourceforge.net/p/scintilla/bugs/2289/).

Lexilla 5.3.0
https://www.scintilla.org/lexilla530.zip
Released 27 December 2023.

1. Fix calling AddStaticLexerModule by defining as C++ instead of C which matches header. [Bug #2421](https://sourceforge.net/p/scintilla/bugs/2421/).
2. Bash: Fix shift operator << incorrectly recognized as here-doc. [Issue #215](https://github.com/ScintillaOrg/lexilla/issues/215).
3. Bash: Fix termination of '${' with first unquoted '}' instead of nesting. [Issue #216](https://github.com/ScintillaOrg/lexilla/issues/216).
4. HTML: JavaScript double-quoted strings may escape line end with '\'. [Issue #214](https://github.com/ScintillaOrg/lexilla/issues/214).
5. Lua: recognize --- doc comments. Defined by [LDoc](https://github.com/lunarmodules/ldoc). Does not recognize --[[-- doc comments which seem less common.

Close #14375
2023-12-26 23:17:53 +01:00
Don Ho 78d0e7e12f Fix hidden results of long lines for "Find All ..." commands
Fix some the results of "Find all in..." commands of long lines not being displayed, when the long lines are cut (its length > 2048).
All the results displayed in the cut long lines will be kept as the current behaviour. Additionally, each result beyond the cut long line (2048) will be displayed as default mode (ie. each entry will be displayed, so user can double click on the entry line for reaching the result).

Related: #12014

Fix #12023, close #14520
2023-12-26 16:28:41 +01:00
PavelBlend d1b3fe6fee Fix python wrong decorator attribute colors
Fix #5894, close #14507
2023-12-23 18:04:46 +01:00
Don Ho 3c4f0f9cb2 Make line copy/cut/delete while no selection optional
By adding disableLineCopyCutDelete.xml in "%APPDATA%\Notepad++\" directory (or in the Notepad++ installed directory in portable mode) to:
1. prevent hard coded Shift-DEL shortcut deletes whole line while no selection.
2. prevent Copy command (Ctrl-C) copies whole line (without selection).
3. prevent Cut command (Ctrl-X) cuts whole line (without selection).
4. add SCI_CUT (Shift-DEL), SCI_COPY (Ctrl-INS) & SCI_PASTE (Shift-INS) shortcuts

Note: the old disableHardCodedShiftDelete.xml (of 53b5055118) is canceled, the new disableLineCopyCutDelete.xml is used instead.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14296#issuecomment-1866679990
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14401#issuecomment-1833326429

Close #14513
2023-12-23 04:45:09 +01:00
Alan Kilborn 08222a89de Fix the 2nd replace in cloned document for Replace in Opened Docs
Fix #14505, close #14511
2023-12-22 04:44:03 +01:00
Alan Kilborn 7419770d2e Fix regression of F3 & Shift-F3 in Incremental Search
The regression was introduced by:
ac871cacd4

Fix #14503, close #14504
2023-12-20 01:31:26 +01:00
Alan Kilborn 4e2903a274 Small update of english.xml
Restore accelerators for Increamental Search to english.xml.

Fix #14500, close #14501
2023-12-19 16:03:23 +01:00
Don Ho 4e6bbbc17f Add navigation to the 1st & last tab abilities
Fix #14416, close #14497
2023-12-17 16:17:11 +01:00
Don Ho 58d8043e2b Fix build error 2023-12-16 02:20:15 +01:00
Don Ho fa82ca0224 Add document tab "Move to Start" & "Move to End" commands
Fix #13982, fix #9525
2023-12-15 19:44:15 +01:00
xomx d9d26e5981 "-loadingTime" cmdline param enhancement
Improves:
- the reported time accuracy (from seconds to milliseconds, now e.g. different N++ settings benchmarking is possible)
- the ability to analyze various problems (now it is possible to distinguish the time taken by the app/plugin code-init from the possible file loading time)

Fix #14472, close #14473
2023-12-14 17:41:43 +01:00
Don Ho 53b5055118 Make hard-coded shortcut "Shift-DEL" be abled to be disabled
In order to disable the hard-coded shortcut "Shift-DEL" ability (new feature introduced in v8.6) which delete current line while no selection, users must add an empty file named "disableHardCodedShiftDelete.xml", in "%APPDATA%\Notepad++\" directory (or in the Notepad++ installed directory in portable mode) to prevent this behaviour.

Fix #14470, close #14481
2023-12-14 16:58:12 +01:00
Don Ho aef0438180 Make column to multi-select be abled to be disabled
In order to disable the "Column to multi-select" ability (new feature introduced in v8.6), users must add an empty file named "noColumnToMultiSelect.xml", in "%APPDATA%\Notepad++\" directory (or in the Notepad++ installed directory in portable mode) to prevent this behaviour.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14296#issuecomment-1848076816

Fix #14464, close #14476
2023-12-13 03:25:33 +01:00
Alan Kilborn e497ae2c06 Enhancement: add search options output to FiF Search-results
Fix #14306, close #14373
2023-12-12 21:12:02 +01:00
briangood35 bf37d4714f Sort language list in the Preferences dialog
Sort langlist before displaying using custom less than operator.

Fix #14245, close #14443
2023-12-08 19:52:02 +01:00
Sven Strickroth ef8ad111e9 Enhance the performance: disable undo collection while loading a file
This reduces the amount of memory required to load a file by around half.

Close #14455
2023-12-07 23:15:50 +01:00
Don Ho a51e62c16d Fix cloned (modified & unsaved) document disassociated issue after Npp being relaunched
The bug has been fixed in v8.5.7 by PR #14003.
However the fix causes a regression #14164, the concerning commit is reverted.
Hence this fix.

Fix #10266, fix #10365
2023-12-05 04:55:49 +01:00
Don Ho 6f2e5d272c Revert "Fix cloned document disassociated issue after Npp being relaunched"
This reverts commit f4297f1a83 for fixing regression of not restoring coloned document position.

Fix #14164
2023-12-05 04:36:10 +01:00
Don Ho e08c547167 Fix customized extesion in Style Configurator not saved regression
This regression is due to commit:
950236bb8f

Fix #14437
2023-12-03 03:48:05 +01:00
Don Ho 2724e0ddbb Make RTL per document & remembered across the sessions
This commit adds the ability of RTL/LTR per document (tab), and memorizes RTL setting of each file in the session.xml.

It also adds an attribute "editZoneRTL" in localization XML file. if "RTL" attribute is present and its value is "yes", then user can add  "editZoneRTL" attribute beside, and set the value of the attribute in question to "no", so Notepad++ GUI will be RTL, but Scintilla zone will be LTR by opening files.  Of course, user can set any direction they want afterward, and what they have set on document will be remembered across the sessions.

Fix #9665, fix #9950, fix #14385, close #14431
2023-12-02 17:49:09 +01:00
xomx ffc0ed2516 Fix confusing memory allocation error message (reused FileTooBigToOpen)
Fix #14418, close #14429
2023-12-02 02:29:17 +01:00
Don Ho 0978b2e29f Fix visual glichy on multi-paste
This PR removes Shift-DEL Ctrl-INS & Shift-INS shortcut from Scintilla.
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14401#issuecomment-1830302635

Now for Copy/Cut/Paste commands and their shortcut are coherent. ie. if user remaps the shortcuts of these 3 commands, both single/multiple selection operation with the commands in question will follow the changed shortcuts.

It also fixes 2 bugs:
1. visual glitch problem of read-only while multi-pasting.
2. the shortcut **Ctrl-C** in Search results works now.

Fix #14410, close #14423
2023-11-29 23:21:11 +01:00
Don Ho 7deb12aeed Enable Copy & Cut commands on menu all the time
Before the implementation of e9c50ed967,
Copy & Cut command were disabled when there were no selection, which makes sense because there was nothing to be copied & cut.
Now users can copy/cut current line without selection.

Fix #14401, close #14415
2023-11-28 15:10:51 +01:00
Don Ho 2768cf5422 Update Finnish localization file 2023-11-24 22:29:59 +01:00
Don Ho 2fc7b706d8 Fix the error link 2023-11-23 18:17:08 +01:00
Don Ho e215ae2de7 Notepad++ 8.6 release: 20th-Year Anniversary
The short story:
https://notepad-plus-plus.org/news/v86-20thYearAnniversary
2023-11-23 16:08:45 +01:00
xomx ff590f3535 Update czech.xml to v8.6
Close #14394
2023-11-23 14:43:20 +01:00
~GOLEM~ ea3afd08c5 [xml] Update russian.xml to v8.6
Close #14393
2023-11-23 04:21:21 +01:00
yasmise c3a8d13e5d [xml] Update japanese.xml
Update translation texts for these commits:
* [xml] Remove the redundant entry (faba181)
* Prevent Direct Write being set if user uses RTL (9bc790b)

Close #14386
2023-11-22 21:11:41 +01:00
Marcellomco 7c592e013a [XML] Update brazilian_portuguese.xml
Added translation for "Prevent Direct Write being set if user uses RTL"

Close #14387
2023-11-22 21:09:27 +01:00
Patriccollu bfce07c75b [xml] Update Corsican translation for Notepad++ 8.6
Close #14388
2023-11-22 21:07:34 +01:00
Karlo-F 84289c732b [xml] Update croatian.xml to v8.6
Close #14392
2023-11-22 21:05:14 +01:00
Don Ho 2a90f11487 Add new styler entries to themes 2023-11-22 18:26:37 +01:00
Don Ho 9bc790b014 Prevent Direct Write being set if user uses RTL
Ref: 975d29b30b (commitcomment-132946815)

Close #14374
2023-11-22 02:06:01 +01:00
Don Ho c62e222985 Fix Multi-edit DEL keystroke delete part of Unicode character
Fix https://community.notepad-plus-plus.org/topic/25150/notepad-v8-6-release-candidate/5?_=1700578401627
2023-11-22 00:17:26 +01:00
Andrei Miloiu d77b270243 Update romanian.xml
Close #14280
2023-11-20 18:22:17 +01:00
artpoli 706dff6409 [xml] Update Ukrainian translation
Close #14318
2023-11-20 18:18:09 +01:00
Juan 45cec73a48 Update spanish.xml v. 8.5.9
Close #14342
2023-11-20 18:15:34 +01:00
Juan 64bca5fdd4 Update galician.xml v. 8.5.9
Close #14343
2023-11-20 18:10:15 +01:00
A. Regnander 562c367b79 Update swedish.xml
Added new strings and made a minor change to the existing translation.

Close #14348
2023-11-20 18:03:29 +01:00
Karlo-F 0baa474f30 [xml] Update croatian.xml to v8.6
Close #14371
2023-11-20 18:00:01 +01:00
Don Ho 0917875034 Make all SCI_SETELEMENTCOLOUR message use 32 bits color 2023-11-20 04:59:40 +01:00
Don Ho b24734df8f Fix backspace keystroke not working for multi-editing
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14359#issuecomment-1815898951
2023-11-18 20:24:20 +01:00
Don Ho 975d29b30b Enable Direct Write Technology in Scintilla by default
And disable Direct Write under WINE, due to the performance issue.
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8510
2023-11-18 19:22:59 +01:00
Iñigo Zendegi Urzelai 6ba33563bd [xml] Minor fix
Close #14258
2023-11-18 00:31:56 +01:00
rddim d1c335fff3 [xml] Update Bulgarian localization
Close #14282
2023-11-18 00:20:42 +01:00
Thomas De Rocker 3f81b2457d Update dutch.xml
Close #14364
2023-11-17 20:05:04 +01:00
kubalav 40fc7a57c9 [xml] Update Slovak translation
Close #14365
2023-11-17 20:03:22 +01:00
Marcellomco a2c10cc9a7 [xml] Update brazilian_portuguese.xml
Removed entry indicated in "Remove the redundant entry".

Close #14362
2023-11-17 20:01:17 +01:00
CennoxX 370f99556c Fix wrong German translation of multi-select features
The German translation is completely missing the word "case" (meant is "upper/lower case"). The literally translation of "Nur Übereinstimmung" would be "Match only", which doesn't capture the essence of the phrase.
Also it's "Mehrfachauswahl", not "Mehrfach-Auswahl".

Close #14361
2023-11-17 19:59:47 +01:00
xomx b85c1ebd34 [xml] Update czech.xml to v8.5.9
Close #14360
2023-11-17 02:48:27 +01:00
Don Ho faba181e8f [xml] Remove the redundant entry 2023-11-17 02:45:03 +01:00
schnurlos 24af65c602 [xml] Update german.xml
Small fixes (thx MarkusBodensee).

Close #14250
2023-11-16 21:15:31 +01:00
yasmise b6624f05cc [xml] Update japanese.xml
Add translation texts for these commits:
* Make session inaccessible files remembered (part 2/2) (0879451)
* Force to enable multi-select feature in Scintilla (89278e1)
* Enhance Multi-select feature (cecd161)
* Enhance Find Dialog: display extra info in the status bar (05f339b)

Close #14275
2023-11-16 21:05:51 +01:00
Don Ho c517985beb Fix DELETE key not working in multi-editing for EOL
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14338#issuecomment-1813006657

Close #14359
2023-11-16 18:31:00 +01:00
Don Ho 3e7425f6b1 Fix a typo 2023-11-16 05:29:24 +01:00
~GOLEM~ 4123d531a0 [xml] Update russian.xml v8.5.9
Close #14256
2023-11-15 19:52:38 +01:00
kubalav 931155a311 [xml] Update Slovak translation
Close #14259
2023-11-15 19:06:32 +01:00
Marcellomco eb3e1a65a0 [XML] Update brazilian_portuguese.xml
Added translation for Make session inaccessible files remembered

Close #14260
2023-11-15 19:03:55 +01:00
Christophe Mateos 2905efef6a [xml] Update french.xml with latest additions + realign with english.xml
Close #14317
2023-11-15 19:00:04 +01:00
Patriccollu 4391274b37 [xml] Update Corsican translation for Notepad++ 8.5.9
Fix #14290
2023-11-15 18:57:37 +01:00
xomx ca403b6627 Fix possible PluginsManager FindClose WINAPI errors
Otherwise the ERROR_INVALID_HANDLE (0x6) can be triggered.

Close #14356
2023-11-15 18:08:28 +01:00
Don Ho 1764758669 Enhance multi-edit paste and Enter key type
Also disable auto-indent during multi-editing.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14338#issuecomment-1809045648

Close #14355
2023-11-15 15:37:34 +01:00
Don Ho 05f339b0cf Enhance Find Dialog: display extra info in the status bar
Fix #14307, close #14347
2023-11-14 21:13:02 +01:00
Don Ho 812745d850 Make multi-select background & caret colour customizable
Fix #14302, close #14350
2023-11-14 05:40:08 +01:00
Don Ho c7e1162f23 Fix menu Paste inconsitent behaviour
Fix #9260, close #14346
2023-11-11 14:18:11 +01:00
Don Ho 2337a7b5b6 Fix network shared files saving regression
Cause:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14300#issuecomment-1791313760

Solution:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14300#issuecomment-1798075334

Enhancement:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14300#issuecomment-1804910680

Fix  #14300, close #14344
2023-11-11 01:32:30 +01:00
Don Ho 4ff9d77d2b Make multi-select Copy/Paste behaviour as same as column edit's one
Copy some multi-select texts and paste them make all text glued all together.
This commit makes pasted texts separated by EOL, as column selection's Copy/Paste behaviour.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14266#issuecomment-1799203336

Close #14338
2023-11-11 00:04:36 +01:00
briangood35 dadc187dc6 Add srcset attribute for HTML
Fix #14294, close #14339
2023-11-09 20:12:54 +01:00
Christian Grasser 69998ab7de Update Scintilla to v5.3.8 & Lexilla to v5.2.8
Scintilla Release 5.3.8 https://www.scintilla.org/scintilla538.zip

    Released 5 November 2023.
    Fix excessive memory use when deleting contiguous ranges backwards. Notepad++ Issue #13442.
    Fix incorrect substitution when searching for a regular expression backwards. Bug #2405.
    Make SCI_MOVESELECTEDLINESUP and SCI_MOVESELECTEDLINESDOWN work for rectangular selections. Bug #2078.
    For Cocoa, minimum supported macOS release increased to 10.13.
    For Cocoa, fix invisible text on macOS 14 Sonoma. Bug #2402.
    For Cocoa, do nothing for suspendDrawing on macOS 10.14+ as the underlying calls have been deprecated.

and lexilla

Release 5.2.8 https://www.scintilla.org/lexilla528.zip

    Released 5 November 2023.
    Python: Update f-string handling to match PEP 701 and Python 3.12. Controlled with property lexer.python.strings.f.pep.701. Issue #150, Pull request #209.
    R: Fix escape sequence highlighting with change of for loop to while loop. Issue #206, Pull request #207.
    Minimum supported macOS release increased to 10.13.

Related to Notepad++ issue #13442, #14188 & #14288
Tested with: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14188#issuecomment-1740088956
Result: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14188#issuecomment-1799039503

Fix #13442, fix #14188, fix #14288, close #14320
2023-11-07 17:00:13 +01:00
xomx 5b61cc1680 Fix tab-closing crash by middle mouse button (unexpected mouse position)
The TabBar.h getTabIndexAt(int x, int y) could fail to find the tab-index (the underlying TCM_HITTEST WM returns -1, when there is no tab at the current mouse position).

Fix #14328, close #14329
2023-11-07 04:13:22 +01:00
Don Ho 1fafd0dc0b Fix hasSelection wrongly detected
Fix #14322, close #14330
2023-11-07 03:26:14 +01:00
Don Ho 2fb8d7fc77 Fix the shortcut bug (a regression) in commit e9c50ed
Ref: e9c50ed967 (commitcomment-131870570)
2023-11-07 03:17:01 +01:00
Don Ho e9c50ed967 Add 3 line operation (delete, copy & cut) shortcuts
* Shift-Delete: without selected text, it will delete the whole line.
* Ctrl-C: without selected text, it will copy the whole line.
* Ctrl-X: without selected text, it will cut the whole line.

Fix #14296, close #14298
2023-11-06 20:58:20 +01:00
Don Ho b5730eea31 Multi-edit enhancement: column mode to multi-edit on HOME/END/Arrow keys
This feature transforms a rectangular selection to multiple edit mode, so it's manipulatable with HOME, END and Arrow keys without loosing the set carets.

Related issue: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8203

Fix #14266, close #14313
2023-11-06 13:43:53 +01:00
Don Ho dc6bfedb90 Fix Incomplete styler.xml crashes Notepad++ issue
And do some refactoring.

Fix #12101
2023-11-06 00:40:38 +01:00
Don Ho 950236bb8f Fix 2 performance issue in Style Configurator
Fix #14321
2023-11-05 20:48:10 +01:00
Alan Kilborn 07041f4565 Fix tooltip for "In Selection" edit field of preferences not closing issue
Fix #14287, close #14314
2023-11-05 12:34:44 +01:00
mpheath 37a968e6f4 [xml] Add Batch After Label style configuration
Fix #14283, close #14284
2023-11-04 00:30:46 +01:00
Don Ho cecd161570 Enhance Multi-select feature
1. Make "Multi-select all" expand the word only when there's no selection.
2. Make Multi-select command set macro-able.
3. Make Multi-select command set translatable.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14295#issuecomment-1791688412

Close #14301
2023-11-03 13:16:45 +01:00
Christian Grasser c5477ee21c Add Github CI build
- add first version of GH CI build
- fix merge issue for lexilla.mak
- fix clang compiler issue:
       ..\lexers\LexObjC.cxx(50,20): warning : unused function 'IsADigit' [-Wunused-function] [D:\a\notepad-plus-plus\notepad-plus-plus\lexilla\src\Lexilla.vcxproj]
- fix functionlist unittest run for github
- make functionList unittest compatible with newer powershell 7

Fix #12177, close #14291
2023-11-02 12:16:31 +01:00
Don Ho cab4d40b3f Add multi-select commands
Add "Multi-select All" & "Multi-select Next" for 4 modes to multi-select the occurrences respectively:
1. Match Case Only
2. Match Whole Word Only
3. Match Case & Whole Word
4. Ignore Case & Whole Word

Add also 2 commands "Undo the Latest Added Multi-Select" & "Skip Current && Go to Next Multi-select" for undoing latest added slection & skipping current selection and do the next one.

Users can asign the shortcuts to these 10 commands so multi-occurrence can be easily selected via shortcuts and be modified silmutanously.

This feature is inspired by: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8203#issuecomment-623712205

Fix #8203, close #14295
2023-11-01 03:40:54 +01:00
Don Ho 89278e1dc7 Force to enable multi-select feature in Scintilla 2023-10-30 15:40:49 +01:00
Adrian Kulawik 4ba92b04ec Fix "Hide lines" command hiding unselected lines issue
To solve this issue, lambda removeMarker can be set to only remove just begin or end marker. By doing so, the process of merging adjacent hidden sections is limited and as a result, lines that shouldn't be hidden remain visible.

Fix #14166, close #14167
2023-10-29 15:40:14 +01:00
Don Ho 1c27e64126 Use double quot instead of single quot
Fix #14265
2023-10-29 02:48:22 +02:00
Don Ho e2fb15a703 Fix docking panel crash due to messing up config.xml
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13084#issuecomment-1783787209
2023-10-28 19:24:27 +02:00
xomx 5c80be7667 Fix silent installer mode when Notepad++ is running issue
When Notepad++ installer with the '/S' optional param is used while a previously installed Notepad++ instance is running, it does not update the locked main 'notepad++.exe' binary, but the installer still reports success (exit code == 0, regkeys actualized according to the installer version used...).

Moreover - because the installation/upgrade then looks like it is done, some automatic update services like winget cannot be used until a next N++ version is released (winget erroneously reports that the current version is already installed...).

The fix consist to set error code and quit installer, when installer in silent mode, and there's an instance of Notepad++ open.

Fix #10189, fix #10277, fix #22514, fix #14236, fix partially #8514, close #14251
2023-10-27 20:50:57 +02:00
Don Ho dd6140f8c0 Fix bugs for remembering inaccessible file of past session (placeholder)
Fix #14271, fix #14272, fix #14273
2023-10-27 17:31:21 +02:00
Alan Kilborn e5ee4c3638 Fix incoherent behaviour of "Duplicate Current Line" menu command
Fix incoherent behaviour of "Duplicate Current Line" menu command with its keyboard shortcut Ctrl-D, which duplicates also the selection.

Fix #5298, close #14255
2023-10-25 03:03:52 +02:00
xomx 72c5175b33 Fix missing session invalid error for user session & enhance NPPM_GETNBSESSIONFILES
New specs of NPPM_GETNBSESSIONFILES (which is retro-compatible):

======================
NPPM_GETNBSESSIONFILES

Retrieves the number of files to load in the session sessionFileName. sessionFileName should be a full path name of an xml file.

Parameters:

wParam [out]
BOOL* isValidXML, if this pointer is null, then this parameter will be ignored. TRUE if XML is valid, otherwise FALSE.

lParam [in]
const TCHAR * sessionFileName

Return value:
Returns 0 if sessionFileName is an empty string/NULL, or XML session file is corrupted/invalid, else the number of files.
======================

Other minor improvements:
- checking also for a possible ShellExecute errors
- removing the isAllSuccessful boolean, as it is no longer needed.

Fix #14228, close #14232
2023-10-23 01:09:58 +02:00
Don Ho 08794510be Make session inaccessible files remembered (part 2/2)
Following the commit: 4248c2ae22

If the user enables the option "Remember inaccessible files from past session" (disabled by default), and an opened session (the default session "session.xml" or a user session) contains one or several inaccessible files, a message dialog will appear, giving the user the choice to open or not open the placeholders. If the user chooses to open them, empty and read-only documents will be opened as placeholders for these inaccessible files.

Fix #12079, fix #12744, fix #13696, close #14252
2023-10-23 00:07:00 +02:00
molsonkiko 4248c2ae22 Make session inaccessible files remembered (part 1/2)
Add the ability of "placrholders" (the empty document) for the inaccessible files of past session.

The inaccessible files from the current (default) session (i.e., session.xml) will not be lost in the next startup of Notepad++.
Furthermore, if file status detection is enabled in Notepad++ (default setting: ON), and the previously inaccessible files become accessible again (e.g., USB drive is inserted or network drive is remounted), the resurrected files can be reloaded on-the-fly without restarting Notepad++. The user will be prompted to reload if the placeholder is switched in.

Fix #12079, fix #12744, fix #13696, close #14168
2023-10-23 00:00:01 +02:00
xomx bbbf3e8dfc Fix empty message showing while cancelling session file saving dialog
Fix #14235, close #14237
2023-10-18 16:05:58 +02:00
mpheath 089f7d6935 Make JSON5 to use JSON keywords
Fix #14205, close #14223
2023-10-18 16:03:22 +02:00
Don Ho 97dd708e23 Notepad++ release 8.5.8 2023-10-17 14:26:05 +02:00
Don Ho 8e43b0adba Fix user created session modified in multiInst mode
ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12079#issuecomment-1763399514
2023-10-15 18:00:38 +02:00
Karlo-F 8b50f876c9 [xml] Update croatian.xml to v8.5.8
Close #14229
2023-10-14 17:31:12 +02:00
xomx a489388b57 [xml] Update czech.xml to v8.5.8
Close  #14231
2023-10-14 17:28:41 +02:00
Don Ho 09499725de Fix user created session saved on exit issue if multi-Inst is enabled
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12079#issuecomment-1762047207
2023-10-14 02:07:08 +02:00
Don Ho 85d5f972a8 Do not modify user created session even for inaccessible files
Fix partially #12079
2023-10-13 18:17:54 +02:00
xomx 64e95cc61c fix unwanted Afrikaans installer language
A minimalist variant of the previous PR.

Fix #3844, fix #7574, close #14224
2023-10-10 17:25:09 +02:00
~GOLEM~ d972240db6 [xml] Update russian.xml
Close #14222
2023-10-09 02:33:03 +02:00
Juan 1152780de2 [xml] Update spanish.xml v8.5.5
New revision and update

Close #14115
2023-10-08 19:59:07 +02:00
Juan 20a146a7a4 [xml] Update galician.xml v8.5.5
New revision and update

Close #14116
2023-10-08 19:56:35 +02:00
schnurlos 09833992b5 [xml] Update german.xml
Following cf8ddc18c9

Close #14118
2023-10-08 19:52:04 +02:00
~GOLEM~ 25759679e6 [xml] Update russian.xml v8.5.7
Close #14111
2023-10-08 19:46:29 +02:00
Patriccollu 215897d304 [xml] Update Corsican translation for Notepad++ 8.5.8
Close #14122
2023-10-08 19:34:15 +02:00
Andrei Miloiu 27a82f4aac Update Romanian translation
Close #14123
2023-10-08 19:28:51 +02:00
rddim bab8be3f29 [xml] Update Bulgarian localization
Close 14140
2023-10-08 19:23:45 +02:00
Marcellomco 14ac877c2c [XML] Update brazilian_portuguese.xml
Added translation for "Fix data loss issue due to no room on disk for saving"

Close #14141
2023-10-08 19:18:42 +02:00
kubalav 6e61660cd7 [xml] Update Slovak translation
Close #14143
2023-10-08 19:15:31 +02:00
yasmise d94e3e9d54 [xml] Update japanese.xml
Add translation texts for these commits:
* Fix data loss issue due to no room on disk for saving (e30ee85)
* Fix Wrong Categories in Shortcuts Mapper (39001d7)
* Make auto-checking of Find InSelection configurable (OFF or resizable) (591b00e)
* Dark mode tweaks and unicode size support for InSelection configurable size (b3179b5)

Close #14147
2023-10-08 19:08:11 +02:00
Tmp341 088f46eba6 [xml] Update Turkish localization
* According to cf8ddc18 and e30ee852 commits.
* Fixed wording in line 257.

Close #14154
2023-10-08 19:06:46 +02:00
Christophe Mateos a8dd49d14d [xml] Update french.xml
Close #14163
2023-10-08 18:57:53 +02:00
Matteo Concato 424f4a1585 Update italian.xml v.8.5.8
Close #14180
2023-10-08 18:55:12 +02:00
Alan Kilborn b3179b5ccb Dark mode tweaks and unicode size support for InSelection configurable size
Followup PR to #14175

Addresses

* https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14175#issuecomment-1751439227

and

* 591b00e538 (commitcomment-129354863)

Close #14217
2023-10-07 19:10:54 +02:00
Alan Kilborn 591b00e538 Make auto-checking of Find InSelection configurable (OFF or resizable)
Set value to 0 to disable auto-checking "In Selection" checkbox in Find dialog.
Set any value to define the length of selected characters to auto-check "In Selection" checkbox in Find dialog.
The default and maximum value is 1024.

Fix #14108, fix #13677, fix #12639, close #14175
2023-10-06 00:32:28 +02:00
PeterCJ d33e297847 Update Stylers for Perl
- update `stylers.model.xml` to have the 41 styles supported by LexPerl
- update `themes\DarkModeDefault.xml` to have the 41 styles supported by LexPerl

Fix  #14192, close #14193
2023-10-05 20:08:12 +02:00
Cerno_b 3fa51efce7 Store and restore just typed search text on arrow key press
Fix #14174, close #14204
2023-10-04 01:48:55 +02:00
Don Ho 0d8a8dff7d Revert "Add recover search string feature after accessing search history"
This reverts commit 1f3b0e6e44 due to the bug.
2023-09-30 01:17:24 +02:00
PeterCJ caf6303896 Update the Perl keywords for Perl v5.38
- update `autoCompletion\perl.xml` to auto-complete on the new keywords/built-in-functions/pragmas
- update `langs.model.xml` to syntax-highlight on the new keywords/built-in-functions/pragmas

Close #14191
2023-09-29 01:28:37 +02:00
Cerno_b 1f3b0e6e44 Add recover search string feature after accessing search history
Fix #14174, close #14187
2023-09-28 16:13:42 +02:00
Don Ho 7bbe4d1ff8 Fix "Single Line Uncomment" uncomments an extra line issue
Fix from: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12829#issuecomment-1737330242

Fix #12829
2023-09-27 15:42:25 +02:00
Alan Kilborn c4c1089231 Allow Window Windows command to be assigned a shortcut
Fix #14179, close #14183
2023-09-26 20:36:54 +02:00
Christian Grasser cfcf827178 Update Scintilla to v5.3.7 & Lexilla to v5.2.7
Update scintilla with https://www.scintilla.org/scintilla537.zip

Release 5.3.7

    Released 22 September 2023.
    For GTK on macOS, fix popup window behaviour by setting type hints. Bug #2401.
    For GTK, fix assertion failure on some systems when an INDIC_SQUIGGLEPIXMAP drawn for a zero-width character.
    For Qt, allow parent window to handle context menu events by setting as ignored. Bug #2395.
    For Qt, fix potential crash when using IME with large amount of text selected.
    For Windows, fix building with non-English environment. Bug #2400.

and lexilla https://www.scintilla.org/lexilla527.zip

Release 5.2.7

    Released 22 September 2023.
    Fix building on Windows with non-English environment. Pull request #200.
    Bash: fix line continuation for comments and when multiple backslashes at line end. Issue #195.
    Bash: treat += as operator and, inside arithmetic expressions, treat ++ and -- as operators. Issue #197.
    Bash: improve backslash handling inside backquoted command substitution and fix $ at end of backtick expression. Issue #194.
    Bash: treat words that are similar to numbers but invalid wholly as identifiers. Issue #199.
    Bash: consistently handle '-' options at line start and after '|' as identifiers. Issue #202.
    Bash: handle '-' options differently in [ single ] and [[ double ]] bracket constructs. Issue #203.
    F#: improve speed of folding long lines. Issue #198.
    HTML: fix invalid entity at line end and terminate invalid entity before invalid character. Issue #192.

Fix #13991, fix #14062, close #14173
2023-09-26 17:52:52 +02:00
Don Ho 972329fb0c Fix unconsist "In select" behaviour in Find dialog
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14108#issuecomment-1719653099
2023-09-26 01:35:49 +02:00
Don Ho cb3c632444 Fix some typos
Fix #14182
2023-09-25 20:45:41 +02:00
xomx 939b00a61e Removing unused _isRestartedByOS member variable
This amends the previous #14074 PR.

Close #14171
2023-09-22 19:25:54 +02:00
xomx 87efdf5084 Add Win10+ OS Restart-app feature
It will allow for the Notepad++ to be a "restartable app", like some other SW can do today (eg Google Chrome, Mozilla Firefox or all the Microsoft UWP apps).

This is to create a seamless experience wherein, if you have to reboot your PC, you can now pick back up from where you left off and resume being productive.

The OS app-restart feature needs at least Windows 10 (20H1) and the user has to switch on the "Restart apps" in the system Settings (subsection Accounts > Sign-in options).

Implemented as per previous discussion: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12541#issuecomment-1332662024

To disable this feature, add "noRestartAutomatically.xml" into "%APPDATA%\Notepad++\" or Notepad++ installation directory.

Fix #9722, fix #11721, fix #11934, close #14074
2023-09-21 19:56:53 +02:00
Don Ho 39001d7a02 Fix Wrong Categories in Shortcuts Mapper
and make localization more accurate.

Fix #13285, close #14156
2023-09-20 23:07:08 +02:00
Dmitry cb1f2d1479 Check NULL pointer while opening filees to prevent Notepad++ from crash
Fix #14131, close #14094
2023-09-17 20:34:25 +02:00
Alan Kilborn 670e2f098d Fix "Next Bookmark" command not reset current-column issue
Reset current column after moving to next bookmark.

Fix #14137, close #14148
2023-09-16 14:08:25 +02:00
Don Ho 113003a79f Fix security issue CVE-2022-31901
Ref: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31901
&
https://github.com/CDACesec/CVE-2022-31901

Fix #13520
2023-09-15 03:13:22 +02:00
Orden4 dca3f682fd Improve document list display performance
Reduce number of document list redraws on reload. Force redraw on activating item.

Fix #13479, fix #12632, close #14142
2023-09-14 20:27:03 +02:00
Don Ho b068aa9033 Fix saving files loosing Alternate Data Stream issue
Fix #1498, fix #8451, fix #8013, close #14039
2023-09-14 13:53:51 +02:00
Don Ho 01ff1eb881 Fix Cleaer Read-Only Flag command not working immediately regression
Fix #14138
2023-09-12 17:44:19 +02:00
Don Ho e30ee852d6 Fix data loss issue due to no room on disk for saving
Fix #5664, fix #14089, close #14134
2023-09-12 14:50:52 +02:00
Don Ho a511a575b7 Update slovenian.xml 2023-09-10 15:53:57 +02:00
Don Ho 5008b8a0cc Notepad++ v8.5.7 release (Vulnerability fixes) 2023-09-08 02:04:24 +02:00
Don Ho 02cc028cd8 Fix eventual memory leak in Utf8_16.cpp
Fix #14099, close #14104
2023-09-06 18:58:15 +02:00
xomx 6eb74a9653 [xml] Update czech.xml to v8.5.7
Close #14102
2023-09-06 18:21:36 +02:00
Karlo-F f1adb46c59 [xml] Update croatian.xml to v8.5.7
Close #14106
2023-09-06 18:17:56 +02:00
SinghRajenM 4476432d0b Security enhancement: Sign uninstall.exe
Fix #4120, fix #5806, fix #4443, close #14087
2023-09-06 18:06:52 +02:00
Don Ho 06a2c6f377 Make variable name more explicit 2023-09-05 16:50:15 +02:00
Orden4 8afa4c6ea8 Fix dragging tab performance issue while Document List is displayed
Fix #13479, fix #12632, close #14080
2023-09-05 16:40:03 +02:00
Hugo Carvalho 14d8aaaa1f [xml] Update portuguese.xml
For commit: 391f4281ef

Close #14014
2023-09-05 14:33:46 +02:00
Christophe Mateos 4276428e01 [xml] Update french.xml
Close #14048
2023-09-05 14:29:43 +02:00
Andrei Miloiu e64de6cd5f Update romanian.xml
Close #14050
2023-09-05 14:26:42 +02:00
Marcellomco ceb9306451 [XML] Update brazilian_portuguese.xml
Added translation for "Add suppress 2GB file warning option for x64".

Close #14076
2023-09-05 14:23:55 +02:00
rddim 88ba29cff0 [xml] Update Bulgarian localization
Close #14079
2023-09-05 14:21:35 +02:00
kubalav df94bfae54 [xml] Update Slovak translation
Close #14081
2023-09-05 14:17:49 +02:00
yasmise 3c802e0767 [xml] Update japanese.xml
Add translation text for this commit:
* Add supperss 2GB file warning option for x64 (cf8ddc1)

Close #14083
2023-09-05 14:12:11 +02:00
Don Ho 0e3c676668 Remove unnecessary comment 2023-09-02 02:16:24 +02:00
Don Ho f8447b670e Make comment counting right 2023-09-02 02:14:07 +02:00
Don HO ea063246f1
Merge pull request from GHSA-jg7c-f532-25h8
GHSL-2023-102: apply 2694ba6363
2023-09-02 02:03:07 +02:00
Don HO 8c561ba74b
Merge pull request from GHSA-67mm-g35x-jv47
GHSL-2023-103: apply 94b10b9b29
2023-09-01 21:43:28 +02:00
Don HO 4b66d80b2f
Merge pull request from GHSA-cfcv-789h-3pg3
GHSL-2023-112: check if the current pointer and the next one are less than the end
2023-09-01 17:50:08 +02:00
Jaroslav Lobačevski 6567a89094
Add comment 2023-09-01 17:28:58 +02:00
Don Ho fb1985defc Code enhancement: fix a logic error - va_end missing
Fix #14071
2023-09-01 01:32:07 +02:00
Don HO 5402622abc
Merge pull request from GHSA-v2h9-jfmf-5cgq
GHSL-2023-092: Check if i is not bigger than datalen
2023-08-31 14:30:53 +02:00
robionekenobi d3c84b7d23 Fix VS 2022 17.7 compiling error message
With VS 2022 17.7 this error appears
Z:\DevStudio\Work\notepad-plus-plus\PowerEditor\src\WinControls\Preference\preferenceDlg.cpp(3374): error C26819: Unannotated fallthrough between switch labels (es.78). [Z:\DevStudio\Work\notepad-plus-plus\PowerEditor\visual.net\notepadPlus.vcxproj]

Close #14005
2023-08-31 01:21:39 +02:00
(x*ln(7))⁻¹ cf8ddc18c9 Add supperss 2GB file warning option for x64
Fix #14055, close #14069
2023-08-31 01:16:15 +02:00
Don Ho 00481aadd5 Change the slogan in installer
Fix #14052
2023-08-27 02:55:27 +02:00
molsonkiko f4297f1a83 Fix cloned document disassociated issue after Npp being relaunched
Fix #10266, close #14003
2023-08-24 23:55:40 +02:00
Don Ho 7340696734 Add a quote 2023-08-24 15:59:06 +02:00
Mr-Update a714b9464f Update langs.model.xml
Duplicate keyword "add_custom_command" is removed.

Close #14026
2023-08-22 14:17:45 +02:00
Don Ho 3aa9e9280f Fix session file saving problem if it's read-only
Refactoring and fix a typo.

Fix #14024, fix #13894, fix #13859, close #14035
2023-08-22 13:57:07 +02:00
Don Ho fc736d8afb Fix activating wrong file(s) issue after loading session file
... if some files are already opened in Notepad++.

Fix #14006, close #14028
2023-08-20 15:52:53 +02:00
Don Ho ea40755e14 Fix product version value displayed in file's properties
Fix #14010, fix #11886, fix #11431, close #14025
2023-08-19 00:59:32 +02:00
Don Ho e39deab778 Notepad++ v8.5.6 release 2023-08-15 16:13:59 +02:00
~GOLEM~ 119a256907 [xml] Update russian.xml
Fix sha256 line.

Close #14001
2023-08-15 15:06:36 +02:00
Andrei Miloiu 0ca2ade6b2 [xml] Update romanian.xml
Close #13999
2023-08-14 18:49:02 +02:00
Tmp341 d05b2654f9 [xml] Update Turkish localization
* According to 61503a2, 5b52386, 4ffd897, d7aee68, d9b9868, e7f7c31, c143a4a and 391f428 commits.

Close #13992
2023-08-14 18:46:25 +02:00
rddim 8d6df5a465 [xml]Update Bulgarian localization
Close #13980
2023-08-14 18:43:42 +02:00
Patriccollu d1ceb6291d [xml] Update Corsican translation for Notepad++ 8.5.6
Close #13978
2023-08-14 18:41:35 +02:00
Don Ho c45d7aca75 Fix plugin crash regression due to CET enhancement
Regression is introduced by: "Enable optimization flags & CET" (eef91b0)

Ref:https://community.notepad-plus-plus.org/post/88577
2023-08-14 16:37:15 +02:00
Don Ho 3385eb60c3 [xml] Update slovenian.xml 2023-08-13 18:07:36 +02:00
Don Ho a81d39fa6e Minor code improvement 2023-08-13 18:00:28 +02:00
Don Ho 460b2b60f6 Fix "Clear Change History" issue: cloned document markers are not cleared
Fix #13877
2023-08-13 16:12:44 +02:00
Alan Kilborn de25873cb3 Add new API: indicator allocation for plugins
Fix #5744, close #13985
2023-08-12 19:44:56 +02:00
cynthplusplus c49692cb47 Fix hide lines merging to avoid merging across a visible line
Fix #12844, close #13681
2023-08-11 22:31:03 +02:00
Don Ho f6e1b2cab6 Notepad++ 8.5.5 release 2023-08-09 16:06:33 +02:00
schnurlos d7d59401e5 [xml] Fix Update german.xml
Following https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13951

Close #13965
2023-08-07 18:35:30 +02:00
Karlo-F 18b19f30fc [xml] Update croatian.xml to v8.5.5
Close #13971
2023-08-07 18:33:01 +02:00
Marcellomco 54a7cf4f95 [XML] Update brazilian_portuguese.xml
Added translation for "Fix leading & tailling spaces being allowed after renaming tab issue"

Close #13974
2023-08-07 18:30:20 +02:00
~GOLEM~ 7979c36671 [xml] Update russian.xml
Close #13975
2023-08-07 18:26:53 +02:00
yasmise fa0cc8a6e5 [xml] Update japanese.xml
Add a translation text for this commit:
* Fix leading & tailling spaces being allowed after renaming tab issue (391f428)

Close #13976
2023-08-07 18:24:48 +02:00
kubalav edc599e1cc [xml] Update Slovak translation
Close #13977
2023-08-07 18:22:43 +02:00
cynthplusplus 9b7dff6fa9 Fix proper case conversion logic for single and smart single quotes
Changed all instances of TITLECASE to PROPERCASE for consistency.

Close #13584
2023-08-07 15:48:57 +02:00
Don Ho 391f4281ef Fix leading & tailling spaces being allowed after renaming tab issue
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13344#issuecomment-1665687932

Fix #13967, close #13967
2023-08-05 18:59:30 +02:00
Don Ho fdae99e6c0 Fix new document number jumps from "New 1" to "New 3" issue
Solution from:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13931#issuecomment-1653523758

Fix #13194, fix #8677, close #13960
2023-08-05 12:49:49 +02:00
Don Ho dea388bf59 Simplify the logic in buffer creating 2023-08-02 21:11:55 +02:00
ArkadiuszMichalski b09432cfa8 [xml] Update polish.xml to 8.5.5
Close #13955
2023-08-02 16:53:35 +02:00
Don Ho 891e8f936e Revert "Fix untitled document number jumping or repeated problem"
This reverts commit 892ab0850f due to the regression #13636

Fix #13636
2023-08-02 15:47:35 +02:00
schnurlos 7234e1478c [xml] Update german.xml
Close #13795
2023-08-01 21:46:27 +02:00
kubalav feb65c42b9 [xml] Update Slovak translation
Close #13826
2023-08-01 21:43:50 +02:00
Marcellomco 6bcc7a2a00 [XML] Update brazilian_portuguese.xml
Added translation for "Fix menu Tools contains 2 SHA-256 item while using localization"

Close #13804
2023-08-01 21:41:52 +02:00
Hugo Carvalho 4b8bcb0c14 [xml] Update portuguese.xml
Close #13810
2023-08-01 21:39:31 +02:00
yasmise 8b1a49aaae [xml] Update japanese.xml
Add translation texts for these commits:
* Fix menu Tools contains 2 SHA-256 item while using localization (5b52386)
* Add SHA-512 hash features (4ffd897)
* [xml] Add missing entries in english.xml for SHA-1/SHA-512 (d7aee68)
* Add change history navgation commands (d9b9868)
* Fix inaccurate find/replace in files result while using invalid regexp (e7f7c31)
* Remove "Temporary doc site:" from localization files (c143a4a)

Close #13814
2023-08-01 21:36:27 +02:00
artpoli aefd71ca2e [xml] Update Ukrainian translation
Close #13947
2023-08-01 21:33:32 +02:00
Sapziller dd163e797a [xml] update korean 8.5.5
Close #13924
2023-08-01 21:31:50 +02:00
xomx 0f48a82d6c [xml] Update czech.xml to v8.5.5
Close #13890
2023-08-01 21:30:16 +02:00
Andrei Miloiu 61b23dfd1e [xml] Update Romanian localization
Close #13848
2023-08-01 21:29:08 +02:00
A. Regnander 796ae18f0c Update swedish.xml
Added new strings and made changes to match english.xml

Close #13840
2023-08-01 21:26:44 +02:00
Juan e894c2baca [xml] Update galician.xml
Close #13830
2023-08-01 21:25:18 +02:00
~GOLEM~ 119d17f928 [xml] Update russian.xml v8.5.5
Close #13823
2023-08-01 21:23:24 +02:00
Juan c1605852be [xml] Update spanish.xml
Close #13828
2023-08-01 21:21:07 +02:00
Patriccollu e827e51ed1 [xml] Update Corsican translation for Notepad++ 8.5.5
Close #13820
2023-08-01 21:18:32 +02:00
spkprs 1f3cd8752e Update greek.xml
Close #13809
2023-08-01 21:16:42 +02:00
yaoyao5128 694c4101c3 Update chineseSimplified.xml
add Item id "1726-1728".

Close #13808
2023-08-01 21:13:06 +02:00
rddim 459f310edd [xml] Update Bulgarian localization
Close #13801
2023-08-01 21:11:30 +02:00
Christian Grasser cc1a3c826b Update: Scintilla 5.3.6 and Lexilla 5.2.6
update to Scinitlla Release 5.3.6 (https://www.scintilla.org/scintilla536.zip)

    Released 26 July 2023.
    Redraw calltip after showing as didn't update when size of new text exactly same as previous. Feature #1486.
    On Win32 fix reverse arrow cursor when scaled. Bug #2382.
    On Win32 hide cursor when typing if that system preference has been chosen. Bug #2333.
    On Win32 and Qt, stop aligning IME candidate window to target. It is now always aligned to start of composition string. This undoes part of feature #1300. Feature #1488, Bug #2391, Feature #1300.
    On Qt, for IMEs, update micro focus when selection changes. This may move the location of IME popups to align with the caret.
    On Qt, implement replacement for IMEs which may help with actions like reconversion. This is similar to delete-surrounding on GTK.

and Lexilla Release 5.2.6 (https://www.scintilla.org/lexilla526.zip)

    Released 26 July 2023.
    Include empty word list names in value returned by DescribeWordListSets and SCI_DESCRIBEKEYWORDSETS. Issue #175, Pull request #176.
    Bash: style here-doc end delimiters as SCE_SH_HERE_DELIM instead of SCE_SH_HERE_Q. Issue #177.
    Bash: allow '$' as last character in string. Issue #180, Pull request #181.
    Bash: fix state after expansion. Highlight all numeric and file test operators. Don't highlight dash in long option as operator. Issue #182, Pull request #183.
    Bash: strict checking of special parameters ($*, $@, $$, ...) with property lexer.bash.special.parameter to specify valid parameters. Issue #184, Pull request #186.
    Bash: recognize keyword before redirection operators (< and >). Issue #188, Pull request #189.
    Errorlist: recognize Bash diagnostic messages.
    HTML: allow ASP block to terminate inside line comment. Issue #185.
    HTML: fix folding with JSP/ASP.NET <%-- comment. Issue #191.
    HTML: fix incremental styling of multi-line ASP.NET directive. Issue #191.
    Matlab: improve arguments blocks. Add support for multiple arguments blocks. Prevent "arguments" from being keyword in function declaration line. Fix semicolon handling. Pull request #179.
    Visual Prolog: add support for embedded syntax with SCE_VISUALPROLOG_EMBEDDED and SCE_VISUALPROLOG_PLACEHOLDER.
    Styling of string literals changed with no differentiation between literals with quotes and those that are prefixed with "@". Quote characters are in a separate style (SCE_VISUALPROLOG_STRING_QUOTE) to contents (SCE_VISUALPROLOG_STRING).
    SCE_VISUALPROLOG_CHARACTER, SCE_VISUALPROLOG_CHARACTER_TOO_MANY, SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR, SCE_VISUALPROLOG_STRING_EOL_OPEN, and SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL were removed (replaced with SCE_VISUALPROLOG_UNUSED[1-5]). Pull request #178.

Fix #13901, fix #13911, fix #13943, close #13940
2023-08-01 19:44:35 +02:00
Patriccollu 50a15f2e59 Remove extra char on top of french.xml
Close #13949
2023-08-01 19:15:11 +02:00
Don Ho c143a4a6cc Remove "Temporary doc site:" from localization files
The removal is due to 9011253
(9011253a0a (commitcomment-121208415))
2023-07-31 02:24:11 +02:00
Don Ho e7f7c319f5 Fix inaccurate find/replace in files result while using invalid regexp
Fix #13164, close #13945
2023-07-30 13:31:15 +02:00
Don Ho c4733db0af Use better variable name & use standard type name
1. isInFile to isBetweenFileNameQuotes
2. generic_string to std::wstring
2023-07-27 14:26:01 +02:00
jofon 3ea789caea Fix error message of openning file with '=' as end of file name
Ignore '=' at the end of a file name.

Fix #13344, close #13917
2023-07-27 14:02:51 +02:00
Don Ho 4df27c8e8b Fix Project panel inaccurate save dialog initilized path
Fix #13086, close #13936
2023-07-27 13:59:03 +02:00
byronigoe 3bdefd88d0 Fix handling of URLs in JSON
Fix #13522, close 13907
2023-07-23 10:06:58 +02:00
Don Ho 2804ac79f0 Fix "Last Used Directory" may not be saved issue
Also change open/save "Last Used Directory" behaviour - on last changed directory changed in open/save dialog dialog instead on pressing OK.

Fix  #13914, close #13918
2023-07-23 10:05:14 +02:00
Don Ho c8020647dd Fix regression: the small size of Notepad++ on its very first launch
Fix regression is due to a367fc1
2023-07-22 11:39:47 +02:00
Don Ho a367fc1b79 Code enhancement: use std::wstring instead of generic_string 2023-07-21 12:11:08 +02:00
molsonkiko ff2179aeca Remember the directory of "Remember last used directory" through sessions
Fix #11326, fix #10901, fix #4961, fix #4119, close #13887
2023-07-21 11:14:01 +02:00
ozone10 eef91b0214 Enable optimization flags & CET
Fix #13855, close #13869
2023-07-17 11:09:17 +02:00
xomx 9122dc64fa Fix rejection of the standard filenames with dot at the end (regression)
Currently we cannot accept e.g. the "\\?\C:\file.", but when someone tries to open the standard variant 'C:\file.', we should accept that, as this is the way how to work with filenames without an extension.

Fixes #12849, close #13888
2023-07-16 01:54:20 +02:00
Don Ho 38e97b179c Align URL with "Home:" label in About dialog
Fix #13898
2023-07-15 17:21:43 +02:00
Don Ho bf47586259 Add more info on save session error message part 2 2023-07-14 12:56:36 +02:00
Don Ho 7e353903b8 Add more info on save session error message
For the future debugging using.

Related: #13859

Close #13893
2023-07-13 10:42:12 +02:00
xomx 50f942c880 Fix MD5 dialog title not showing regression
One had to click on the Tools -> MD5 -> Generate from files... twice for showing up the dialog (only for the first time, next time it was ok).
Caused by the previous 'Add SHA-512 hash features' commit.

Close #13891
2023-07-13 10:38:40 +02:00
Don Ho ebdc910dcd Fix normal.xml for Normal text auto-completion using not working issue
Fix #12325, close #13875
2023-07-09 13:09:12 +02:00
Don Ho d9b98681f4 Add change history navgation commands
Add Go to next/prev change & clear change history commands.

Fix #12248, close #13861
2023-07-07 21:44:04 +02:00
Don Ho 9011253a0a Remove "Temporary doc site:" label
Fix #13737
2023-07-07 21:13:47 +02:00
80rokwoc4j 6330a688b1 Fix Korean IME append extension issue
Currently, there is a bug in notepad++'s add extension feature only for Korean input after it was changed to hooking-based in the commit below.
b5a5baf#diff-eeb5624a35a43795da4eb970149a9ce7d22858b678a242affd2357520ea3e9f2R607

Bug

    Attempting to save via Enter appends the last character to the extension.
    Candidate mode is similar, with more varied issues depending on IME.

Cause

    the hooking function is executed before the Hangul composition is completed and the last character is added after the extension.
    Same for Candidate mode.

Workaround

It is almost impossible to fix issue 2 while maintaining the current Enter hooking
Exiting Candidate Mode can be done by pressing Enter, ESC, number key, or clicking on a candidate character, but there is too much code to cover all of these cases.
In addition, the Windows input framework is fragmented into IMM and TSF, and various IMEs have different implementations, so it is almost impossible to determine the state of Candidate or Hangul composition through IME hooking.
I have seen differences in the events fired by different Windows versions and different IME programs for the same IME behavior.
This PR solves problem 1 and partially solves problem 2 by not saving with Enter when in Hangul mode.

Fix #11582, fix #12225, fix #12366, close #13788
2023-07-07 20:01:18 +02:00
ozone10 a647991cd7 Fix some GCC and MSC warnings
-  optimize dark mode
-  add initializers

Fix #13867, close #13868
2023-07-07 19:51:39 +02:00
Christian Grasser d6bdc5d3f8 Fix cmake build
- update CMakeLists.txt to contain latest changes sha1 and sha512.cpp
- fixed uppercase issue on cross platform build with mingw on linux

Close #13865
2023-07-06 13:43:11 +02:00
BuzzTheGamer23 0786dc0adc Fix compiling on Scoop mingw-winlibs g++ 13
Fix #13821, close #13822
2023-07-05 13:53:32 +02:00
Don Ho 83d203561d Fix Change History wrong display after "Reload from Disk" command
The code for fixing is from Change Lines plugin:
https://github.com/vinsworldcom/nppChangedLines/blob/main/PluginDefinition.cpp

Fix #12319, fix #12261, fix #13735, close #13858
2023-07-04 03:12:01 +02:00
JarLob d7ea26d931 GHSL-2023-092: Check if i is not bigger than datalen 2023-07-02 09:56:09 +00:00
Don Ho 9e24ec55db Improve lines sorting memory consumption
Use reference instead of copy for the sorting result.
Also improve lines sorting performance slightly: Sorting a 200 MB text file takes 13.71 seconds instead of 14.63 seconds.

Fix #10435, close #13852
2023-07-02 03:32:55 +02:00
jarlob 5687c4f43c GHSL-2023-112: check if the current pointer and the next one are less than the end 2023-07-01 20:45:03 +00:00
JarLob ddf4f746d7 GHSL-2023-102: apply 2694ba6363 2023-07-01 20:02:25 +00:00
JarLob 97f9a4d963 GHSL-2023-103: apply 94b10b9b29 2023-07-01 19:55:49 +00:00
Don Ho 02dd1d36fc Add blank document only when the sessin is remembered
Fix #13796
2023-07-01 03:26:55 +02:00
Don Ho d6b5f53a0e Fix Clipboard History panel shows corrupted data issue
Fix #13817, fix #13844, close #13833
2023-06-30 16:42:43 +02:00
Don Ho 1943ce87b5 [xml] Update slovenian.xml 2023-06-23 01:40:34 +02:00
Don Ho 6131195da7 Fix "Generate from selection into clipboard" crash regression
Fix #13818
2023-06-21 19:35:23 +02:00
Don Ho b14810d087 Update localization files 2023-06-21 18:23:49 +02:00
yasmise d7aee6828d [xml] Add missing entries in english.xml for SHA-1/SHA-512
Fix #13815, close #13816
2023-06-21 18:20:33 +02:00
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 32ce6b5b4c Code Enhancement: make notepadPlus.vcxproj less messed
Fix #13798
2023-06-19 19:29:13 +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
xomx bdd13c0839 [xml] Update czech.xml to v8.5.4
Close #13772
2023-06-17 13:24:13 +02:00
Karlo-F fcb9f56df8 [xml] Update croatian.xml to v8.5.4
Close #13773
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
kubalav 2aa6b0cff5 [xml] Update Slovak translation
Close #13671
2023-06-11 01:49:12 +02:00
schnurlos 15d5c1e9c6 [xml] Update german.xml
Close #13672
2023-06-11 01:46:44 +02:00
Marcellomco 9bbcfd1354 [xml] Update brazilian_portuguese.xml
Mirror changes from "GUI Enhancement: Column Editor" to Brazilian Portuguese language.

Close #13679
2023-06-11 01:30:14 +02:00
Patriccollu ec23e4216f [xml] Update Corsican translation for Notepad++ 8.5.4
Close #13680
2023-06-11 01:28:07 +02:00
Blackspirits 8e0b326b77 [xml] Update portuguese.xml
Close #13689
2023-06-11 01:26:15 +02:00
yasmise 063a31a87c [xml] Update japanese.xml
Update translations for these commits:
* GUI Enhancement: User Define dlgs (052626c)
* Make all the localization files pretty printed (3c15ff5)
* GUI Enhancement: Plugins Admin dialog (4e0f504)
* GUI enhancement: Find in Finder dialog (af8b339)
* GUI Enhancement: General & Editing sections in Preferences dialog (a1d7db8)
* GUI Enhancement: About, Debug, Save dialogs (1806b89)
* Add "open new blank document in addition on startup" ability (61503a2)

Close #13697
2023-06-11 01:22:32 +02:00