Commit Graph

5251 Commits (9e4290094dfd008bd1de1b3cf4b23c204cb0bba6)

Author SHA1 Message Date
WildByDesign a68362b48f Fix Replace Icon
Replace icon (findrep_off.ico) Dark Filled and Light Filled both had an additional 3 duplicate layers in the icon file.
Reported here: 53d87d4f62 (commitcomment-143611882)
Those duplicate layers have been removed.

Close #15373
2024-06-29 18:05:55 +02:00
Don Ho 94af271be9 Remove ambiguous symbols
The "ambiguous" symbols (TCHAR & generic_string) are used when Notepad++ suppoted both ANSI & Unicode formats.
Since ANSI format of Notepad++ has been dropped (since long time ago), TCHAR & generic_string will be replaced by wchar_t & wstring respectively.

Close #15371
2024-06-28 18:47:40 +02:00
xomx 982f52224c Add the possibility for opening a shortcut file if change file ext
Do not recognize files without lnk-extension as Windows shortcuts.

Fix also https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15211#issuecomment-2156495651

Fix #9643, fix #11089, fix #10139, close #15364
2024-06-28 18:19:11 +02:00
WildByDesign d0f5742664 Fluent Icons - Wrap - Alignment Fix
Close #15370
2024-06-27 23:01:46 +02:00
A. Regnander dfe31e5099 Update swedish.xml
Close #15367
2024-06-27 16:25:23 +02:00
xomx 3c3e7cdadd Fix Encoding "Convert to..." regression
Fix incorrect Clipboard handling. This commit fixes possibly #9426

Fix #15324, fix #15271, fix #3054, close #15346
2024-06-27 14:54:09 +02:00
WildByDesign 53d87d4f62 Fluent Icons Update
- update Find, Replace, Zoom In and Zoom Out icons
- much better consistency between these 4 icons
- significantly improved/sharper in all scaling scenarios
- particularly more distinguishable at smaller sizes
- entirely custom made (following Fluent design guidelines)

Close #15361
2024-06-26 15:27:24 +02:00
Karlo-F 84e310911d [xml] Update Croatian translation for Notepad++ 8.6.9
Close #15352
2024-06-25 19:23:46 +02:00
xomx c54b33db81 [xml] Update czech.xml to v8.6.9
Close #15347
2024-06-24 13:40:30 +02:00
Juan f195575467 [xml] Update galician v.8.6.9.xml
Close #15340
2024-06-24 13:35:23 +02:00
Juan 34998e46f4 [xml] Update spanish v. 8.6.9.xml
Close #15339
2024-06-24 13:32:39 +02:00
Alex Prabhat Bara 73ad1efc47 Fix CSS more indentation bug
Fix #14962, close #14968
2024-06-23 16:27:00 +02:00
Alan Kilborn b3daf0a982 Add plugin command NPPM_SETUNTITLEDNAME to rename untitled tab
Fix #8916, close #15291
2024-06-22 14:44:09 +02:00
WildByDesign 8e1f641472 Improve close button on tab in dark mode (Fluent Icons)
- updated Fluent icons for Close buttons for better scaling

Follow up: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15321

Close  #15336
2024-06-21 19:53:54 +02:00
artpoli 60c8baa4b7 [xml] Update Ukrainian translation
Close #15330
2024-06-21 19:46:34 +02:00
Andrei Miloiu 2928088f0e [xml] Update romanian.xml
Close #15295
2024-06-21 19:44:13 +02:00
Kjell Rilbe 91ecc5f40f Update Swedish localization
Added keyboard hotkeys in Swedish Mark dialog.

