Commit Graph

3627 Commits (78a2f32692a7db9d91fb37353c70882cd1519e44)

Author SHA1 Message Date
mere-human 55f2644953 Fix regression: no error message when locked file could not be saved
Show file locked warning.
This is a regression from commit 469fa62c0e

Fix #9994, close #10487
2021-09-03 14:18:53 +02:00
Christian Grasser f428fbab13 Fix building MinGW release twice in appveyor builds
Improve also MinGW build (toolbar appears) by adding changes from patch https://github.com/notepad-plus-plus/notepad-plus-plus/files/6947163/notepad-gcc-build.patch.txt

Fix #10328, fix #10185, close #10469
2021-09-01 11:54:00 +02:00
Christian Grasser ed5c2631c1 Fix asan(address sanitizer) issue with no plugins
Fix #10470, close #10471
2021-09-01 11:19:45 +02:00
Ashfaaq18 5c52aff7a1 Fix inconsistency of Document List context menu
Document List context menu now appears only when files are selected.

Fix #10463, close #10464
2021-09-01 00:49:44 +02:00
Don Ho dab02db976 Add non MSC info into debug info 2021-08-31 18:41:22 +02:00
Don HO f6488cdc7a
Update english.xml 2021-08-31 15:41:04 +02:00
Don HO 7006714c16
Update AboutDlg.cpp 2021-08-31 15:39:00 +02:00
Don Ho 88ee2eddb0 Fix the crash regression due to the array size increase
LexerStylerArray contains a MAX_LEXER_STYLE-element array (currently 100) of LexerStyler objects. Every one of them in turn via inheritance from StyleArray contains a SCE_STYLE_ARRAY_SIZE-element array (I tested with 99) of Style objects each at least 56 bytes in size. This in my test case requires over 550k of memory, and if LexerStylerArray is allocated on stack, the stack becomes corrupted. (Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10454#issuecomment-908732786)

Inline arrays are a part of an object and increase its size while std::vector uses memory from the heap and stores internally only a pointer to a chunk of memory, thus the size of an object with a vector is substantially smaller than the one with an inline array. (Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10454#issuecomment-908780106)

Fix #10454, fix #10206
2021-08-31 01:38:55 +02:00
Don Ho c1cce29c84 Fix build system error 2021-08-31 00:16:52 +02:00
Don Ho 84c1505fab Add custom date time insert
Make Insert date time customizable.
Also make date time order reversable for short & long format.

Fix #10445, close #10453
2021-08-29 19:42:05 +02:00
mere-human d41b4e1645 Fix current directory not applied bug after changing current directory option
Refresh the working directory when changing Follow current document preference.

Fix #10396, close #10426
2021-08-28 17:55:42 +02:00
ozone10 68d293e711 Allow custom color for Document Map
Fix #10052, close #10422
2021-08-26 01:03:18 +02:00
Don Ho e12b161d48 Make Incremental Search panel translatable
Fix also checkbox overlap in incremental search bar.

Fix #8955, fix #8574, close #10420
2021-08-25 16:38:42 +02:00
Don Ho deab93f9b5 Make "Confirm Save All" dialog more clear
Use "Always Yes" button instead of "Cancel", and whole dialog is translatble.

Fix #10339, close #10429
2021-08-25 16:31:51 +02:00
Don Ho a391161e3d Add the info of TypeScript in overrideMap.xml
Close #10440
2021-08-25 16:29:16 +02:00
Don Ho a720b88e52 Update localization files to v8.1.4 2021-08-25 15:42:59 +02:00
Don HO 390f7631fa Notepad++ 8.1.4 release 2021-08-25 02:17:47 +02:00
Patriccollu d42c6a58aa Update Corsican translation for Notepad++ 8.1.4
Close #10415
2021-08-21 00:05:22 +02:00
yasmise e057e3ea88 update japanese.xml
Follow these commits:
* Substitute "Mark" for "Style" in the menu entries (2576bf884b)
* Update English localization file to v8.1.4 (45831ac050)

Close #10416
2021-08-21 00:02:20 +02:00
ozone10 8ac13d9065 Make dark mode compatible with Windows 11
Use documented way to enable UxTheme dialog texture.
Remove undocumented way.
Disable UxTheme dialog texture in dark mode.

Fix #10299, close #10383
2021-08-20 12:08:41 +02:00
~GOLEM~ 4831cb80bd Update russian.xml v8.1.4
Close #10410
2021-08-20 12:02:47 +02:00
kubalav 79ab11ee8b Update Slovak localization file to v8.1.4
Close #10411
2021-08-20 12:00:08 +02:00
Thomas De Rocker 0b98ae56e9 Update dutch.xml
Close #10382
2021-08-20 11:55:37 +02:00
Don Ho 45831ac050 Update English localization file to v8.1.4
and French + Taiwanese Mandarin localization files are updated.
2021-08-20 02:55:36 +02:00
mere-human 8f123f8cca Fix file dialog append extension with RTL language
When both Windows and Notepad++ use RTL language, the Save/Open button is swapped with Cancel button.
Now take that into account when searching the button.

Fix #10397, close #10400
2021-08-18 14:05:25 +02:00
Don Ho 0733e6f241 Add Insert Date Time commands
Add Insert Date Time commands for both short & long format.

Fix #497, fix #2821, fix  #8184, fix #8302
2021-08-18 12:45:51 +02:00
mere-human 0c16f87a18 Fix Find-in-Files "Follow current doc" not working issue when absolute Default Directory set
This PR uses always current buffer's path in Find in Files dialog:
When "Follow current doc." is checked, then use current path first.
If that fails, fallback to the working directory as it was before.

Fix #8045, close #10387
2021-08-16 14:27:47 +02:00
Don Ho 302bab894f Make plugins' toolbar icons display in light/dark mode
The plugins' toolbar icons can be displayed in both light/dark mode by using their original icons.
Though using new API NPPM_ADDTOOLBARICON_FORDARKMODE to have better look & feel is recommanded.

Fix #9959, fix #10388, fix #9809
2021-08-16 02:12:03 +02:00
ozone10 5e899f2a6c Enhance dialog visual look & feel
Change dialog extyles.

Fix #10384, close #10385
2021-08-15 20:27:46 +02:00
Don HO 92b45d48c7 Include TypeScript files into installer
Include TypeScript auto-completion file & function list file into installer.
2021-08-15 12:02:45 +02:00
0xlay f50061981a Add support DarkMode, function list & auto-completion for TypeScript
Close #10381
2021-08-15 11:47:19 +02:00
0xlay 9a3152faa2 Add TypeScript language
Fix #10353, close #10361
2021-08-13 20:12:02 +02:00
Don Ho 2576bf884b Substitute "Mark" for "Style" in the menu entries
In order to avoid users' confusion, all "Mark" occurrences of menu entries are substituted for "Style", so users won't confuse with "Mark" fonction in Find dialog.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10195#issuecomment-893481499

Close #10351
2021-08-13 13:54:27 +02:00
Don Ho 686bf4fba1 Fix security flaw issue
There's a security flaw for the un-installation of Notepad++ in Windows Register, the string without quotes:
C:\Program Files\Notepad++\uninstall.exe, whereas it should be "C:\Program Files\Notepad++\uninstall.exe".
The reason is, hacker can create a file called c:\program.exe, then Windows could interpret Files\Notepad++\uninstall.exe as the argument, so the system could run c:\program.exe. Ref:
https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464

Fixed by @ozone10:

Fix #10191, fix #6165, close #10369
2021-08-13 13:49:40 +02:00
Don HO 2b0620b078 Notepad++ 8.1.3 Release 2021-08-12 19:39:53 +02:00
Ashfaaq18 f5ea4898cf Fix the regression: absence of toolbar tooltip
This regression is du to 733c7e73de

Fix #10355, close #10359
2021-08-09 23:58:01 +02:00
Don Ho 4cc3d9fd1a Add Markdown UDL of dark mode in release packages
Add Markdown UDL of dark mode and the ability to apply it:
After dark mode being swiched in, all files with extension .md will be opened by applying Markdown UDL of dark mode.
When light mode is switched back, the default Markdown UDL (of light mode) will be applied to the new opened .md file.
Please note that all .md files opened before switching to new mode, will remain in the previous mode. User has to close and reopen these files to have the right Markdown UDL applied.

Fix #10196, close #10347
2021-08-08 03:22:15 +02:00
Don Ho a36a12257a Add more quotes
Close #10342
2021-08-08 03:19:40 +02:00
Ashfaaq18 5c2c317352 Fix Function list current empty lost issue while Sort/Unsort/Save/Reload
Retains tree state of function tree during Sort/Unsort and Save/Reload actions.

Fix #8819, fix #10280, fix #10294, close #10322
2021-08-08 03:08:51 +02:00
ozone10 13623669a4 Make title, button, progress bar dark again
Fix #10326, close #10327
2021-08-08 02:34:53 +02:00
Ashfaaq18 733c7e73de Fix 2 RTL issues: wrong path in tooltip and file drag & drop Bug
Fix 2 RTL issues:
1. wrong path in tooltip of tab (#8520).
2. the file drag and drop bug (#8730) - now user can drag and drop to the exact view.

Fix #8520, fix #8730, close #10348
2021-08-08 02:21:45 +02:00
Don Ho 14a104ad46 Fix shortcut conflict detection error in shortcut mapper
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5374#issuecomment-891879420

Fix #5374
2021-08-03 20:56:29 +02:00
Don Ho a7ede53c26 Add and remove some quotes 2021-08-03 20:24:06 +02:00
schnurlos 32965d5549 Update german.xml to v8.1.2
Close #10319
2021-08-03 19:44:57 +02:00
Don Ho 8a77b07d96 Fixed detection of shorcut key conflicts when filtering
Currently, when the shortcut mapper is filtering shortcuts, it doesn't display key conflicts properly. This is due to the indexes of the filtered shortcuts being different (since there are less) than the original list of shortcuts.

Author @jmbockhorst
(the original branch has been deleted)

Fix #5374, close #5453
2021-08-03 13:21:23 +02:00
mere-human 90485aaa21 Use CRLF line ending in Copy command from Windows dialog
Also, move endsWith() function to Common.h and reuse it in WindowsDlg.

Fix #10311, close #10314
2021-08-03 03:08:49 +02:00
Tmp341 ef1ecaa936 Update Turkish localization
* According to 27524e1, 80c285e, a0472fd, 599f185, 53f1e6b, 8e38b9d, 5b9e3b6 and b8f23a1 commits.

Close #10315
2021-08-03 00:51:43 +02:00
xomx 2dc31d0d2f Update czech.xml to v8.1.3 (2nd attempt)
Close #10316
2021-08-03 00:44:46 +02:00
rddim 1479b130f6 Update Bulgarian localization
Close #10244
2021-08-02 18:05:26 +02:00
Luxy a91d0d7b8d Update brazilian_portuguese.xml
Close #10173
2021-08-02 17:50:40 +02:00
ArkadiuszMichalski db62ce2e33 Update polish.xml to 8.1.3
Update polish.xml to 8.1.3 (according to the latest commit).

Close #10308
2021-08-02 15:59:38 +02:00
Sapziller 61bcbbd900 update korean.xml 8.1.3
Close #10309
2021-08-02 15:49:44 +02:00
Don Ho 242530c1fc Make margin width display correctly under high DPI 2021-08-02 01:43:16 +02:00
mere-human 121f19d8f9 Fix crash when several instances of the file dialog are shown
Pass a pointer to FileDialogEventHandler instance via GWLP_USERDATA
instead of using static variable. This way each window can have its
own pointer.

Fix #10290, close #10303
2021-08-01 23:58:03 +02:00
Thomas De Rocker 96e985dea5 Update dutch.xml
Close #10174
2021-08-01 17:08:39 +02:00
Don HO 1c1a0c487a Update about dialog icons 2021-08-01 16:30:03 +02:00
ozone10 318a566ae7 Apply explorer style on treeview
Enable hottracking for explorer style.
Allow dynamic change based on treeview background.

Fix #10061, close #10304
2021-08-01 16:05:26 +02:00
Hugo Carvalho 8417d3fb40 Update portuguese.xml
Close #10306
2021-08-01 14:19:33 +02:00
kubalav ab02e3f9de Update Slovak translation
Close #10305
2021-08-01 14:16:11 +02:00
yasmise 1e26722249 update japanese.xml
Follow this commit:
*  Make the translation more accurate (53f1e6bff8)

Close #10182
2021-08-01 02:10:08 +02:00
Edditoria 3eb71d87b1 Update localization: Hong Kong Cantonese
As at commit 7c82c52 of this repo.

Close #10292
2021-07-31 23:16:03 +02:00
~GOLEM~ 4eef48b32b Update russian.xml
Close #10268
2021-07-31 17:40:38 +02:00
Patriccollu 17290fadbc Update Corsican translation for Notepad++ 8.1.3
Close #10293
2021-07-31 17:37:17 +02:00
Don Ho b8f23a107b Update French & Taiwanese Mandarin localization 2021-07-31 17:32:12 +02:00
Don Ho 87bda092cb Fix a compiling error in MinGW 2021-07-31 14:28:08 +02:00
Don Ho 53576f5b18 Change logo in About dialog and make it dark-modable 2021-07-30 23:53:53 +02:00
Don Ho 19f40fdeae Fix 2 panels' toolbar icons display issue under high DPI
Improve Function list & Folder as Workspace toolbar icons display under high DPI.
2021-07-30 15:59:27 +02:00
Don Ho 2bb40b1ab5 Fix Plugin Admin display issue under high DPI 2021-07-29 20:01:00 +02:00
Don Ho 1dad7c7e7f Increase macro, user command and plugin command number capacity
Macros:      200 -> 499
User cmds:   200 -> 499
Plugin cmds: 500 -> 999

Fix  #10263
2021-07-29 18:02:29 +02:00
mere-human 52c73f92dc Remove "Unicode" from build configuration names
Rename "Unicode Debug" => "Debug", "Unicode Release" => "Release"
since there is no non-Unicode version.
Also, fix the name in other configs for Git, AppVeyor and in the docs.

Fix #10114, close #10278
2021-07-29 15:14:55 +02:00
ozone10 fcea83ba98 Apply dark mode on plugins admin
Fix #10287, close #10288
2021-07-29 03:39:08 +02:00
ozone10 bf6cb36d48 Apply dark mode on document switcher
Fix #10285, close #10286
2021-07-29 03:22:24 +02:00
Don Ho 7c9f4204ea Refactoring: Improve the code organization for color picker displaying 2021-07-29 03:13:22 +02:00
Don Ho 6894e96ad7 Fix UDL dialog color picker display issue under high DPI 2021-07-29 01:48:33 +02:00
ozone10 1b6cd7c3ff Apply dark mode on UDL, styler dlg
Fix #10283, close  #10284
2021-07-28 23:26:28 +02:00
ozone10 1ac1b11831 Apply dark mode on shortcut dialog
Fix #10275, close #10276
2021-07-28 18:01:04 +02:00
ozone10 14da158cad Apply dark mode on run a macro multiple times dlg
Fix #10273, close #10274
2021-07-28 17:46:17 +02:00
ozone10 31c72b7388 Apply dark mode on color popup
Fix use of dark mode edge color in light mode for color picker button.
Properly redraw disabled color picker button.

Fix #10269, close #10270
2021-07-28 17:29:30 +02:00
ozone10 1214319839 Don't reset style & icons, when changing dark tone
Improve title bar dynamic redraw when changing mode.

Fix #10049, fix #10196, close #10272
2021-07-28 17:03:47 +02:00
Don Ho 5edc7500e9 Update some dark/light icons for panels
1. Add panels' toolbar icons in both dark/light mode for Folder as Workspace panel and function list panel.
2. Add panels' dark/light mode (Fluent UI style) icons for the tab interface.
3. Update doclist icons.
4. Remove not used icon.

Note that these icons cannot be changed dynamically yet while switching between light mode & dark mode.

Fix #10066
2021-07-28 03:17:56 +02:00
Don Ho a8a802df2c Fix doc list file ext. column display under high DPI 2021-07-27 17:35:57 +02:00
Don Ho eebc9d146f Tune up the logo size 2021-07-27 02:27:12 +02:00
Don Ho 5721b10da5 Improve About dialog display under high DPI mode 2021-07-27 02:10:57 +02:00
ozone10 baae30102c Apply dark mode on preferences dialog
1. Apply dark mode on preferences, about, debug and save all dialogs.
2. Make link text aware of dark mode.

Fix #10264, close #10265
2021-07-27 01:49:10 +02:00
Don Ho 934c988874 Make Shortcut mapper display correctly under high DPI 2021-07-26 23:55:35 +02:00
Don Ho 7c82c523b6 Add "Switch to Document List" command for shortcut
Fix #9015
2021-07-26 19:07:38 +02:00
ozone10 7c4a428e47 Make dark colors consistent
1. Make dark colors consistent for panel toolbars.
2. Make dark colors consistent style configurator edit controls.
3. Make dark colors consistent for docking elements.

* BackgroundColor(), BackgroundBrush() – should be used for items which have some interactions, or need to be different from Darker variant.
* DarkerBackgroundColor(), DarkerBackgroundBrush() – should be used for static/top backgrounds.
* SofterBackgroundColor(), SofterBackgroundBrush() – should be used for items , which have interactions, or have focus.

Fix #10242, close #10243
2021-07-26 15:00:49 +02:00
ozone10 b0d4e776c6 Apply dark mode on hash dialogs
Also allow typing newline in multiple lines for generating hash.

Fix #10255, close #10256
2021-07-26 14:17:10 +02:00
ozone10 a9002c81e5 Apply dark mode on value dialogs
1. Apply dark mode on value dialogs (dialogs created in preference).
2. Change value dialogs border style.
3. Apply dark mode on close button for other views (fullscreen, post-itand distraction free).

Fix #10253, fix #10210, close #10254
2021-07-26 00:33:42 +02:00
ozone10 b12c8ea541 Apply dark mode on run dialog
Fix #10251, close #10252
2021-07-26 00:07:10 +02:00
ozone10 8e84f5fbcf Apply dark mode on rename tab dialog
Fix #10249, close #10250
2021-07-25 23:53:48 +02:00
ozone10 af99d4c97e Apply dark mode on find char in range dialog
Fix #10247, close #10248
2021-07-25 23:49:27 +02:00
ozone10 f412a2d6f7 Apply dark mode on go to line dialog
Fix #10245, close #10246
2021-07-25 23:36:08 +02:00
mere-human a0c15274f5 Fix file name edit box not functional on Windows Vista
Avoid the same window procedure being used for several different edit boxes.
The problem was found on Windows Vista but it can happen in other environment too.

Fix #10238, close #10241
2021-07-25 22:44:54 +02:00
ozone10 6d06000600 Apply dark mode on column editor
Fix #10236, close #10237
2021-07-25 21:25:27 +02:00
Don Ho 8a6dafb890 Fix Find in file progress bar display problem under High DPI
Fix Find in file progress bar display problem under High DPI, and simplify the window display position algorithm.

Close #10240
2021-07-25 19:06:04 +02:00
ozone10 89d835a56f Apply dark mode on all find dialogs
1. Apply dark mode on find in finder dialog.
2. Apply dark mode on progress window (searching in files).
3. Make color more consistent for incremental search.
4. Use different border style for incremental search.
5. Set border for finder for docking panel consistency.

Fix #10233, close #10234
2021-07-24 23:42:19 +02:00
Ashfaaq18 5b9e3b6406 Changed english.xml's "Document List " entry id from 44081 to 44070
Close #10235
2021-07-24 18:20:34 +02:00
Ashfaaq18 46a264e2db Fix Functions list scrolling to the top on file save
Retain Functions list scrollbar position on reload.

Fix #9659, close #10183
2021-07-24 15:55:15 +02:00
Vitaliy Grabchuk 3482673fd8 Add filter capacity in Shortcut mapper by shortcut key combination
This allows to filter shortcuts in Shortcut mapper not only by name but also by key combination text.

Fix #5616, fix #9316, close #10192
2021-07-24 14:14:31 +02:00