Commit Graph

4951 Commits (166b9b5c45f771bb706cfd969a5599773a1dfb4c)

Author SHA1 Message Date
xomx 166b9b5c45 [xml] Update czech.xml to v848
Close #12652
2022-12-16 00:06:20 +01:00
Artem Polivanchuk 83dcf5d575 [xml] Update ukrainian.xml
Close #12276
2022-12-16 00:05:12 +01:00
schnurlos d89f338953 [xml] Update german.xml to v8.4.8
Close #12543
2022-12-16 00:02:05 +01:00
Patriccollu 1b22df5391 [xml] Update Corsican translation for Notepad++ 8.4.8
Close #12561
2022-12-15 23:59:08 +01:00
Christophe Mateos df911511ac [xml] Update french.xml
Close #12590
2022-12-15 23:56:16 +01:00
~GOLEM~ b97305517a [xml] Update russian.xml to v 8.4.8
Close #12601
2022-12-15 23:52:58 +01:00
ArkadiuszMichalski 4276165bbd Fix themes' inconsistent behaviour after saving
Don't write the fontStyle attribute in the theme if it doesn't exist.

Fix #12642, close #12644
2022-12-15 23:50:11 +01:00
kubalav 109ad868b3 Update Slovak translation
Close #12515
2022-12-15 18:13:59 +01:00
Juan be2c1bfbce Update spanish.xml to v8.4.7
Close #12573
2022-12-15 18:10:08 +01:00
Juan 9752c9e103 Update galician.xml v 8.4.7
Close #12572
2022-12-15 18:05:38 +01:00
ArkadiuszMichalski e75bd80693 Fix Go to settings for URL hovered style
Close #12634
2022-12-15 17:13:31 +01:00
Don Ho c0e2073280 Enhance Properties file: add/improve the syntax folding/highlighting
And make the description more accurate on status bar.

Ref:
3fb9c7195f (r93126447)
2022-12-15 16:21:54 +01:00
Christian Grasser fc61868cf2 Update to Scintilla 5.3.2 and Lexilla 5.2.1
update to https://www.scintilla.org/scintilla532.zip with:

    Released 6 December 2022.
    Add SCI_REPLACETARGETMINIMAL to change text without causing unchanged prefix and suffix to be marked as modified in change history.
    Draw background colour for EOL annotations with standard and boxed visuals.
    Add SCI_GETSTYLEDTEXTFULL to support 64-bit document positions on Win32 replacing SCI_GETSTYLEDTEXT which is not safe for huge documents. Feature #1455.
    Send SCN_AUTOCCOMPLETED for SCI_AUTOCSHOW triggering insertion because of SCI_AUTOCSETCHOOSESINGLE mode. Feature #1459.
    Change 'paragraph up' commands SCI_PARAUP and SCI_PARAUPEXTEND to go to the start position of the paragraph containing the caret. Only if the caret is already at the start of the paragraph will it go to the start of the previous paragraph. Bug #2363.
    Change release compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang.
    On Win32, avoid blurry display with DirectWrite in GDI scaling mode. Bug #2344.
    On Win32, use the top-level window to find the monitor for DirectWrite rendering parameters. Temporarily switch DPI awareness to find correct monitor in GDI scaling mode. Bug #2344.
    On Qt, implement SCI_SETRECTANGULARSELECTIONMODIFIER for all platforms.
    On Qt, allow string form XPM images for SCI_REGISTERIMAGE.

and https://www.scintilla.org/lexilla521.zip with

    Released 6 December 2022.
    Update to Unicode 14. Feature #1461.
    Change default compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang.
    Batch: Fix comments starting inside strings. Issue #115.
    F#: Lex signed numeric literals more accurately. Issue #110, Issue #111.
    F#: Add specifiers for 64-bit integer and floating point literals. Issue #112.
    Markdown: Stop styling numbers at line start in PRECHAR style. Issue #117.
    PowerShell: Recognise numeric literals more accurately. Issue #118.

Close #12624
2022-12-15 13:11:17 +01:00
Don Ho 27e19089d2 [xml] Fix xml syntax error 2022-12-15 02:08:31 +01:00
Don Ho 3fb9c7195f Add more keywords and file extentions for languages 2022-12-15 00:56:29 +01:00
Biswapriyo Nath 41ebf9a2ba Make some git related files apply to ini syntax automatically
This .gitconfig file syntax is as similar as .ini file
as documented here[1]. gitmodules[2] and gitattributes[3]
also follow same syntax. The VSCode ini extension[4]
maintain the similarities.

