Commit Graph

5085 Commits (e987f360cdde3a8483745953bd0f3ea090a30250)

Author SHA1 Message Date
xomx 4e1a3eef4a Add FlushFileBuffers-fail user notification
Close #14842
2024-03-09 03:28:15 +01:00
Christian Grasser 9d09ee818a Fix a potential undefined behaviour & improve some codes
- init grabSize
- optimize WcharMbcsConvertor instance set
- remove unused var in TreeView::searchLeafRecusivelyAndBuildTree()
- missing nullpointer check in ScintillaEditView::init()

Close #14844
2024-03-08 21:00:17 +01:00
Don Ho 83f0232d91 Add Session Snapshot Periodic Buckup info into Debug Info dialog
To expose this information, we can know if Periodic Buckup feature is related to user data losing due to power outrages issue.

Ref:
1. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14781
2. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133

Close #14833
2024-03-06 19:18:23 +01:00
mpheath fd1f785b89 Add Change History colour configuration
Fix #12321, fix #13915, close #14819
2024-03-06 15:48:15 +01:00
Don Ho b3ff400cc8 Fix python wrong decorator attribute colors
Add "ATTRIBUTE" color in Python.

Only DarkModeDefault.xml & Zenburn.xml are modified due to the other themes missing "DECORATOR" color with which "ATTRIBUTE" color uses.
I let people who use those themes and need "DECORATOR" & "ATTRIBUTE" colors to modify them.

Fix #5894, close #14830
2024-03-05 20:20:01 +01:00
Don Ho 060396c698 Fix NPPM_RELOADFILE API return wrong result issue
Now NPPM_RELOADFILE returns the correct value: TRUE if reloading file succeeds, otherwise FALSE.

Ref: https://community.notepad-plus-plus.org/topic/25533/nppm_reloadfile-should-return-true-_only_-on-success/4
2024-03-04 03:04:56 +01:00
molsonkiko 2adf712135 Enhance Shortcut Mapper filter to find the command items more easily
This commit allows several keywords separated by white space to find the command items.

Fix #14743, close #14824
2024-03-04 02:21:32 +01:00
Don Ho 8bfe2d7a77 Fix an error 2024-02-29 22:57:59 +01:00
Don Ho 35deb8a303 Make "Prevent C0 input" feature optional 2024-02-29 17:51:27 +01:00
Alan Kilborn 40adc38201 Prevent typing control characters into document
Fix #13279, close #14766
2024-02-28 17:01:23 +01:00
Don Ho 6c027d343f Modify the layout of "Editing 2" in Preferences dialog
Ref: 12548b6abb (commitcomment-139128197)
2024-02-28 15:41:35 +01:00
Don Ho 13cd4acad6 Fix "Save a Copy As" dialog's wrong title
1. Use appropriated localized title on some main save/open dialogs.
2. Reuse menu localized string and remove some redundent entries from localization files.

Fix #14737, fix #11860, close #14808
2024-02-28 04:54:38 +01:00
Don Ho 12548b6abb Reorganize "Editing" sections in Preferences dialog 2024-02-26 05:40:42 +01:00
xomx ce8fb873a6 Fix possible no-GUI state when using systray
Fixes possible Notepad++ non-GUI state when minimized to systray with an unsaved file, closing from the systray icon & then cancelling that closing from the invoked Notepad++ save dialog.

Fix #14777, close #14778
2024-02-25 01:32:03 +01:00
Alan Kilborn fbd4a40214 Fix context menu popup location issue
Make context menu popup location at current text position when invoked via keyboard.

Fix #14727, close #14730
2024-02-24 15:34:26 +01:00
xomx f66dd91046 Fix Notepad++ blocked when closed minimized or from systray
When Notepad++ is minimized and there are 2 or more unsaved opened files,
close Notepad++ directly from the taskbar (no periodic backup) will launch modal Save All dialog,
which will not be on the foreground. Hence the blocage of Notepad++.

This commit fixes the issue above.

Fix #14718, close #14725
2024-02-24 15:16:58 +01:00
unknown 8ffe8147c7 Few fixes for Finnish translation
Tab vs. tabulator confusion fix.