Close #15174
2024-06-21 19:40:53 +02:00
Machou d3500f3aba Update french.xml
Update Fr
Add miss phrases
About:
Contre-oblique se dit [Barre oblique inversée](https://fr.wikipedia.org/wiki/Barre_oblique_invers%C3%A9e) (wikipedia)

Close #15272
2024-06-21 19:38:38 +02:00
Patriccollu 4a64071ddd [xml] Update Corsican translation for Notepad++ 8.6.9
Close #15257
2024-06-21 19:34:53 +02:00
yasmise e4431e20a0 [xml] Update japanese.xml
Add/Update translation texts for these commits:
* Update English translation for v8.6.8 (indentation setting) (9f6e9c0)
* Add message box with information about disabled backward regex searching (07e9503)

Close #15254
2024-06-21 19:32:01 +02:00
kubalav 88e550ef81 [xml] Update Slovak translation
Close #15251
2024-06-21 19:29:36 +02:00
rddim e106724be6 [xml] Update Bulgarian localization
Close #15249
2024-06-21 19:26:20 +02:00
Thomas De Rocker bb5dbd704e Update dutch.xml
Close #15246
2024-06-21 19:23:49 +02:00
~GOLEM~ d2a7a765af [xml] russian.xml v8.6.8
Close #15240
2024-06-21 19:19:52 +02:00
schnurlos 9bd3a0f0b1 [xml] Update german.xml to v8.6.7
Following 912c5ee300

Close #15210
2024-06-21 19:17:38 +02:00
Matteo Concato 5f5f1e7e0a [XML] Update italian.xml
- improved translation of "failed"  to "andare a buon fine"
- shortucts in find dialog
- removed exlamation marks
- minor corrections

Close #15190
2024-06-21 19:14:14 +02:00
Marcellomco fcf5846898 [XML] Update brazilian_portuguese.xml
Added fix for "Make english language text with colon (':') consistent"

Close #15172
2024-06-21 19:10:05 +02:00
ozone10 25686c22e4 Separate imagelist for tab bar close button icons for dark/light modes
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15321

Close #15326
2024-06-21 17:38:49 +02:00
Don Ho 6b441b738a Prevent DirectWrite from being ON under Windows Sever (Core) 2024-06-21 00:39:24 +02:00
Don Ho 3ee5ef0205 Make LoadIcon error message more clear 2024-06-20 21:36:58 +02:00
ozone10 46c5a0c226 Fix exception/crash on Windows Server Core 2022 (Datacenter)
The exception/crash occurs due to the unsupported icon format in Windows Server Core 2022 (due to the lack of a graphical library).

The commit tries to make loading icons fail-safe, and it represents a balance between the functionality of loading icons and the minimal graphic support required for Notepad++:
In the event of loading problems in a typical Windows version with complete graphical library support (which is unlikely but possible), users will receive alerts, and the ICO ID in question will be displayed in the caption.
However, under Windows Server Core 2022, multiple alert message boxes may appear during Notepad++ launch, but they can be stopped after the first one, allowing the user to use Notepad++ normally.

3 choices on the alert message: "Yes" for ignoring error(s) and launch Notepad++, "No" for stop lauching Notepad++ and quit it. "Cancel" for displaying all message error with the loading failure of ICO ID in caption, and launch Notepad++.

Fix #15313, close #15315
2024-06-20 21:04:55 +02:00
ozone10 965e24859f Fix a regression due to usage of double buffer (2nd part)
Fix black text background in Find dialog status bar
Regression introduced in 5b36e09
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15319#issuecomment-2177773329

Close #15320
2024-06-19 15:43:39 +02:00
ozone10 90762bbdda Fix a regression due to usage of double buffer
Regression introduced in 5b36e097c2
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15296#issuecomment-2171221062

Replace WM_PRINTCLIENT with WM_PRINT to avoid black parts when resizing tabbar in light mode.

Close #15319
2024-06-18 19:18:54 +02:00
ozone10 8760dd2c07 Replace tab bar close button BMP files with ICO
ref #15298

Close #15317
2024-06-18 15:39:47 +02:00
wilk 57a89b257a Update langs.model.xml - TCL keyword "then"
Added TCL's optional keyword "then": https://www.tcl.tk/man/tcl8.5/TclCmd/if.htm

Close #15309
2024-06-17 05:05:51 +02:00
xomx ace9f49679 Fix renamed last empty clean tab cannot be closed issue
Fix #15306, close #15312
2024-06-17 04:58:39 +02:00
Don Ho 9a27df8f13 Make NPPN_FILEBEFORERENAME notification more efficient 2024-06-16 23:55:42 +02:00
Jiri Hruska 5b36e097c2 Fix status bar and tab bar flicker when updated
Add double buffering for status bar and tab bar to avoid flickering.

Fix #15260, close #15296
2024-06-16 04:51:42 +02:00
Don Ho 6102687faf Fix crash of "Next Search Result" cmd on the empty search result (2nd)
Fix #15247, close #15293
2024-06-15 23:42:21 +02:00
Don Ho e6a1735236 Fix Find Replace size is not remembered through the sessions issue
Fix #15294
2024-06-15 20:45:58 +02:00
Don Ho fa2fce2b41 Fix crash of "Next Search Result" cmd on the empty search result
Fix #15247
2024-06-15 05:00:32 +02:00
ozone10 c7ee70cf32 Make panel tabbar icons using BMP use transparency
- modify standard ico files to use transparency

ref #14959

Close #15289
2024-06-15 03:15:35 +02:00
WildByDesign eb82aac284 Fluent Icons Alignment Fix
- improve the alignment of the Document List, Undo and Redo icons

Close #15288
2024-06-14 15:47:05 +02:00
Alan Kilborn 2e116251e2 Fix the Begin/End Select after deletion problem
Fix #15221, close #15278
2024-06-14 15:38:55 +02:00
WildByDesign 720f5f8a8e Fluent Icons - Tab Bar
- Adding the remaining Fluent icons for the tab bar
- 16x16, 20x20, 24x24, 32x32 and 48x48

Close #15287
2024-06-14 00:38:36 +02:00
Don Ho 638b5a2043 Make install/update easy & quiet
Add command line parameter "/runNppAfterSilentInstall" for Notepad++ installer.
This parameter launches installed Notepad++ after silent installation.
Of course, the parameter takes effect only when "/S" (silent installation) is used.

Fix partially #8514, follow up #15230

Close #15280
2024-06-13 11:41:02 +02:00
ozone10 dbdeca5b28 Add dark mode search results panel tab bar icon
ref #14959

Close #15286
2024-06-13 17:59:57 +02:00
WildByDesign 7f7dd1df01 Fluent Icons - Panels Toolbar & Tab bar
- Update Fluent Icons for Panels Toolbar and tabbar for better scaling.
- 16x16, 20x20, 24x24, 32x32 and 48x48

Close #15285
2024-06-13 16:02:40 +02:00
ozone10 f2fbeadfea Refactor docking panel tab bar to improve dpi compatibility
- reduce flickering when resizing panels

Ref #14959

Close #15282
2024-06-13 15:36:38 +02:00
Alan Kilborn 7a6768b029 Add Backspace unident option
Fix #15180, close #15277
2024-06-13 15:12:22 +02:00
ozone10 6cbb1273a3 Tweak Find in File Progress hits text position
- increase width for Find dialog In selection checkbox
- increase width for Preference Autocompletion html/xml close tag checkbox

According the community's decision:
https://community.notepad-plus-plus.org/topic/25874/poll-find-in-files-hits-position

ref https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15187#issuecomment-2159602146

Fix #15244, fix #13426, close #15268
2024-06-13 14:47:06 +02:00
Coises f2e5739d4d Fix rectangular selection copy-paste bug
Restore old paste into rectangular selection behavior: only call pasteIntoMultiSelection for multiple stream selections and not for rectangular selections.

Fix #15139, fix #15151, close #15261
2024-06-12 15:56:23 +02:00
ozone10 dc53d1b7a7 Add F13-F24 keys to Shortcut Mapper
Fix #11975, close #15269
2024-06-12 02:19:13 +02:00
Alan Kilborn 721a845bec Fix unsaved tab containing tab character display glitch
Disallow tab character via pasting when renaming a file tab.

Fix #15202, close #15211
2024-06-12 01:24:42 +02:00
ozone10 f37f2d0ffe Use new dpi scaled size for docking panel tab icons
Ref #14959

Close #15267
2024-06-11 03:26:30 +02:00
xomx 83f1195bc1 Add installer new option '/closeRunningNpp'
New Notepad++ NSIS installer cmdline option.

If specified on the cmdline, it first tries to use the usual app-closing by sending the WM_CLOSE message to the running Notepad++.
If that standard closing fails, it uses consequently the forceful TerminateProcess WINAPI way.

Partially fix the #8514, followup of the #14251.

Close #15230
2024-06-09 21:19:42 +02:00
WildByDesign aea78d71e2 Show All Characters Icon Fix
- fixes the All Characters Icon which was blurry at 16x16

Close #15259
2024-06-09 03:22:32 +02:00
WildByDesign 7291823e1a Update Fluent toolbar icons
Updated icons for 16x16, 20x20, 24x24, 32x32, 40x40, 48x48, 64x64 and 96x96

Close #15253
2024-06-08 17:06:19 +02:00
xomx 8beda66cb8 Fixed the "lost" panels issue
Implement some size limits for the Notepad++ docked and floating panels, as the users often "lost" its panels (e.g. when they minimized them to zero width or height).

This also fixes the config.xml possible previous "out-of-the-allowed-range" data.

Fix #13084, close #15236
2024-06-08 03:58:43 +02:00
ozone10 e7e88a380a Add "Show All Character" context menu on toolbar button
Fix #14832, close #15235
2024-06-07 00:47:31 +02:00
Don Ho 7a401cface Enlarge the labels of indent settings 2024-06-06 19:58:35 +02:00
ozone10 07e95038cb Add message box with information about disabled backward regex searching
Fix #15239, close #15243
2024-06-06 18:05:13 +02:00
ozone10 ea71d5ea4e Fix small width for "Ignore case" checkbox in UDL for some languages
Fix #15233, close #15234
2024-06-05 18:16:41 +02:00
xomx 9f6e9c0cfc Update English translation for v8.6.8 (indentation setting)
Related to: #15203

Close #15237
2024-06-05 17:21:19 +02:00
Don Ho df4e8f5b73 Fix integer overflow issue in Column Editor
Fix #15167, close #15222
2024-06-05 00:58:56 +02:00
Don Ho 61bcf3a2bc Notepad++ v8.6.8 - Support Taiwan's Sovereignty 2024-06-04 03:55:45 +02:00
popcorner bc1436a5c0 Update chineseSimplified.xml
Close #15154
2024-06-04 00:41:16 +02:00
ozone10 6cd6aa3843 Make clang warnings flags in makefile and msvc consistent
PR #15189 added option to use clang with gcc makefile.
This PR makes clang warnings flags in makefile and msvc consistent.

Close #15227
2024-06-01 01:26:04 +02:00
ozone10 fedaabf0f8 Fix toolbar pressed button visual glitch in dark mode
Use custom draw for main toolbar in dark mode.

Fix #15225, close #15226
2024-06-01 00:58:08 +02:00
ozone10 cfcb0d73cf Fix file opening issue with control characters initial appearence
Fix #13988, close #15219
2024-05-31 03:56:10 +02:00
ozone10 6c660a71b3 Add missing monitoring icon for disabled state
Fix #15217, close #15218
2024-05-31 03:37:52 +02:00
Christian Grasser b4b76ff770 Code enhancement: Nullpointer checks
- zero init LexSearchResult.cxx lineBuffer
- WindowsDlg::resetSelection() add nullpointer check as assert just triggers on debug builds
- added missing nullpointer checks in Utf8_16.cpp on allocated memory
- added missing nullpointer check on notifyView for case SCN_AUTOCSELECTION in NppNotification.cpp
- added missing nullpointer check on clipboardData in NppCommands.cpp

Close #15195
2024-05-31 02:57:39 +02:00
ozone10 c89033bd8a Replace bmp with ico for panels with toolbar
- use correct styles for toolbar
- change panel toolbar icons if dark/light mode has changed
- align panel toolbar icons
- add initialization

ref #14959

Close #15204
2024-05-29 00:04:55 +02:00
Don Ho 0019e20f82 Make naming correct for indent settings of Preferences dialog
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15180#issuecomment-2129892136

Close #15203
2024-05-28 18:41:56 +02:00
ozone10 cdf32d198b Reorganize icons folder
- remove unused delete icon and code related to it
- remove notepadPlus.Resource.targets
- fix dark mode edit control in preference file association subdialog

ref https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14959#issuecomment-2131289263

Close #15192
2024-05-27 03:14:37 +02:00
Christian Grasser 2ed6c77dfe CI enhancement
- update CI link from appveyor to GH action
- add option to makefile build mingw build also with Clang++ instead of g++
- add option to makefile to enable clang analyzer

Close #15189
2024-05-25 16:19:47 +02:00
Alan Kilborn b3b90a5dc0 Add auto-indent feature for Python
Fix #15122, close #15159
2024-05-25 15:56:55 +02:00
ozone10 9c1f972ee3 Add new dpi support to Find in Files Progress window
ref #14959

Fix #15027, close #15187
2024-05-25 03:42:17 +02:00
ozone10 6c5f0009b4 Use gdi dpi scaling for Windows dialog
- tweak dpi scaling for ColourPopup dialog.

ref #14959

Close #15186
2024-05-25 03:26:06 +02:00
ozone10 00ea1a9089 Handle new dpi message in Shortcut Mapper
ref #14959

Close #15173
2024-05-22 18:25:58 +02:00
cddiffz 0baac8af59 Fix extra space inserted issue with HEX mode in Column Editor
Fix extra space inserted when inserting hexadecimal numbers with Column Editor:
Remove rounding of odd number of digits.

Fix #15168, close #15176
2024-05-22 17:39:34 +02:00
ozone10 4ad57c1dd1 Replace GetSystemMetrics with new dpi manager's ones
- remove unneeded declarations in NppDarkMode.h
ref 5123016#r142224732

ref #14959

Close #15171
2024-05-22 05:02:22 +02:00
ozone10 49340a8707 Refactor ShortcutMapper resizing for new dpi compatibility
ref #14959

Close #15169
2024-05-22 04:51:06 +02:00
molsonkiko 106bdcc016 Fix negative repeat value in Column Editor causes hang issue
Fix #15153, close #15166
2024-05-21 16:35:49 +02:00
ozone10 912c5ee300 Make english language text with colon (':') consistent
Fix #4628, close #15165
2024-05-21 14:31:40 +02:00
ozone10 ef840de150 Make top bar indicate applied tab color for unfocused view
- use new dpi scaled metrics.
- replace c-casts.

Fix #15140, close #15160
2024-05-21 00:53:32 +02:00
Don Ho 382c33e99a Prevent the division by 0 in getNbDigits function
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15152#discussion_r1605845654

Close #15157
2024-05-20 20:26:04 +02:00
Don Ho 13eede938e Improve NPPM_GETTABCOLORID API comment 2024-05-20 19:33:44 +02:00
Alan Kilborn 9244cd0943 Add plugin commands NPPM_GETTABCOLORID
No NPPM_SETTABCOLORID though. Plugins can use NPPM_MENUCOMMAND to set current tab color with the desired tab color ID.

Fix #15115, close #15142
2024-05-20 18:08:52 +02:00
ozone10 fb086bbcda Fix moving Find dialog to center of Notepad++ bug (new DPI manager)
Move window for dpi change for goToCenter().

ref #14959

Close #15158
2024-05-19 20:45:41 +02:00
cddiffz d0e3a1a210 Fix crash in Column Editor
Avoid division by zero (due to an arithmetic overflow).

Fix #15144, close #15152
2024-05-19 04:39:55 +02:00
ozone10 bdc11a47ff Make new DPI management support for Find Replace dialog
Handle dpi messages in Find dialog.

ref #14959

Close #15146
2024-05-18 19:22:14 +02:00
ozone10 5123016baa Make toolbar dark mode support better for plugins
Tweak dark mode custom draw for plugin:
- add plugin custom draw support for toolbar
- make code more consistent
- make plugin's authors custom draw implementation
to have higher priority than one from generic dark mode

ref #15078 (comment)

Close #15147
2024-05-17 19:16:32 +02:00
ozone10 e25e15b9b2 Refactor 'FindReplaceDlg::resizeDialogElements()' to be more compatible with HiDPI
ref #14959

Close #15145
2024-05-17 03:25:32 +02:00
ozone10 71914ed545 Use new dpi management for Find & Replace dialog fonts
ref #14959

Close #15098
2024-05-16 19:38:33 +02:00
ozone10 4cd231114e Improve status bar resize handling
- make controls spacing and position consistent.

ref #14959

Close #15090
2024-05-16 19:02:59 +02:00
ozone10 3b515f1242 Initial new dpi management support for Shortcut Mapper
ref #14959

Close #15089
2024-05-16 18:47:43 +02:00
Ovidiu Rădoi 8055b5687b Plugin dark mode customization improvement for tree view
Allow plugins to handle Custom Draw in TreeView controls.

Fix #15077, close #15078
2024-05-15 18:10:39 +02:00
Don Ho 126ad0bc07 Notepad++ 8.6.7 release 2024-05-13 02:34:25 +02:00
Tmp341 a1aa8682d1 [xml] Update Turkish localization
* According to d039eaa and 12548b6 commits.

Close #15121
2024-05-12 16:24:10 +02:00