[1]: https://git-scm.com/docs/git-config#_configuration_file
[2]: https://www.git-scm.com/docs/gitmodules
[3]: https://www.git-scm.com/docs/gitattributes
[4]: https://github.com/microsoft/vscode/blob/main/extensions/ini/package.json

Close #12629
2022-12-14 16:54:25 +01:00
ArkadiuszMichalski bbe70f55a6 [xml][force xml] Switch to Python311-x64 and use prebuild lxml for CI 2022-12-14 16:25:23 +01:00
xomx 4f1aa7b004 Fix crash on Win32 Namespace prefixed file name
Implement support for Win32 Namespace prefixed file name in Notepad++.
(Ref: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#win32-file-namespaces)

Support the Win32-filenames escaped by \\?\ or \\?\UNC\, possible globbing in filenames (\\?\C:\fil?.txt) and shell links (\\?\C:\file.txt.lnk) included.

Unsupported (temporarily - it needs further patches for Notepad++):
- any raw filename with length exceeding the MAX_PATH.
- any nonstandard Windows OS filename: with 'dot' or 'space' char(s) at the name end, WinOS reserved ones: AUX, CON, PRN, NUL, COM1-9, LPT1-9 and the ones with invalid ASCII chars in it (0-31, <, >, | , ").

Fix #12453, close #12613
2022-12-14 15:02:04 +01:00
Don Ho ee336b24c1 [xml] Add SQL unit tests
And make unit test error message more explicit.

Close #12627
2022-12-13 15:58:37 +01:00
ArkadiuszMichalski e596baad11 [xml][force xml] Optimize AppVeyor for test files
Close #12628
2022-12-12 21:01:02 +01:00
Massimo Fidanza a755c56639 Enhance SQL function list
Close #12625
2022-12-11 18:50:22 +01:00
ArkadiuszMichalski bf34ef0dd5 Fix Trim Operations not working on selection
Trim Operations works for entire document only.
Now selection for Trim Operations is supported.

Fix #12602, close #12626
2022-12-11 14:27:10 +01:00
Don Ho 4e4d9d95ce Fix delimiter selection crash issue
Fix #12384, close #12621
2022-12-10 13:15:40 +01:00
Don Ho f1e1f6be87 Make Run menu organizable with sub-menu
This commit uses the same mechanism (8e85110b5e) for organization of macro menu:
Add attribute `FolderName="sub-menu name"` in "Command" node to have the sub-menu.

Close #12617
2022-12-09 16:34:01 +01:00
Don Ho 8e85110b5e Make macro menu organizable with submenu
This PR allows users to add one level of submenu manually for macro command in shortcuts.xml, in order to better organize macro menu commands.
For doing it, `FolderName="my menu 1"` attribut should be added in <Macro> node. Only 1 level of submenu is allowed.

Here is an example:

```xml
    <Macros>
        <Macro name="aa" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="A" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="A" />
        </Macro>
		<Macro name="azerty" Ctrl="no" Alt="no" Shift="no" Key="0" FolderName="words">
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="z" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
		</Macro>
		<Macro name="qwerty" Ctrl="no" Alt="no" Shift="no" Key="0" FolderName="words">
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="q" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="w" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
		</Macro>
        <Macro name="BB" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="B" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="B" />
        </Macro>
        <Macro name="Trim Trailing Space and Save" Ctrl="no" Alt="yes" Shift="yes" Key="83" FolderName="func">
			<Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
			<Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
		</Macro>
        <Macro name="azerty2" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="z" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="2" />
        </Macro>
    </Macros>

```

Fix #5349, close #12605
2022-12-07 01:55:15 +01:00
ArkadiuszMichalski 8785b29e21 Update PowerShell keywords
Close #12609
2022-12-06 16:35:24 +01:00
ArkadiuszMichalski e64d1efe75 [xml] Add autocompletion for PowerShell
Fix #12492, close #12606
2022-12-06 16:30:09 +01:00
xomx 6c9f4cdff3 Fix inconsistencies at OS-forced Notepad++ v8.4.7 exit - 2nd part
This fixes users reported inconsistency in between the usual Notepad++ exit initiated manually by a user and the Windows OS forced one in case that the Notepad++ backup mode is ON.

Fix 2nd part of the #12541
Close #12600
2022-12-04 14:07:35 +01:00
ArkadiuszMichalski f6d36235cd Fix sorting failure in zero-length column mode selection
Support thin rectangular by sort commands.
Ref: https://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONMODE

Fix #12299, close #12595
2022-12-02 19:26:37 +01:00
Don Ho c63cc6f219 Fix Default Language not working for the 1st empty file with empty session
Fix #12586
2022-12-02 17:57:50 +01:00
Don Ho f400b682b5 [xml] Include tab cm old layout in comment 2022-12-01 16:19:34 +01:00
Don Ho c1cb0022c4 Add a forgotten command 2022-12-01 15:21:31 +01:00
ArkadiuszMichalski adf2ad0f4f Reduce CI build time (for md/txt/log)
Handle md/txt/log by appveyor in a special way.

Close #12592
2022-12-01 03:35:57 +01:00
Don Ho 210efa503f Fix typos in CONTRIBUTING.md
Fix #12571, close #12587
2022-11-30 23:46:31 +01:00
Don Ho aa8ae48b99 Make tab context menu customizable
Use tabContextMenu_example.xml for the customization:

1. rename to tabContextMenu.xml
2. modify it
3. copy it beside notepad++.exe or to %APPDATA%\Notepad++\ according to your Notepad++ conf
4. relaunch Notepad++

Note for the localization:

1. You have to use the newest localization file (or modify your existing localization file with the newest english.xml).
2. The customized sub-menu entry cannot be translated. User can use his/her native language as value of attribute "FolderName" in tabContextMenu.xml file.
3. User can always add any command beyond the default commands in tabContextMenu.xml file. But such command won't be translated.

Fix #12170, close #12576
2022-11-30 15:03:36 +01:00
Arkadiusz Michalski 785b3417b6 Reduce CI (AppVeyor) build time
Reduce traslation PR validation time.

Fix #12457, close #12454
2022-11-29 20:53:55 +01:00
xomx bd4c323d75 Fix inconsistencies at OS-forced Notepad++ (v8.4.7) exit
Now if the Notepad++ will have an unsaved data and is still running at the OS restart/shutdown, there will be one universal messagebox "Windows session is about to be terminated but you have some data unsaved. Do you want to exit Notepad++ now?".

When Notepad++ backup mode is ON, answer:
  - YES ... Notepad++ simply quits (Notepad++ backup engine silently handles all the stuff needed)
  - NO  ... Notepad++ stays running, user is on his/her own

When Notepad++ backup mode is OFF, answer:
  - YES ... Notepad++ behaves identically as in the case of the usual Notepad++ IDM_FILE_EXIT or WM_CLOSE messages (save dlgs appears etc., it depends on the current user Notepad++ settings)
  - NO  ... Notepad++ stays running, user is on his/her own

Fix v847
2022-11-29 15:32:30 +01:00
Don Ho de5f419314 Fix the tab context menu reload command's state not synchronized
Fix #12579
2022-11-28 19:08:26 +01:00
Arkadiusz Michalski cffdf79a9b More performance optimization for the Remove Empty Lines command
Close #12544
2022-11-25 18:01:26 +01:00
dinkumoil 891f2ed682 Add function list parser for NppExec plugin's scripting language
Fix #12517, close #12519
2022-11-25 16:29:00 +01:00
xomx 6b34f9ce08 Fix incorrect plugin architecture reports partially
Fix partially #12565

Close #12566
2022-11-25 13:27:01 +01:00
VinsWorldcom f03381e779 Autocomplete enhancement: sharpen icons
Fix #12549, close #12550
2022-11-23 19:24:08 +01:00
CennoxX 22963f53dd Add Mark Styles to theme DansLeRuSH-Dark
Add missing Mark Styles, remove missplaced tabs.

Fix #12504, close #12551
2022-11-23 18:03:49 +01:00
Don Ho 3fcad98883 Fix localization files 2022-11-22 19:13:09 +01:00
Don Ho 11ccc415e7 Update localization files 2022-11-22 18:32:36 +01:00
Don Ho 4c188c3019 Fix style.xml not remember by light mode 2022-11-22 16:59:50 +01:00
ozone10 e2a1234384 Dark mode enhancement
1. Add "Follow Windows dark/light mode".
2. Remember user's toolbar, tabbar and theme choices for dark mode and light mode separately.
3. Add 2 hidden options for applying tab background color from themes (for both dark mode and light mode).

Fix #9183, fix #9992, fix #10153, fix #10239, fix #10544, fix #10644, fix #11867, fix #10239, close #12466
2022-11-22 01:54:05 +01:00
Arkadiusz Michalski 6803b69c0b Make some styles to be more visible with the current line style
Fix #12506, close #12507
2022-11-14 18:58:40 +01:00
Arkadiusz Michalski d53ed27bb3 Improve the performance of Remove Empty Lines command
Fix #12462, close #12512
2022-11-14 18:46:18 +01:00
dinkumoil 87a53d1ed2 Add Pascal/Delphi for Function List
Add Pascal/Delphi FunctionList parser and unit tests.

Fix #3664, close #12489
2022-11-14 15:35:10 +01:00