Commit Graph

4981 Commits (b3ff400cc8ddfbd1b5da54d6519a43bad6195f2a)

Author SHA1 Message Date
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