Close #14755
2024-02-24 03:38:09 +01:00
Don Ho 27156bdf3c Merge branch 'fix_shortcut_mapper_scintilla_shortcut' of https://github.com/molsonkiko/notepad-plus-plus into molsonkiko-fix_shortcut_mapper_scintilla_shortcut 2024-02-23 19:46:27 +01:00
GabrielFrigo b30e2755c8 Update BATCH (Remove chcp and choice)
Close #14715
2024-02-23 02:41:21 +01:00
Don Ho d83d4c9239 Fix plugins not recieving some Scintilla notification types regression
Remove the restriction for Scintilla notification types for plugins.

Ref: https://community.notepad-plus-plus.org/topic/25497/notepad-release-8-6-4/9
2024-02-22 17:22:54 +01:00
Don Ho 9a6614ea98 Enhance NPPN_GLOBALMODIFIED notification
The commit enhances 49e6957d48
2024-02-21 19:03:31 +01:00
Don Ho 49e6957d48 Fix Replace All action not notifying plugins of modification regression
Add NPPN_GLOBALMODIFIED to notify plugins that the current document is just modified by Replace All action.
	//scnNotification->nmhdr.code = NPPN_GLOBALMODIFIED;
	//scnNotification->nmhdr.hwndFrom = BufferID;
	//scnNotification->nmhdr.idFrom = 0; // preserved for the future use, must be zero

For solving the performance issue (from v8.6.4), Notepad++ doesn't trigger SCN_MODIFIED & other Scitilla notifications during Replace All action anymore.
Plugin devs should monitor NPPN_GLOBALMODIFIED instead. This notification is implemented in Notepad++ v8.6.5.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14685#issuecomment-1955229867

Fix #14767, close #14768
2024-02-21 16:30:25 +01:00
Don Ho 120fc5d726 Notepad++ v8.6.4 release 2024-02-20 01:42:05 +01:00
Don Ho 827b08f6ff Fix regression that the view cannot be activated by mouse clicking
SCI_SETCOMMANDEVENTS cannot be set to false, because SCEN_SETFOCUS is being used by Notepad++

The regression was introduced by commit: 044296eea1

Fix https://community.notepad-plus-plus.org/topic/25490/notepad-release-8-6-3/7?_=1708380779619
2024-02-19 23:27:48 +01:00
Don Ho 1491efd95e Add a new great refactoring 2024-02-19 02:09:26 +01:00
Don Ho 5110069841 Notepad++ v8.6.3 release 2024-02-18 17:32:41 +01:00
Don Ho 250dfe0f8b Fix new editing dialog not in dark mode
Fix https://community.notepad-plus-plus.org/topic/25478/notepad-v8-6-3-rc-2/3?_=1708095675232
2024-02-16 16:00:03 +01:00
molsonkiko 840c4e5854 use ScintillaKeyMap::toString() to get all shortcuts
simplifies code, also matches "or" in a list of multiple shortcuts.
2024-02-15 14:31:40 -08:00
Don Ho f2d66170fc Restore multi-editing option on GUI
Make also Column To Multi-editing optional on GUI and cancel the usage of noColumnToMultiSelect.xml file.
For users who have added "noColumnToMultiSelect.xml" for disabling "Column To Multi-editing" feature,
please go to "Editing 2" section of Preferences to disable this feature.

Ref: https://community.notepad-plus-plus.org/topic/25364/notepad-v8-6-2-release/11?_=1707952609907
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14611#issuecomment-1937487607

Fix #14645, close #14734
2024-02-15 18:27:48 +01:00
Karlo-F 75b239cf8a [xml] Update croatian.xml to v8.6.3
Close #14726
2024-02-15 15:35:05 +01:00
xomx 63d0f88b0a [xml] Update czech.xml to v8.6.3
Close #14728
2024-02-15 15:33:04 +01:00
molsonkiko 36793b5164 Enable shortcut mapper to filter keycombos for scintilla commands
Previously the shortcut mapper filtered the keycombo
    for every other type of command, but not scintilla commands.
