Don Ho
386366d7f2
Fix config files (XML) saving performance regression
...
Instead of writting on hard disk little by little all the time,
all data is collected in a string buffer to write once on the disk at the end.
Fix #10678 , fix #10674 , close #10691
2021-10-19 15:39:34 +02:00
Don Ho
5d086f93a8
Workaround Microsoft dark mode API bug of Windows 11
...
Notepad++ dark mode works fine under Microsft Windows 7, 8, 8.1 & 10.
Under Windows 11 while Notepad++ being switched into dark mode,
the hightlighting (background) of toolbar's hot-track icons remains in light mode.
Hence this workaround to remedy Notepad++ dark mode visual glitchy due to the bug of Windows 11.
Fix #10510 , close #10685
2021-10-18 00:30:14 +02:00
Don HO
d80b0b254e
Notepad++ 8.1.7 release
2021-10-15 11:46:40 +02:00
Don Ho
6cae886dde
Fix empty file not being saved regression
...
When open a non-empty text file, empty the file and save it, the file is not saved on disk.
This PR has fixed this regression.
Fix #10667 , close #10668
2021-10-15 00:52:26 +02:00
Andrey Smolyakov
4c34652e14
Add VHDL unresolved numeric_std types highlighting
...
Close #10632
2021-10-15 00:50:36 +02:00
Don Ho
540fbeddda
Add JSON syntanx highlighting in the dark themes
2021-10-15 00:42:45 +02:00
Thomas De Rocker
85ea1e6431
Update dutch.xml
...
Close #10631
2021-10-14 18:21:42 +02:00
Ashfaaq18
6526094ee7
Fix tooltip layout and position in RTL mode
...
Fix #10646 , close #10655
2021-10-14 18:15:16 +02:00
Ashfaaq18
e82a451ec1
Fix docking problem for dockable panel in RTL mode
...
Fix #10641 , close #10645
2021-10-14 18:09:21 +02:00
Kyle K
324a7ab8cc
Enhance dark themes for some programming languages
...
Tweak themes for python and makefile.
Also apply default color to other items in need.
Fix #10648 , close #10661
2021-10-14 16:41:15 +02:00
Ashfaaq18
4cf1267af8
Fix white flash in dark mode on CMD launch with position data
...
Fix #10657 , close #10658
2021-10-14 15:36:45 +02:00
CennoxX
add1c145ad
Fix "Run macro until the end of file" command skipping the last line issue
...
Fix #10441 , close #10638
2021-10-14 14:40:45 +02:00
Don HO
c1dac5983a
Notepad++ 8.1.6 release
2021-10-13 15:48:40 +02:00
Ashfaaq18
35e3fb9688
Fix white flash on Notepad++ startup in darkmode issue
...
Fix #3955 , fix #10601 , close #10639
2021-10-10 13:33:24 +02:00
Tmp341
d692b5060f
Update Turkish localization
...
* According to 2576bf8
, 45831ac
, deab93f
, e12b161
, 84c1505
, ef8522e
, 36d0d29
and f6282f4
commits.
* Some spacing.
Close #10587
2021-10-07 01:17:28 +02:00
Don Ho
6a3d6e05d9
Add new quotes
2021-10-06 03:11:10 +02:00
CennoxX
b4d94f5774
Make markdown UDL work in evry dark theme
...
When using dark mode with a theme other than DarkModeDefault the background and font color of the theme are not applied to all styles.
This PR fix this bug by adding colorStyle="1" to ignore defined background colour in UDL, and use the default's background colour (theme's one) instead.
Fix #10593 , close #10619
2021-10-06 01:01:12 +02:00
A. Regnander
5de59d7e44
Update swedish.xml
...
Close #10620
2021-10-05 14:38:16 +02:00
Don Ho
6c3031f01b
Fix file can be marked as saved even it's been deleted outside
...
This PR make buffer always dirty (with any undo/redo operation) if the editing buffer is unsyncronized with file on disk.
By "unsyncronized", it means:
1. the file is deleted outside but the buffer in Notepad++ is kept.
2. the file is modified by another app but the buffer is not reloaded in Notepad++.
Note that if the buffer is untitled, there's no correspondent file on the disk so the buffer is considered as independent therefore synchronized.
Fix #10401 , close #10616
2021-10-05 02:32:40 +02:00
Don Ho
97ad1d922e
Update translations
2021-10-03 03:38:05 +02:00
Adam D. Walling
78a2f32692
Fix status bar text display issue in dark mode
...
Fix incorrect text size calculation for drawing the dark mode status bar
which can cause an invalid character to be displayed.
Fix #10564 , close #10611
2021-10-03 03:06:22 +02:00
Don Ho
682a8edafa
CFile (Win32 API IO) Refactoring
...
1. Rename CFile to Win32_IO_File (plus some modification in class).
2. Add new method writeStr() in Win32_IO_File class to write "char*" & string.
3. Change method names of Utf8_16_Write class and make writeFile() method return accurate type (boolean).
Close #10612
2021-10-02 15:00:08 +02:00
Don Ho
11b2dd0f6b
Fix previous session lost issue after MS update restarting Windows
...
Use Windows IO API instaed POSIX IO (output only) on tinyXml component for writting xml file (config.xml, session.xml, etc...).
Fix #10402 , close #10612
2021-10-02 14:59:47 +02:00
Don Ho
f1837474ca
Fix Print Preferences GUI bug issue
...
Fix #10552
2021-09-29 18:23:59 +02:00
Pavel Nedev
9aa9ecb664
Fix NUL file-corruption issue after system shutting down brutally
...
Uses native Win32 IO API (CreateFile, ReadFile, WriteFile, CloseHandle) instead of POSIX ones (fopen, fread, fwrite, fclose) for remedying NUL file-corruption problem due to system shutting down brutally.
Fix #6133 , close #10598
2021-09-28 12:30:05 +02:00
Don Ho
4d57f5071f
Make modified code conform to the coding style
2021-09-27 23:03:10 +02:00
Ashfaaq18
531bef28d8
Fix docked window sizing direction problem in RTL mode
...
Fix #10536 , close #10576
2021-09-27 22:55:26 +02:00
Ivan Ustûžanin
19cf5c9037
UDL: preserve DarMode-ness upon saving
...
Fix #10583 , close #10570
2021-09-27 20:56:21 +02:00
Don Ho
2159126d8e
Initialize the values of Gripper's varible member
2021-09-27 20:51:39 +02:00
Ashfaaq18
d939e4a6ed
Fix floating panel movement issue in RTL mode
...
Fix #10579 , close #10586
2021-09-27 19:42:51 +02:00
Don HO
45693d1302
Notepad++ 8.1.5 release
2021-09-27 13:24:09 +02:00
Don Ho
2f7490abab
Fix tab settings in UDL regression
...
Bug reported here:
https://community.notepad-plus-plus.org/topic/21866/notepad-8-1-5-rc-3?_=1632620635740
The regression is due to e5a800722b
2021-09-26 04:34:37 +02:00
Don Ho
a7a700145d
Fix a regression of pluginsAdmin
...
Fix a regression of pluginsAdmin reported in:
https://community.notepad-plus-plus.org/topic/21853/notepad-8-1-5-rc2/3?_=1632245574765
2021-09-21 22:53:58 +02:00
Don Ho
635f1d41ab
Fix a typo & add a pun
2021-09-20 18:34:50 +02:00
Don Ho
bc2e689185
Add Insert Date/Time commands shortcut & macro capacities
...
Fix #10567
2021-09-20 04:11:45 +02:00
Don HO
c7e1da48ff
Align dark mode styles with light mode styles
...
1. Improve JSON, PYTHON, BANNC and VHDL syntax highlighting in dark mode.
2. Reosort light mode style.
2021-09-18 02:52:09 +02:00
popcorner
94788503d2
Update chineseSimplified.xml
...
Close #10559
2021-09-16 20:43:58 +02:00
Thomas De Rocker
8d7aa6b06c
Update dutch.xml
...
Close #10474
2021-09-16 19:02:38 +02:00
popcorner
ad40663fb3
Update chineseSimplified.xml
...
Close #10498
2021-09-16 19:00:04 +02:00
regener
827bcc1d05
Hungarian translation update for version 8.1.4
...
Close #10500
2021-09-16 18:55:40 +02:00
Don Ho
6ee3bd3c45
Make more room for the translation of custom format label
2021-09-16 17:54:25 +02:00
mere-human
0ad4912eb0
Enhance Insert Custom Date command by using MS datetime format
...
Fix #10467 , close #10480
2021-09-16 17:25:19 +02:00
rddim
e1e180397f
Update Bulgarian localization
...
Close #10424
2021-09-16 15:20:46 +02:00
schnurlos
1d71e90a64
Update german.xml to v8.1.4
...
Close #10428
2021-09-16 15:17:34 +02:00
Hugo Carvalho
3d02256078
Update Portuguese translation to v8.1.5
...
Close #10457
2021-09-16 15:12:22 +02:00
yasmise
114107957c
update japanese.xml to v8.1.5
...
Added translations for these commits:
* Make "Confirm Save All" dialog more clear (deab93f9b5
)
* Make Incremental Search panel translatable (e12b161d48
)
* Add custom date time insert (84c1505fab
)
Close #10477
2021-09-16 15:06:34 +02:00
kubalav
56b0af3c85
Update Slovak translation to 8.1.5
...
Close #10482
2021-09-16 12:54:19 +02:00
xomx
7a6eb0da37
Update czech.xml to v8.1.5
...
Close #10521
2021-09-16 12:50:28 +02:00
~GOLEM~
748db1be38
Update russian.xml v8.1.5
...
Close #10542
2021-09-16 12:45:03 +02:00
IoeCmcomc
3c464e49bb
Update Vietnamese translation
...
Close #10547
2021-09-15 20:17:22 +02:00
ArkadiuszMichalski
f658c22265
Update polish.xml to 8.1.5
...
Update polish.xml to 8.1.5 (according to the latest commit).
Close #10550
2021-09-15 03:44:53 +02:00
Patriccollu
9342da4885
Update Corsican translation for Notepad++ 8.1.5
...
Close #10455
2021-09-15 01:21:44 +02:00
Don Ho
f6282f4f11
Update localization files
...
And fix a typo in BUILD.md
2021-09-14 23:33:34 +02:00
Don Ho
a3116818e0
Code enhancement: Initialize variable member's value of struct/class
...
Close #10545
2021-09-14 03:08:17 +02:00
Ivan Ustûžanin
049ededf9f
Add gcc 32-bit build and improve build process
...
1. Include SciLexer build in Notepad++ build.
2. Remove -fpermissive, auto -j in make.
Fix #9989 , close #10540
2021-09-13 23:17:11 +02:00
Ashfaaq18
73b41ec74f
Fix docked/float panels in RTL layout issue
...
Fixed Npp RTL context menu for Document List, Project Panels, Folder Workspace, Search Results Window,
and fixed Floating Dockable Window RTL direction.
Fix #10488 , close #10535
2021-09-13 13:27:35 +02:00
Don Ho
f6bea32003
Update uzbek.xml
2021-09-12 19:04:10 +02:00
Don Ho
e5a800722b
Make code more sanitary
...
Fix some vulnerable codes detected by VS's analyzing.
Close #10541
2021-09-12 18:50:30 +02:00
Ashfaaq18
36d0d29cc7
Add path column in Document list panel
...
Fix #9679 , close #10539
2021-09-12 15:18:22 +02:00
Don HO
36d13f3ad8
Sort Preferences->New Document->Default language combobox
...
Fix #10513
2021-09-10 02:44:55 +02:00
Ivan Ustûžanin
1c9009e9b2
Fix open file crash via open file dialog
...
Notepad_plus_Window was rather huge (megabytes). Now it's small (tens of kilobytes),
but to safeguard against future size increase move its allocation from the stack
into the heap.
By using smart pointer, this PR not only fix open file crash properly,
but also prevent stack from being corrupted in the future.
Fix #10454 , close #10531
2021-09-09 16:05:50 +02:00
Ivan Ustûžanin
495d202a43
Fix Find dialog display mess-up
...
Find dialog display mess-up caused by unintialized member variable.
Intialization of member variables fixes it.
Fix #10511 , close #10530
2021-09-09 12:41:22 +02:00
Don Ho
aff77e27d3
Fix incremental search panel not translated after startup issue
...
Fix #10478
2021-09-08 13:43:51 +02:00
Don Ho
bd31dbb68f
Remove "#pragma once" from rc files
2021-09-06 22:49:11 +02:00
Ivan Ustûžanin
241238df5a
Fix xml writing issue in gcc build
...
Fix #10185 , fix #9163 , close #10503
2021-09-06 00:25:09 +02:00
Don Ho
cddcbb5d61
Fix CSS pseudo-elements not recognized issue
...
Update CSS keywords and add new styles.
Fix #10425 , close #10501
2021-09-05 16:39:49 +02:00
Ivan Ustûžanin
156784722a
Make number of languages and and styles unlimited and independent
...
A clean version of #10483 thanks to @ozone10 and @chcg.
The proper fix for #10206 without any compile-time limits.
Fix #10483 , fix #10206 , close #10491
2021-09-05 16:31:18 +02:00
Don Ho
d4781bd4a3
Update abkhazian.xml
2021-09-05 12:53:38 +02:00
Ivan Ustûžanin
e31eb8ea2a
Add missing element in PHP dark mode styler
...
Default DarkMode theme style for PHP was missing one element (COMPLEX VARIABLE).
Also Make variables in strings bold so they are more distinguishable.
Close #10502
2021-09-04 13:08:04 +02:00
Ashfaaq18
ef8522e4aa
Enable/disable ext column from Document list directely
...
* Enable/disable ext column via the context menu.
* The ext column checkbox is removed from the preferences dialog.
* Cleaned up localization file
Fix #10468 , close #10485
2021-09-03 14:48:18 +02:00
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