2024-02-14 15:26:20 -08:00
Gustavo5634 978118dc0e Add latest ES/JS keywords for auto-completion
Fix #14705, close #14711
2024-02-12 13:56:48 +01:00
Piotr Kostrzewski a670b26a7c Update polish.xml to 8.6.3
Close #14675
2024-02-11 17:29:15 +01:00
Juan 5f95df0ae4 [xml]Update galician v.8.6.3.xml
Close #14713
2024-02-11 17:25:05 +01:00
Juan eabd620507 [xml]Update spanish v.8.6.3.xml
Close #14712
2024-02-11 17:22:46 +01:00
DARK_GEMS 346ed36c01 Add html 5 style code in css.xml for auto-completion
Close #14698
2024-02-11 16:41:33 +01:00
~GOLEM~ be4584832f [xml] Update russian.xml v8.6.3
Close #14678
2024-02-11 16:24:55 +01:00
Andrei Miloiu 2ef8d147ee [xml] Update romanian.xml
Close #14598
2024-02-11 16:22:52 +01:00
Blackspirits 632dcaa470 Update portuguese.xml
Close #14669
2024-02-11 05:00:47 +01:00
Patriccollu a0bd2f8816 [xml] Update Corsican translation for Notepad++ 8.6.3
Close #14677
2024-02-11 04:58:07 +01:00
Marcellomco b4a2040b77 [XML] Update brazilian_portuguese.xml
Added translation for "Update localization files"

Close #14679
2024-02-11 04:56:37 +01:00
schnurlos 7beb15d56c [xml] Update german.xml
Following c6e433f70b

Close #14680
2024-02-11 04:54:58 +01:00
kubalav 59b9257cb0 [xml] Update Slovak translation
Close #14682
2024-02-11 04:53:27 +01:00
rddim 6875e2673f [xml] Update Bulgarian localization
Close #14686
2024-02-11 04:51:51 +01:00
yasmise 04b595f095 [xml] Update japanese.xml
Add translation text for this commit:
* Update localization files (c6e433f)

Close #14690
2024-02-11 04:49:35 +01:00
Don Ho 087430f8f1 Fix regression of NPPM_RELOADFILE
Regression is introduced by:
bb278b26fc

Fix #14693, close #14708
2024-02-10 15:35:05 +01:00
Don Ho 76cfc5945e Fix loosing all open files after restarting as Admin to save a file
While saving a file needs the admin privilege, and if "Always In Multi-Instance Mode" option is activated, the current Notepad++ instance will be closed and a new instance with admin privilege contains no file is launched - it makes user confused because there are nothing to be edited and saved.

This commit fixes the issue by keeping the 1st instance opened, and launching the 2nd instance (with admin privilege) which contains the file in question - so user can modify it and save it.

The new behaviour (of this commit) not only fixes the issue, but also makes more sense, since it's "Always In Multi-Instance Mode". Note that the same behaviour happens if the session & periodical backup feature is disabled.

Fix #14694, close #14701
2024-02-09 16:27:16 +01:00
vlakoff c927ee8ce5 Add .mjs extension to the "web script" file associations
close #14689
2024-02-08 05:06:09 +01:00
Don Ho 044296eea1 Fix Replace All crash & performance issue
Fix  #14630, close #14685
2024-02-08 02:20:57 +01:00
Don Ho 0d05dae4ba Add more unit tests for Function List of Python 2024-02-07 22:30:55 +01:00
Дим Щ e600c35ad2 Enhance Function List for Python
Support for async def and colons in argument list

Fix #13908, close #14628
2024-02-07 22:25:34 +01:00
Don Ho c6e433f70b Update localization files 2024-02-05 16:27:59 +01:00
anatoly77g 91074da46d Fix macro recording twice for some commands
When recording a keyboard macro, some commands are added to the macro twice.
When later playing back the macro, they happen twice, which leads to incorrect edits.

Fixed commands:
* EDIT_CUT (Cut)
* EDIT_COPY (Copy)
* IDM_EDIT_LINE_UP (Move Up Current Line)
* IDM_EDIT_LINE_DOWN (Move Down Current Line)

Not fixed: issue 13722:
SEARCH_GOTOMATCHINGBRACE (Go to Matching Brace)

Fix #5217, fix #14634, close #14613
2024-02-04 15:40:25 +01:00
Don Ho f09b653d19 Fix calltip crash due to the division by zero
Fix #14664, close #14667
2024-02-04 13:08:53 +01:00
Compaszer bf65ba5329 Added php 8.3 functions to syntax highlighting and autocomplete files
Fix #14635, close #14636
2024-02-03 14:19:12 +01:00
DARK_GEMS ec29bc101c Update css.xml
Some css properties added.

Close #14666
2024-02-03 12:39:05 +01:00
Alan Kilborn cb8165b161 Fix "Open File" command not working with TAB preceded
Fix #14543, close #14654
2024-02-03 12:31:37 +01:00
Don Ho 9e7f1e514c Make copy/cut line while no selection optional
With this commit, there's the same issue in both JsonTools & NavigateTo (in C#), described here:
https://community.notepad-plus-plus.org/topic/25315/notepad-v8-6-1-release/2?_=1706795482129 

To reproduce:
1. Uncheck "Enable Copy/Cut Line without selection" checkbox in Editing section of Preferences.
2. Make sure there's no selection in the current editor
3. Launch "Open JSON tree viewer", and try to Cut "@" symbol on the top left text field with Ctrl-X

To remedy such problem, the plugin should call NPPM_MODELESSDIALOG with MODELESSDIALOGADD on the handle (HWND) of modeless dialog, just after the dialog creation.
(https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h#L93)
With the registration of dialog handle, Notepad++ will pass all events which belongs to dialog's controls to the registered dialog.

Both source code of JsonTools & NavigateTo have been examinated, NPPM_MODELESSDIALOG which should be used has not been called.
Not sure it's the case of all the plugin in C#, it's not the issue for the C/C++ plugins anyway, because the dockable modeless dialog (inherited from StaticDialog) is registered after its creation:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp#L257

Fix #14638, close #14660
2024-02-03 01:29:54 +01:00
Don Ho c0eaf544a6 Add "Plugin Communication" reference
and update copyright year for plugin header files.
2024-01-28 13:47:49 +01:00
Don Ho bb278b26fc Enhance API description in comment
Close #14587
2024-01-28 05:20:22 +01:00
Don Ho ae9aa22436 Fix Copy/Cut/Paste issue in Vertical Edge text field (preferences)
This commit allows Ctrl-V, Ctrl-C, Ctrl-X, Ctrl-A & Ctrl-Z in text field, so user can do paste, copy, cut, select all & redo/undo action respectively in Vertical Edge text field of Préférences dialog.

Also the paste content is controlled to allow only the number and white space.

Fix #13874, close #14586
2024-01-16 19:44:47 +01:00
Don Ho 7479e31fb3 Notepad++ v8.6.2 release 2024-01-14 19:20:08 +01:00
Don Ho 75ae73c173 Fix Copy/Cut/Paste shortcut modification conflict problem
The bug is introduced by:
f7c44b4413

Fix #14585, close #14586
2024-01-14 00:18:58 +01:00
Don Ho f7c44b4413 Restore Shift-DEL, Ctrl-INS and Shift-INS & fix Ctrl+V can't paste into the text fields of forms for certain plugins
This PR restores shortcuts Shift-DEL, Ctrl-INS and Shift-INS for Cut / Copy / Paste respectively.
the action to delete entire line without selection is removed in this PR due to its shortcut Shift-DEL has triggered several critical issues.

To delete entire line, the users are encouraged to use Scintilla default shortcuts set in Shortcut Mapper: Ctrl-Shift-L (SCI_LINEDELETE). User can remap it to another shortcut via Shortcut mapper.

Fix #14568, fix #14470, fix #14571, close #14557, close #14569
2024-01-11 05:34:55 +01:00
artpoli f7de2076c3 [xml] Update Ukrainian translation
Close #14570
2024-01-11 00:39:25 +01:00
Christophe Mateos 619b5a68ec [xml] Update french.xml
Close #14575
2024-01-11 00:27:11 +01:00
Helge Konetzka 464967e26c Fix clang compilation error
Close #14559
2024-01-10 23:33:03 +01:00
Don Ho eb0922c223 Fix cloned document position not remembered though sessions
Fix #14461, fix #14164, close #14565
2024-01-08 16:55:32 +01:00
Don Ho 6f5f246791 Notepad++ 8.6.1 release 2024-01-05 17:26:31 +01:00
Don Ho 9c7bb8a080 Fix F4 not working for search result
Fix #12023, close #14544
2024-01-04 04:04:16 +01:00
Don Ho dc6f6d1103 Fix deleting in column mode also delete an unexpected EOL
Fix #14426, close #14536
2024-01-03 06:16:54 +01:00
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