Commit Graph

1093 Commits

Author SHA1 Message Date
Rainer Kottenhoff
8419743ce6 + add: main menu to MUI resource files 2018-05-15 02:50:36 +02:00
Rainer Kottenhoff
b39122c78b + add: post build steps to create Split MUI files and single control resource dll 2018-05-14 21:47:58 +02:00
Rainer Kottenhoff
593462b3e9 + add: MUI dll "Afrikaans" 2018-05-14 12:48:28 +02:00
Rainer Kottenhoff
c31e368682 + enh: MultiLingual Support part II 2018-05-14 01:23:40 +02:00
Rainer Kottenhoff
8215393d31 + enh: remember Zoom Factor between sessions 2018-05-12 14:49:51 +02:00
Rainer Kottenhoff
408b17cd56 + chg: menu Help instead of "?" (move File History (Recent File List) to Accel-Key Ctrl+Alt+H) 2018-05-12 09:03:07 +02:00
Rainer Kottenhoff
29b1b2009a + enh: notepad3.ini redirection to avoid overriding settings by unzip distribution package 2018-05-11 08:03:01 +02:00
Rainer Kottenhoff
185e09cde8 + enh: handling of default/standard lexer styles 2018-05-10 14:02:57 +02:00
Rainer Kottenhoff
ca2129b66b + fix: broken Hyperlink Hotspot handling 2018-05-10 13:12:30 +02:00
Rainer Kottenhoff
3cff6841c8 + fix: issue regarding selection of default and 2nd default styling 2018-05-09 08:54:55 +02:00
Rainer Kottenhoff
6b469e2044 + fix: Renaming of UpdateChecker => Administration Tool 2018-05-08 23:00:32 +02:00
Rainer Kottenhoff
90ecd5238e +fix: missing document modified call 2018-05-08 12:41:29 +02:00
Rainer Kottenhoff
e5aecc0710 + fix: select initial default standard lexer 2018-05-08 11:52:05 +02:00
Rainer Kottenhoff
0d5ea49619 + fix: some .ini-file handling stuff 2018-05-07 20:22:57 +02:00
Rainer Kottenhoff
989b61b405 + fix: memory leakage in selection undo/redo stack 2018-05-07 11:25:34 +02:00
Rainer Kottenhoff
e790105ed1 + fix: bug, where styling stopped after hotspot highligting 2018-05-06 17:21:15 +02:00
Rainer Kottenhoff
a3aca0a22d + fix: modified document flag set unneccessaryly - fixed. 2018-05-05 20:41:44 +02:00
Rainer Kottenhoff
fdf40be4ee + fix: Statusbar line counting display
+ delay Titlebar/Statusbar check on AppVeyor smoke test
2018-05-05 20:26:35 +02:00
Rainer Kottenhoff
c22cc3847f + opt: performance tuning after profiling std. handling
+ opt: delayed execution of time consuming update/redraw operation
2018-05-05 20:03:18 +02:00
Rainer Kottenhoff
9e1e9aaee8 + enh: minor speedup on notify changed event 2018-05-05 14:22:31 +02:00
Rainer Kottenhoff
20aec881b7 + fix: recording selection Redo/Undo action only for non empty selection 2018-05-05 13:47:18 +02:00
Rainer Kottenhoff
5fe964a51f + fix issue on recording initial selection Undo/Redo 2018-05-05 13:37:44 +02:00
Rainer Kottenhoff
999292b85f - fix: broken Undo/Redo stack (in case of selection) 2018-05-05 09:47:56 +02:00
Rainer Kottenhoff
43950aaa5c + fix: leave Alt-Key-Down mode if keyboard focus lost 2018-05-04 20:41:36 +02:00
Rainer Kottenhoff
b7293651bd + fix: ignore notify change event on pasting rectangular selection 2018-05-04 16:01:14 +02:00
Rainer Kottenhoff
8405c36b44 + fix: cleanup obsolete rectangular pasting helpers 2018-05-04 15:49:26 +02:00
Rainer Kottenhoff
efa7f89272 + fix: Undo/Redo in case of selection insert/delete 2018-05-04 12:47:51 +02:00
Rainer Kottenhoff
13eebb95a6 + fix: insert key into rectangular selection 2018-05-04 10:59:27 +02:00
Rainer Kottenhoff
16ab381f28 + fix: force initial default position only if no window position is specified 2018-05-04 09:07:25 +02:00
Rainer Kottenhoff
8c2ca1eab3 + fix: minor bug fixes 2018-05-03 20:47:08 +02:00
Rainer Kottenhoff
1fb6d9bac0 + rfc: refactoring of applying Style settings 2018-05-03 18:10:39 +02:00
Rainer Kottenhoff
56e63a17a1 + fix: minor fixes and default value adjustments 2018-05-03 01:56:34 +02:00
Rainer Kottenhoff
0d9fd1e5e0 + fix: fractional font settings: add bias of 2% 2018-05-02 17:27:49 +02:00
Rainer Kottenhoff
bc5b6eaed7 + enh: add "Extra Line Spacing" style option to ANSI Art (e.g. .nfo files) (predefined -4) 2018-05-02 12:33:48 +02:00
Rainer Kottenhoff
3e3a7c9860 + fix: add parameter to force update of Stausbar (e.g. theme change) 2018-05-02 10:20:20 +02:00
Rainer Kottenhoff
cebcc84296 + fix: statusbar: handling and display of "Default text" vs. "2nd Default Text" 2018-05-02 08:35:01 +02:00
Rainer Kottenhoff
10af9be8bc + chg: menu entry for switching HighDPI toolbar 2018-05-02 01:44:38 +02:00
Rainer Kottenhoff
1f9ce8e2f7 + fix: Theme changed bug 2018-05-02 01:35:02 +02:00
Rainer Kottenhoff
f566d352da + enh: menu entry to switch between normal and 2018-05-01 21:20:03 +02:00
Rainer Kottenhoff
dbc3e318f6 + fix: RAII (__try/__finally) for target transactions and notify changed observation guards 2018-05-01 18:01:09 +02:00
Rainer Kottenhoff
81819e423f + fix: bug in statusbar section width calculation 2018-05-01 09:06:51 +02:00
Rainer Kottenhoff
59aacd57ff + opt: optimizing dynamic statusbar display 2018-04-30 09:32:11 +02:00
Rainer Kottenhoff
2d2c3668eb + fix: switching modes (EOL,OVR, some other), statusbar has not been updated accordingly 2018-04-30 01:51:33 +02:00
Rainer Kottenhoff
520ea555bb + fix: bug while reading String to Vector 2018-04-29 21:30:24 +02:00
Rainer Kottenhoff
e58b5f2937 + enh: completely reworked statusbar dynamic configuration 2018-04-29 19:05:04 +02:00
Rainer Kottenhoff
d0149be2d6 + rm: disabling UpdateChecker menu entry if no executable is configured 2018-04-28 16:13:55 +02:00
Rainer Kottenhoff
f4cf622d5a + rev: reverting delayed WaitCursor() call - now depending on some document statistics to prevent displaying "spinning circle" 2018-04-28 12:04:55 +02:00
Rainer Kottenhoff
049d6f4cab + opt: several minor enhancements 2018-04-28 01:03:55 +02:00
Rainer Kottenhoff
194c5df055 Merge branch 'Bugfixes_RC_VI' into DocTailChasing 2018-04-27 01:50:12 +02:00
Rainer Kottenhoff
4b5a884bc2 + enh: delayed "Spinning Circle" transaction 2018-04-27 01:46:23 +02:00
Rainer Kottenhoff
edbfae8914 + enh: initial version of Doc tail Chasing 2018-04-26 20:36:04 +02:00
Rainer Kottenhoff
4bdb4a7e70 + fix: small bug preventing Statusbar relative width settings smaller than 1/10 of width 2018-04-26 11:55:02 +02:00
Rainer Kottenhoff
bd5d443f2a + rfc: moving common methods to helper module 2018-04-26 09:06:11 +02:00
Rainer Kottenhoff
29125b8227 + enh: Statusbar: add settings to user defined prefix strings for statusbar sections 2018-04-25 19:58:22 +02:00
Rainer Kottenhoff
218ff0b63f + fix: redo rebase/merge conflicts resolving failures 2018-04-25 17:02:30 +02:00
Rainer Kottenhoff
7da4f445f4 rebase 2018-04-25 16:41:33 +02:00
Rainer Kottenhoff
5bdb3f0240 merge 2018-04-25 16:39:24 +02:00
Rainer Kottenhoff
01f30b23f2 + enh: Statusbar: add user definable relative status width configuration 2018-04-25 11:45:50 +02:00
Rainer Kottenhoff
8a90722b48 + enh: Statusbar order configurable 2018-04-25 00:16:13 +02:00
Rainer Kottenhoff
06bf2e63ee + enh: configurable statusbar 2018-04-25 00:16:13 +02:00
Rainer Kottenhoff
17b5ecf112 + enh: new status bar dynamics 2018-04-25 00:16:13 +02:00
Rainer Kottenhoff
47ecfb213e + enh: dynamic status-bar sections 2018-04-25 00:16:13 +02:00
Rainer Kottenhoff
00b8e83196 + fix: bug in toggle mechanism of "Toggle All Folds"
+ enh: "Toggle All Folds" -> "Toggle Folds" (works on selection only too now)
2018-04-21 09:03:36 +02:00
Rainer Kottenhoff
f5d153a470 + fix: optimized "notify change" observation on clearing file buffer
+ fix: "Focused View": disable encoding identifier insertion menu entry
2018-04-20 11:51:04 +02:00
Rainer Kottenhoff
9452b50d84 + renaming of "Toggle View" to "Focused View"
+ fix: consistent "checked" for button and menu
2018-04-19 16:58:06 +02:00
Rainer Kottenhoff
0eb2dea555 + fix: restore correct fold margin 2018-04-19 16:44:20 +02:00
Rainer Kottenhoff
f1fc510a2a + fix: check "Toggle View" button in case of activation 2018-04-19 15:59:19 +02:00
Rainer Kottenhoff
2d538cf179 + fix: Undo/Redo handling in case of discarding U/R-Stack 2018-04-19 13:09:38 +02:00
Rainer Kottenhoff
6dc666b771 + fix: default "Slop" values changed 2018-04-18 16:22:22 +02:00
Rainer Kottenhoff
773d7cee9d + enh: Statusbar segmentation resizing 2018-04-18 09:29:44 +02:00
Rainer Kottenhoff
8aac4b1cf2 + fix: occurrences marker counting 2018-04-18 09:17:06 +02:00
Rainer Kottenhoff
e14526c5b5 + fix: minor fixes
+ enh: suggested pass-phrase handling
2018-04-17 16:26:32 +02:00
Rainer Kottenhoff
a05b7dfa07 + refactoring: create a better "delayed command message queue" 2018-04-16 19:27:49 +02:00
Rainer Kottenhoff
2503f4027c + enh: add "Toggle View" button to toolbar 2018-04-16 12:58:45 +02:00
Rainer Kottenhoff
0350cfe098
+ enh: "Toggle View" coop main window vs. F/R dialog 2018-04-12 16:29:28 +02:00
Rainer Kottenhoff
3a6c978781
+ enh: enable "Toggle View" for main window 2018-04-12 00:40:49 +02:00
Rainer Kottenhoff
d1240fa3fc + fix: "Compressed View" - minor issues 2018-04-09 10:35:08 +02:00
Rainer Kottenhoff
d44da8c58a + fix: enhance indicator (redraw needed) of re-apply "Mark All Occurrences" 2018-04-06 12:21:33 +02:00
Rainer Kottenhoff
2c409a39bc + fix: enable FR state reset call from outside
+ chg: button name
2018-04-06 00:02:13 +02:00
Rainer Kottenhoff
224e575c22 + fix: possible deadlock 2018-04-05 23:09:58 +02:00
Rainer Kottenhoff
1a0982822d + fix: folding level issue to hide non-occurrence match lines 2018-04-05 17:22:24 +02:00
Rainer Kottenhoff
75d65620d2 + debug: version to folding issue on hiding invisible/non-marked lines 2018-04-04 17:15:22 +02:00
Rainer Kottenhoff
09cb506937 + fix: issue on "Toggle Visibility" drawing a selection on clicking into view 2018-04-04 11:02:53 +02:00
Rainer Kottenhoff
a1e0af344f + fix: minor bugs regarding feature "Toggle Visibility" 2018-04-04 04:02:47 +02:00
Rainer Kottenhoff
ccbef6535f + feature: 1st draft of "Toggle Visible" (hide non occurences lines) 2018-04-03 20:35:40 +02:00
Rainer Kottenhoff
a0f535ee07 + fix: Pad with spaces in case of rectangular selection 2018-03-29 15:34:31 +02:00
Rainer Kottenhoff
ba304570d2 + fix: minor bugfixes 2018-03-29 01:55:09 +02:00
Rainer Kottenhoff
803f7ba4e8 + fix: small issues on Find/Replace Next/Previous operations 2018-03-28 19:11:39 +02:00
Rainer Kottenhoff
b4efe5f7ac + enh: indication of find/replace state in FR dialog status bar 2018-03-27 18:16:25 +02:00
Rainer Kottenhoff
540ed2726a + fix: Reverting file from storage - Preserve view, cancel selection 2018-03-27 14:15:05 +02:00
Rainer Kottenhoff
b1d4a660be + enh: add option to remove blank lines (containing blanks/tabs only) 2018-03-26 18:14:36 +02:00
Rainer Kottenhoff
897945958c + chg: change encoding of NP3 sources to UTF-8 (Sig)
+ fix: Update Toolbar,Statusbar and LinNumber Margin on Observe NotifyEvent reactivation
+ enh: more int to DocPos type changes
2018-03-26 13:50:44 +02:00
Rainer Kottenhoff
b702dd6b87 + enh: Strip First/Last Char within rectangular selection 2018-03-25 13:48:37 +02:00
Rainer Kottenhoff
02d82beab3 + enh: make Find Next Selected, Find Prev Selected as expected
+ using modern Scintilla API methods (instead of hand made operation)
2018-03-24 08:38:09 +01:00
Rainer Kottenhoff
4836962891 + enh: handling of F3 (find next - no F/R dialog) 2018-03-24 01:55:59 +01:00
Rainer Kottenhoff
8b9e8a7d13 + fix: using process heap allocation instead of global memory allocation method (according to MSDN guidelines) 2018-03-23 14:33:23 +01:00
Rainer Kottenhoff
3d51761404 + add: method to remove duplicate lines 2018-03-23 11:48:54 +01:00
Rainer Kottenhoff
ca3f8a07ca + fix: reset scroll width on font (size) changes (automatically adapted) 2018-03-22 19:57:10 +01:00
Rainer Kottenhoff
6ea830502f + fix: Search Next (F3) handling (ver II) 2018-03-22 19:11:51 +01:00
Rainer Kottenhoff
44cc7351d7 + fix: initial window position handling (command line option "/pos" ) 2018-03-22 11:19:46 +01:00
Rainer Kottenhoff
fbc8db4d98 + fix: Notepad3 window positioning 2018-03-21 12:51:44 +01:00
Rainer Kottenhoff
b7ae16b2f0 + chg: rebase internally used code page on UTF-8 (Scintilla multi-byte conversions) 2018-03-20 13:41:19 +01:00
Rainer Kottenhoff
8221fcc0bf + fix: remember last search pattern on new files 2018-03-19 17:19:56 +01:00
Rainer Kottenhoff
a8307b6bd7 + fix: Style_SetLexer() should update line number margin width 2018-03-18 16:29:32 +01:00
Rainer Kottenhoff
1521b48ead + enh: file history dependent last search pattern option combined with search history on/off option 2018-03-18 16:17:29 +01:00
Rainer Kottenhoff
0fc036347c + enh: add last find pattern to file history 2018-03-16 17:55:18 +01:00
Rainer Kottenhoff
2a3d6e0a17 + fix: minor compiler warnings 2018-03-15 21:28:27 +01:00
Rainer Kottenhoff
ccf0d4471a + fix: issue regarding "Auto Complete Word" feature
+ chg: more prep Scintilla "Position" value type changes for large file support
2018-03-15 21:20:10 +01:00
Rainer Kottenhoff
e8bd4f818c + chg: more prep Scintilla "Position" value type changes for large file support 2018-03-15 14:55:21 +01:00
Rainer Kottenhoff
aff45b1132 + fix: X-Caret policy 2018-03-15 09:35:33 +01:00
Rainer Kottenhoff
650b261751 + cln: clean coding 2018-03-15 08:59:00 +01:00
Rainer Kottenhoff
17a5ff8c5f + fix: X,Y-Caret movement policy 2018-03-15 08:53:40 +01:00
Rainer Kottenhoff
ad672827bc + fix: Y-CaretPolicy ([Settings2] CurrentLineVerticalSlop=0) default
+ add: X-CaretPolicy ([Settings2] CurrentLineHorizontalSlop=0)
2018-03-14 17:04:50 +01:00
Rainer Kottenhoff
0553f0ce64 + enh: add option to skip ANSI Code Page detection (tellenc) (default is ON to preserve historic behavior) 2018-03-12 12:12:36 +01:00
Rainer Kottenhoff
415bf9979c + enh: Non Modal Customize Schemes... dialog 2018-03-11 23:28:27 +01:00
Rainer Kottenhoff
4576f08454 + refactoring: prepare for enhanced encoding detection 2018-03-02 16:16:08 +01:00
Rainer Kottenhoff
cce69112ca + fix: use Windows regional ANSI Code Page settings for fallback in case of file encoding detection failure (instead of default encoding for created files) 2018-03-02 16:16:07 +01:00
Rainer Kottenhoff
528d0fa3bf + refactoring: prpare encoding detector enhancement 2018-03-02 16:16:07 +01:00
Rainer Kottenhoff
8235451251 + chg: Accelerator Keys: (Alt+0: Toggle Transparency), (Alt+Shift+N: Launch new empty window)
+ fix: activation of Undo TB-Icon on operations, that can't be undone.
+ fix: Onigmo: use CR (\r) as mono line-break symbol too
2018-02-28 12:59:05 +01:00
Rainer Kottenhoff
13b65234ec + enh: pressing F3 at Find/Replace dialog performs a find and switches focus to main window 2018-02-28 12:59:05 +01:00
Rainer Kottenhoff
08198a79e9 + chg: AbotBox - downgrading to RichEdit library 2.0 (all needed features already in there)
+ ext: AbouBox - acknowledgement/contributors, original licenses (& references)
2018-02-26 23:44:32 +01:00
Rainer Kottenhoff
c125f018f4 + enh: 2nd version of AboutBox 2018-02-26 18:57:51 +01:00
Rainer Kottenhoff
528c32abe2 + enh: New About Box 2018-02-24 13:07:43 +01:00
Rainer Kottenhoff
18928095da + firs draft of RichEdit Ctrl for AboutBox 2018-02-24 04:00:11 +01:00
Rainer Kottenhoff
b135c44674 + fix: swap clipboard bug while pasting into selection
+ enh: minor fixes
2018-02-23 09:08:43 +01:00
Rainer Kottenhoff
f40d06a8a0 + fix: bug detecting find/replace dialog is foreground or not 2018-02-21 22:29:12 +01:00
Rainer Kottenhoff
0de9498401 + fix: fill find/replace search box with selection/clipboard on non switching Ctrl+F/H 2018-02-21 20:59:46 +01:00
Rainer Kottenhoff
09990b073d + add: menu entry to check rizones website directly 2018-02-20 19:32:28 +01:00
Rainer Kottenhoff
60717d7032 + add: feature "Scroll Past End of File" (settings) 2018-02-20 19:05:32 +01:00
Rainer Kottenhoff
6dd3c6b658 + fix: broken swap clipboard w/ selection 2018-02-20 14:37:32 +01:00
Rainer Kottenhoff
eda986f2d8 + add: status/info bar in find/replace dialog 2018-02-19 15:49:54 +01:00
Rainer Kottenhoff
16de558217 + fix: map Toolbar Labels according to bitmap/settings file 2018-02-16 19:49:34 +01:00
Rainer Kottenhoff
164bd4106a + fix: Undo/Redo action w/o selection sets/preserves selection mode (bug) 2018-02-16 12:59:28 +01:00
Rainer Kottenhoff
76be9bfd8e + fix: bug in changed "Windows Registry Files" lexer 2018-02-16 12:30:58 +01:00
Rainer Kottenhoff
87d50dde94 + add: Accelerator Key (Alt+A) to switch ON/OFF occurrences marker/counter 2018-02-14 14:38:55 +01:00
Rainer Kottenhoff
80f08d9169 + fix: disable folding operations for lexers, which don't support it 2018-02-13 19:40:57 +01:00
Rainer Kottenhoff
f02b310427 + fix: code folding integrated in margin 2018-02-13 17:12:55 +01:00
Rainer Kottenhoff
c21bc500aa + fix: handle case: virtual space user access not allowed
+ opt: use faster method (SCI direct call) to set/reset virtual space access option
2018-02-09 11:19:54 +01:00
Rainer Kottenhoff
0136ce1739 + opt: check for Alt-Key down/up to allow drawing rectangular selection in virtual space 2018-02-09 11:06:24 +01:00
Rainer Kottenhoff
be2d57580d + fix: bug in calculating position for thousand separator 2018-02-09 10:22:42 +01:00
Rainer Kottenhoff
e862e08627 + opt: undo/redo stack does not need to store virtual space options 2018-02-09 01:49:02 +01:00
Rainer Kottenhoff
b2daad6f58 + fix: set virtual space option "SCVS_NOWRAPLINESTART" for Alt-Key down rectangular selection only 2018-02-09 01:34:03 +01:00
Rainer Kottenhoff
37688042a6 + fix: empty settings string, if ToolbarButtons are reset to defaults 2018-02-08 01:31:10 +01:00
Rainer Kottenhoff
0c627da605 + fix: synchronized updates for Toolbar & Statusbar 2018-02-08 01:05:29 +01:00
Rainer Kottenhoff
687ea1565d + fix: indentation and rectangular selection (final solution still open) 2018-02-07 23:35:30 +01:00
Rainer Kottenhoff
844febb005 + fix: tab-key and indentation handling
+ fix: pasting into rectangular selections
2018-02-07 19:04:09 +01:00
Rainer Kottenhoff
1249f4bbe1 + refactoring: global naming 2018-02-07 09:16:24 +01:00
Rainer Kottenhoff
6a8c610f80 + fix: prepare (i) for Scintilla's Position type change to 64-bit 2018-02-07 02:10:57 +01:00
Rainer Kottenhoff
29f9c46ffb + enh: incorporate launch of update installer "wyUpdate.exe" 2018-02-06 18:45:19 +01:00
Rainer Kottenhoff
6944e0af7b + fix: (final?) copy/paste and redo/undo on empty/virtual rectangular selection 2018-02-06 11:38:13 +01:00
Rainer Kottenhoff
29536b70bf + fix: (No.: II) redo/undo on empty/virtual rectangular selection 2018-02-05 18:35:06 +01:00
Rainer Kottenhoff
78aa6cc1b4 + fix: redo/undo on empty/virtual rectangular selection 2018-02-05 16:54:49 +01:00
Rainer Kottenhoff
7808a073fe + fix: paste multi-line clipboard into rectangular selection 2018-02-05 12:59:59 +01:00
Rainer Kottenhoff
d678d05ca0 + enh: dynamic horizontal scroll bar width adaption
+ enh: Wrap to Column allowed w/o selection (use complete text)
+ CR:  move "Show Toolbar" and "Show Statusbar" from Settings Menu to View Menu
2018-02-02 12:26:49 +01:00
Rainer Kottenhoff
81370e57d0 + enh: first draft for UpdateCheck call 2018-02-01 23:34:29 +01:00
Rainer Kottenhoff
bb7271dada + CR: changed initial/reset ToolBar button selection (addendum) 2018-02-01 20:17:35 +01:00
Rainer Kottenhoff
ba60230242 + CR: changed initial/reset ToolBar button selection 2018-02-01 20:10:38 +01:00
Rainer Kottenhoff
8fa6fbae05 + fix: minor issues in context of undo/redo (virtual) rectangular (empty) selection 2018-02-01 18:34:55 +01:00
Rainer Kottenhoff
d28e7c8eed + enh: replace (virtual) rectangular (empty) selection 2018-02-01 17:19:13 +01:00
Rainer Kottenhoff
e4638836be + enh: make selection block indentation similar to VisualStudio 2018-01-29 11:31:36 +01:00
Rainer Kottenhoff
109ebe4b03 + fix: sensible handling of "Block -> (Un)Indent" for different kinds of selections 2018-01-29 00:11:45 +01:00
Rainer Kottenhoff
6f0fd57793 + fix: revert TAB+Selection action corresponding to VisualStudio's behavior 2018-01-28 00:03:31 +01:00
Rainer Kottenhoff
408f99fc70 + fix: avoid some issues regarding folding, using SCI_SETAUTOMATICFOLD 2018-01-27 14:49:12 +01:00
Rainer Kottenhoff
8c3fd8d071 + enh: add Accelerator Keys: Alt+LEFT/RIGHT to FOLD/EXPAND folding section 2018-01-27 01:29:52 +01:00
Rainer Kottenhoff
8d291ea803 + fix: support scintilla msg: SCN_NEEDSHOWN (EXPAND folded sections if needed)
+ revert: Accelerator Key "Alt+UP/DOWN" for navigation (jump) between folded section headlines
2018-01-27 00:54:24 +01:00
Rainer Kottenhoff
c473e1e9c6 + fix: selection (anchor and current caret position) handling 2018-01-26 16:42:52 +01:00
Rainer Kottenhoff
324b638abc + fix: TAB indentation handling according to predecessors (NP2) 2018-01-26 09:17:05 +01:00
Rainer Kottenhoff
447f82aebf + fix: Toggle All folds behavior 2018-01-25 23:19:51 +01:00
Rainer Kottenhoff
556c50bb1b + fix: redo/undo and jump-to behavior having an active selection 2018-01-24 17:54:32 +01:00
Rainer Kottenhoff
872210b7ad + fix: handling of document modified flag in case of NotifyChange bypass 2018-01-24 09:25:43 +01:00
Rainer Kottenhoff
b8126f8b55 + fix: lock NotifyUpdate and TargetSelection in case of multi action redo/undo and target replacements 2018-01-24 00:53:39 +01:00
Rainer Kottenhoff
6804a02047 + fix: SpeedUp undo/redo action collections 2018-01-24 00:16:44 +01:00
Rainer Kottenhoff
aa1c3c7d4c + refactoring: usage of undo/redo action stack 2018-01-23 22:13:27 +01:00
Rainer Kottenhoff
b9f8073e50 + fixes: performance for several modify text operations ... 2018-01-23 17:09:50 +01:00
Rainer Kottenhoff
ad51d85c0a + fix: rectangular selection: (virtual empty) selection persists after clear 2018-01-19 11:35:03 +01:00
Rainer Kottenhoff
51d701b8b9 + fix: revisit usage of "Mark Occurrences" and "Hyperlink Styling" delay usage 2018-01-19 10:16:24 +01:00
Rainer Kottenhoff
9bf2da2f03 + add: Setting2 parameter to adjust "Mark Occ" and "Hyperlink" styling delay 2018-01-18 15:58:00 +01:00
Rainer Kottenhoff
31cff17cd0 + fix: byte counting for selection 2018-01-15 14:10:55 +01:00
Rainer Kottenhoff
1e6d688d46 + fix: Join Lines (preserve paragraphs) issue
+ new: Accelerator Key "Ctrl+Alt+J" -> Fuse Lines ( := Join Lines, line-breaks NOT replaced by Space )
2018-01-15 13:45:43 +01:00
Rainer Kottenhoff
957d2ca7b2 + fix: in memory recoding of text 2018-01-15 09:19:08 +01:00
Rainer Kottenhoff
b3f263d7c3 + clean code ... 2018-01-15 01:59:18 +01:00
Rainer Kottenhoff
86153a39b5 + enh: status bar: count number of bytes in current encoding 2018-01-13 10:09:25 +01:00
Rainer Kottenhoff
fca7de523d + fix: revert naming for "2nd Default Text"
+ clean code: reasonable assumption for memory allocation of style handling (backup, save, load)
+ tuning: statusbar partitioning
2018-01-12 11:01:57 +01:00
Rainer Kottenhoff
36b978ea04 + fix: optimized status bar partitioning 2018-01-12 01:14:56 +01:00
Rainer Kottenhoff
177264cf52 + fix: Mark Occurrences timeout on Find/Replace 2018-01-11 18:12:02 +01:00
Rainer Kottenhoff
caccc74cc7 Revert "+ fix: move word wrap start symbol to margin (new WW mode SPACE (instead of WORD))"
This reverts commit 9bad353214.
2018-01-11 16:46:47 +01:00
Rainer Kottenhoff
9bad353214 + fix: move word wrap start symbol to margin (new WW mode SPACE (instead of WORD)) 2018-01-11 16:18:23 +01:00
Rainer Kottenhoff
57307acd16 + chagne: Word Wrap mode from WORD to SPACE to avoid wrapping at style change edges (bug in Scintilla ?) 2018-01-11 15:53:38 +01:00
Rainer Kottenhoff
c74ffc144b Merge branch 'NimLexer_cleanup' into Bugfixes_0110_III 2018-01-11 13:11:23 +01:00
Rainer Kottenhoff
dcee85455b + cleanup: NimLexer = NimrodLexer -> rely on Scintilla distribution for Nim(rod) lexer 2018-01-11 13:06:59 +01:00
Rainer Kottenhoff
82db0b8138 + change: view "2nd Default Style" as (dbl-clickable) status bar item 2018-01-11 00:28:16 +01:00
Rainer Kottenhoff
b25565031d + enhancement: status bar information about usage of 2nd Default Style 2018-01-10 23:54:07 +01:00
Rainer Kottenhoff
c9d7ca687c + fix: protect SCI target transactions by a guard to break recursion of Mark Occurrences caused by ChangeNotification() events 2018-01-10 10:08:42 +01:00
Rainer Kottenhoff
1f4320849f + fix: block "mark occurrences" event on transaction pair: (SCI_TARGETFROMSELECTIO, SCI_REPLACETARGET) 2018-01-10 02:26:26 +01:00
Rainer Kottenhoff
aca5bb46e3 + add: scintilla project and header for Nim lexer
+ performance: non visible styling during idle time
+ performance: cache page instead of line only
2018-01-10 00:23:53 +01:00
Rainer Kottenhoff
86e1cdab58 + feature: initial version of Nim Lexer 2018-01-09 19:08:55 +01:00
Rainer Kottenhoff
310c3c11ad + change: Menu "Mark Occurrences" whole word matching: radio button behavior 2018-01-07 13:59:48 +01:00
Rainer Kottenhoff
08b10b0729 + fix: Menu "Mark Occurrences" whole word matching: add check indicator if one of word matching options (selected / current) is used 2018-01-07 13:02:19 +01:00
Rainer Kottenhoff
d646daa5d2 + fix: document modified flag not set properly (title, toolbar & statusbar only) 2018-01-06 12:52:55 +01:00
Rainer Kottenhoff
7c3b5d8797 + performance: tuning delay parameter of "Mark Occurrences" (instantly) 2018-01-06 01:41:43 +01:00
Rainer Kottenhoff
02ca738ea4 + convenience: re-introduce "max mark occurrence counter" to avoid lazy UI
(set .ini section [Settings2] MarkOccurrencesMaxCount=-1 for unlimited (MAX_INT))
2018-01-05 16:28:01 +01:00
Rainer Kottenhoff
bff0f82e12 + performance: Mark Occurrence triggers enhancements 2018-01-05 15:47:51 +01:00
Rainer Kottenhoff
b352dd05eb + fix: Mark Occurrences: force position progress in case of zero-length matches 2018-01-05 14:20:41 +01:00
Rainer Kottenhoff
2d680c833a + performance: redraw indicator ranges (Mark Occurrences) only if needed - avoiding recursive SCN_UPDATEUI notifications 2018-01-05 13:12:46 +01:00
Rainer Kottenhoff
3fe0a7a482 + fix: mark occurrences counter not updated in time 2018-01-04 23:06:32 +01:00
Rainer Kottenhoff
95a3eb9cc3 + performance: fixed some issuses, which eat up CPU :-) 2018-01-04 22:43:59 +01:00
Rainer Kottenhoff
7c104fac02 + performance: optimizing timer handling to avoid multiple calls of complex methods 2018-01-04 15:22:01 +01:00
Rainer Kottenhoff
05b0ff10c8 + fix: fetching wrong visible document line number in case of hidden or wrapped lines
+ fix: ignoring queued timer event, if timer has been killed
2018-01-04 14:13:39 +01:00
Rainer Kottenhoff
244f4c5f0d + fix: "Match Current Word" should not highlight partial word matches in other lines
+ add: Hyperlink Hotspot Style updates on UpdateUI event (visible area only)
+ minor performance enhancements
2018-01-04 10:58:21 +01:00
Rainer Kottenhoff
cacd252be0 + enhancement: async mark all occurrences via timer (UI response) 2018-01-03 21:15:41 +01:00
Rainer Kottenhoff
c92b2c2ce3 + add: switch to draw all occurrences in visible area only
+ opt: delayed mark all occurrences for better UI response
2018-01-03 17:34:58 +01:00
Rainer Kottenhoff
ec58295fd9 + feature: (Mark Occurences) instant word highligting 2018-01-02 22:06:52 +01:00
Rainer Kottenhoff
745dd915b5 + feature: Regex - "Dot matches all" vs. "Dot does not match line-breaks" switchable by option in find/replace dialg 2017-12-26 17:23:40 +01:00
Rainer Kottenhoff
f9daf100e8 + fix: Update coloring on window message WM_SYSCOLORCHANGE, including Hyperlink hotspot colors 2017-12-23 11:26:39 +01:00
Rainer Kottenhoff
ffb2e95f5c + fix: set standard lexer (Default Text) on new (empty) files 2017-12-23 10:51:36 +01:00
Rainer Kottenhoff
5138eed4ce + refactoring: prefix (g_) for global visible objects
+ fix: problem with 1st vs. 2nd Default Text Scheme selection
+ add: better title of Font Selection dialog
2017-12-23 00:06:00 +01:00
Rainer Kottenhoff
1a6af619a1 + refactor: move hard-coded hyperlink text from source code file to header file
+ fix: setting/changing encryption pass-phrase did not trigger "file modified" flag
2017-12-22 09:12:23 +01:00
Rainer Kottenhoff
4169772193 + fix: inconsistencies: cut,copy,replace,... mainmenu and context menu vs. toolbar 2017-12-21 23:07:08 +01:00
Derick Payne
67f8664854 Added Online Documentation menu item 2017-12-21 22:23:13 +02:00
Rainer Kottenhoff
4f40d004a7 + fix: some more bugs regarding standard lexer handling 2017-12-21 13:46:30 +01:00
Rainer Kottenhoff
d3b8dbdc74 + feature: Dual configuration of Default Text Font or Current Scheme's Default Text Font 2017-12-19 21:54:01 +01:00
Rainer Kottenhoff
9d6e12e92f + fix: "Default Font..." configuration issue 2017-12-18 13:47:19 +01:00
Rainer Kottenhoff
5129c324c7 + fix: customize schemes issues (now Default Font: is applied to "Default Text" and "Current Lexers" Default Font) 2017-12-16 23:49:22 +01:00
Rainer Kottenhoff
0b3611d66f + fix: replace-all with look-behind assertion 2017-12-16 02:36:10 +01:00
Rainer Kottenhoff
08e4ba9a8a + fix: reverting to buffered draw, until screen flickering issues are clarified
+ fix: Onigmo regex engine handling string/line end meta char '$' independent of EOL mode
2017-12-15 16:11:46 +01:00
Rainer Kottenhoff
dc7c320399 + clean code: fix issues reported by CppChecker 2017-12-15 13:25:52 +01:00
Rainer Kottenhoff
5605c0d76d + fix: enable more hyperlink styling trigger points, since "replace target" race-conditions have been fixed and fast regex engine (Onigmo) is integrated
+ fix: issue regarding applying lexer style while hyperlink feature is active
2017-12-15 10:37:41 +01:00
Rainer Kottenhoff
d752e63629 + fix: set target range only for search/replace and not for paste after modifying selection (race-condition search/replace target vs. selection) 2017-12-14 19:23:13 +01:00
Rainer Kottenhoff
5321e78297 + fix: prepare fixing race-condition search/replace target vs. selection 2017-12-14 17:00:31 +01:00
Rainer Kottenhoff
7736703de7 + fix: local memory freeing 2017-12-14 00:11:47 +01:00
Rainer Kottenhoff
4506ab9d4e + fix: performance issue while pasting long text from clipboard 2017-12-14 00:07:27 +01:00
Rainer Kottenhoff
9369be3dd1 + fix: remove unneccessary Hyperlink trigger-point from InitInstance() 2017-12-13 19:10:47 +01:00
Rainer Kottenhoff
74870c216b +fix: remove some Hyperlink dection triggerpoints, which might be collide with SEARCHINTARGET and REPLACETARGET race conditions (seperate threads) 2017-12-13 19:01:19 +01:00
Rainer Kottenhoff
a1f12c8058 + fix: redraw bug in case of SCI_COLOURISE 2017-12-13 16:09:06 +01:00
Rainer Kottenhoff
65b340d7ad + fix: last hyperlink was restyled to lexer's style (not desired hotspot style) 2017-12-12 11:28:00 +01:00
Rainer Kottenhoff
af3a5a7e54 + refactoring: cleanup trigger points for URL Hotspot styling 2017-12-12 11:16:17 +01:00
Rainer Kottenhoff
75cc59bb6e + add: reconsidering trigger points for Hyperlink style updates 2017-12-10 19:10:17 +01:00
Rainer Kottenhoff
c6ef530efc + fix: Hyperlink feature related delay of font changing
+ add: mor triggers for Hyperlink style updated
2017-12-10 19:00:17 +01:00
Derick Payne
ba3ac599e5 Hyperlink Hotspots turned off by default. 2017-12-10 16:31:54 +02:00
Rainer Kottenhoff
79efacf128 + feature: open Hyperlink in NP3 (if applicable: "file://...")
+ fix: add some more places, where Hotspot style redrawing does not slow down responsiveness
2017-12-08 14:38:49 +01:00
Rainer Kottenhoff
8b17a597f1 + refactoring and enhancements for Hyperlink Hotspot feature 2017-12-08 12:05:01 +01:00
Rainer Kottenhoff
e10375fdcc + feature: enhanced URL Hotspot highlighting 2017-12-08 00:27:12 +01:00
Rainer Kottenhoff
f8111bce7a + feature: URL Hotspot (first version) 2017-12-07 15:13:29 +01:00
Rainer Kottenhoff
71ad2dc473 + fix: flashing of Search text-box of find/replace dialog in case of Win7 Classic theme
+ add [Settings2] section default values (and comment out if not changed) of initially distributed Notepad3.ini
2017-12-04 10:00:14 +01:00
Rainer Kottenhoff
0764929c4f +fix: find/replace dialog: mark occurrences: use standard save/restore settings behavior 2017-12-01 11:12:03 +01:00
Rainer Kottenhoff
f59b70b301 + clean code refactoring 2017-11-30 12:15:04 +01:00
Rainer Kottenhoff
e8f45c39c0 Merge branch 'BugFixes' into Drag_n_Drop 2017-11-29 13:30:40 +01:00
Rainer Kottenhoff
abca2f4097 + fix: issue regarding Accelerator keys for find/replace dialog 2017-11-29 13:29:21 +01:00
Rainer Kottenhoff
f19f624900 + code cleanup 2017-11-29 01:16:58 +01:00
Rainer Kottenhoff
5cd238f918 + minor refactorings 2017-11-29 01:10:56 +01:00
Rainer Kottenhoff
71c983b0a0 Merge remote-tracking branch 'notepad3_orig_rizone/master' into Drag_n_Drop 2017-11-29 00:32:04 +01:00
Rainer Kottenhoff
b2daa19b7b renaming of drag n' drop methods 2017-11-29 00:31:41 +01:00
Rainer Kottenhoff
720e0c0574 + workaround: drag n' drop from 32-bit process on Notepad3 x64 window 2017-11-29 00:24:28 +01:00
Rainer Kottenhoff
8426eb0c9f + fix: disabling buffered draw (Scintilla: "Current platforms perform window buffering so it is almost always better for this option to be turned off.")
+ fix: Font Smoothing: [Settings2]SciFontQuality=n has no effect on some special fonts (preserving old behavior if not defined)
2017-11-28 12:53:23 +01:00
Rainer Kottenhoff
37ed5ed6f5 + fix: remove unused mouse wheel message interception 2017-11-27 18:17:31 +01:00
Rainer Kottenhoff
f2f35f3828 + revert to Scintilla's old (default) font rendering technology (modern DirectWrite available by [Settings2] SciDirectWriteTech=1) 2017-11-27 15:17:42 +01:00
Rainer Kottenhoff
b6f1b92e05 + fix: cleanup UpdateLineNumberWidth() triggers 2017-11-23 11:53:17 +01:00
Rainer Kottenhoff
8248293c5a + fix: issue with update of line number margin width 2017-11-22 12:56:42 +01:00
Rainer Kottenhoff
09fbb9e2c9 + feature: find/replace mark occurrences 2017-11-10 16:36:53 +01:00
Rainer Kottenhoff
9041a27453 + fix: other undo/redo issues (if no selection choosen) 2017-11-04 13:52:52 +01:00
Rainer Kottenhoff
c1a568400a + fix: consecutive DEL/BACKSP undo/redo broken (wrapped by unconditional selection undo/redo) 2017-11-04 13:44:52 +01:00
Rainer Kottenhoff
727b650de0 + feature: auto remember bookmarks in recent file history 2017-11-04 13:13:43 +01:00
Rainer Kottenhoff
a0c14ce8f5 + feature: Mark occurrences coloring is now configurable via "Customize Schemes..." 2017-11-03 14:20:53 +01:00
Rainer Kottenhoff
049f0e6d8f + first refactoring for find/replace (RegExpr) operations 2017-10-27 16:28:07 +02:00
Rainer Kottenhoff
9450bdbc58 + fixing some issues regarding margins configuration 2017-10-25 23:23:26 +02:00
Rainer Kottenhoff
0f4e6bdda8 + add Book Mark style (Color Background and Alpha) to customize schemes...
+ replace old bookmark pixmap (visible margin) by Scintilla's BOOKMARK marker style
2017-10-25 15:34:28 +02:00
Rainer Kottenhoff
cc24558789 - non functional draft version 2017-10-25 11:37:39 +02:00
Rainer Kottenhoff
d8b3fc63dd + fix: issue #139 and #143 (remove seöection undo/redo for non-text-changing operations on selections)
+ fix: issue #144 (Left arrow no longer moves to previous line)
+ fix: issue #145 (Mark Occurrences Counter is broken)
2017-10-24 11:20:21 +02:00
Rainer Kottenhoff
6eb4d02593 + fix: pasting clipboard content into selection box should replace text and cancel selection then
(in case of swapping clipboard, the selection is preserved)
2017-10-23 10:42:49 +02:00
Rainer Kottenhoff
bc564b622a + first prottotype of VirtualSpace RectangularSelection by default
(very old behavior can be turned on by [Settings2] DenyVirtualSpaceAccess=1)
2017-10-20 16:18:16 +02:00
Rainer Kottenhoff
8bfa35c4ab + first draft of "Alt-Key-Down Virtual Space Access" rectangular selection only
(redo/undo action does not work properly yet?)
2017-10-20 14:40:13 +02:00
Rainer Kottenhoff
cdecfb5756 + add switch ([Settings2] UseOldStyleBraceMatching) to preserve old style brace matching behavior 2017-10-20 08:54:13 +02:00
Rainer Kottenhoff
d0c7fbc8ef + prepare new matching brace highlighting (SCI_BRACEHIGHLIGHTINDICATOR API...) 2017-10-19 16:21:03 +02:00
Derick Payne
2026e8f01f Merge pull request #134 from RaiKoHoff/Changes_1018+
Changes for NP3s default (distrib) settings (.ini)
2017-10-18 09:58:42 +02:00
Rainer Kottenhoff
ccb423317e + changes for default (distrib) Notepad3.ini:
- remove settings for "Favorites" directory -> NP3 uses then users system default folder (%USERPROFILE%\Favorites)
  - default to modern displays settings, using Scintilla's new technology : SciDirectWriteTech=1, SciFontQuality=3
  - settings [Section2] (cannot be set via GUI) add all possible names and default values, if applicable
2017-10-18 09:23:02 +02:00
Rainer Kottenhoff
411b992df1 + feature: show warning before loading file with unknown (custom schemes) file name extension 2017-10-18 00:07:59 +02:00
Rainer Kottenhoff
3b084fcae5 + fix: crash in Favorites management (release version only, debug version didn't crash - so hard to find)
+ small code refactoring (replacing deprecated methods)
2017-10-17 12:56:10 +02:00
Rainer Kottenhoff
bd802ba7b7 + File History:
+ add remove button for list items
  + checkbox for "preserve caret position" settings
  + small fixes
2017-10-16 17:18:08 +02:00
Rainer Kottenhoff
9b03858006 + minor bugfixes for session feature (file history: remember caret pos and encoding) 2017-10-16 01:21:11 +02:00
Rainer Kottenhoff
6cb00e36d2 +fix: crash on accessing UndoRedo selection history while instance has not been initialized. 2017-10-15 18:46:35 +02:00
Rainer Kottenhoff
48d008c181 + first version of caret/encoding history 2017-10-15 18:28:04 +02:00
Rainer Kottenhoff
aa216aa7ef Merge remote-tracking branch 'origin/AHK_RegrTest_Enh' into FileHistory 2017-10-15 13:45:52 +02:00
Rainer Kottenhoff
53f092a570 + prepare file history extension (caret position and encoding settings) 2017-10-15 13:45:32 +02:00
Rainer Kottenhoff
b05ef4dc2b +fix: virtual space access: column indicator 2017-10-13 12:24:31 +02:00
Rainer Kottenhoff
ee6386d90e + fix: StatusBar Col display is not correct in case of Virtual Space Access 2017-10-10 11:35:22 +02:00
Rainer Kottenhoff
eeb7850d3a + fix: Recode to ANSI (in case of Chinese ANSI code-page) 2017-10-09 09:34:48 +02:00
Rainer Kottenhoff
33911ca092 +fix: broken NormalizePathEx() 2017-10-08 00:23:44 +02:00
Rainer Kottenhoff
fddaa67b19 + fix: minor StatusBar string corrections 2017-10-06 11:03:01 +02:00
Rainer Kottenhoff
eea77201fc + StatusBar information enhancements 2017-10-06 10:45:00 +02:00
Rainer Kottenhoff
424da9caeb + fix: support pasting position at virtual space 2017-10-05 12:54:07 +02:00
Rainer Kottenhoff
9d9d4d45cb + fix: move caret to convenient position after pasting clipboard (no current selection) 2017-10-05 11:30:27 +02:00
Rainer Kottenhoff
32ccdc0671 +fix: virtual space navigation and rectangular selection (minor issues)
(allow "Virtual Space Rectangular Selection" also allows moving Caret into virtual space (beyond line end))
2017-10-05 02:18:51 +02:00
Rainer Kottenhoff
5eaf851da1 + fix: copy/cut & paste of current line (in case of no selection - Visual Studio behavior - using SCI's MSDEVLineSelect) 2017-10-04 18:44:30 +02:00
Rainer Kottenhoff
3c6bb28361 + enhanced clipboard recoding detection
+ fix: bug in code-page related text conversion
2017-10-04 14:45:48 +02:00
Rainer Kottenhoff
0b68bebf97 + fix DPI awareness in manifest
+ minor code refactoring
2017-09-29 09:49:11 +02:00
Rainer Kottenhoff
bca27c37a6 - fix: do mouse wheel scrolling in editor area only 2017-09-28 15:38:26 +02:00
Rainer Kottenhoff
d2e5897e9c + fixing punctuation chars for "Accelerated Word Navigation" (Settings2: ExtendedWhiteSpaceChars= add non word chars here)
+ add count for "Mark(ed) Occurences" in StatusBar
2017-09-28 14:02:07 +02:00
Rainer Kottenhoff
5523f5a442 + fix: StatusBar SelectionCount (Sel) : count chars instead of bytes 2017-09-28 09:37:15 +02:00
Rainer Kottenhoff
c3949edf22 - fixing issue #92: Undo/Redo of virtual space selection rectangle not correct 2017-09-25 16:08:52 +02:00
Rainer Kottenhoff
8cceac6cda fixing issues:
- #79 : Paste from clipboard to ANSI code page: unnecessary switching encoding to UTF-8
- #90 : FILE status becomes [MODIFIED] when doing CONTROL+A ie to select ALL
2017-09-25 12:21:18 +02:00
Rainer Kottenhoff
7569ff93c7 + add new Settings "Virtual Space on Rectangular Selection" used to select rectange not delemited by line endings
(but including virtual space)
2017-09-10 10:20:17 +02:00
Rainer Kottenhoff
8208d6e39d + code cleanup 2017-09-08 14:00:09 +02:00
Rainer Kottenhoff
34ce1288d0 + change accelerator key for feature "Complete Word" from Ctrl+Enter to Ctrl+Alt+Enter
+ add feature "Insert New (empty) Line above current line Ctrl+Enter (as in VisualStudio)
2017-09-08 13:57:51 +02:00
Rainer Kottenhoff
1736875cad + fix broken "Complete Word" feature (Ctrl+Enter/Return) 2017-09-08 12:52:39 +02:00
Rainer Kottenhoff
c4e31c396e - remove FindReplaceDlg handle declared as external from compilation unit Edit.c - not really needed here.
(externals (handles / pointers) seemed to be a problem on module init instance time in 64-bit ?)
2017-09-05 18:41:54 +02:00
Rainer Kottenhoff
d6775f7161 + NP2E issue #100 "File lock not released on open" (https://github.com/ProgerXP/Notepad2e/issues/100): 2017-09-05 00:11:45 +02:00
Rainer Kottenhoff
cdbf84a2b0 + cleanup tmp filebuffer, if elevation has been rejected 2017-09-04 20:53:54 +02:00
Rainer Kottenhoff
9fcfe39f70 "Relaunch elevated": use current .ini-file instead of new user's (Admin's) .ini 2017-09-04 20:33:34 +02:00
Rainer Kottenhoff
95543b97c1 + "Relaunch elevated", infinite loop protection 2017-09-04 18:13:36 +02:00
Rainer Kottenhoff
348dee6801 + enhance consistency between toolbar (save button) and titlebar (modified marker) 2017-09-04 12:59:02 +02:00
Rainer Kottenhoff
f35e6ec96d + fixing problem memory initialization problem during InitInstance() 2017-09-04 10:20:08 +02:00
Rainer Kottenhoff
837f22c588 + remember window position in case of "relaunch elevated" 2017-09-02 14:02:24 +02:00
Rainer Kottenhoff
239f54b0ca + small fixes for "Relaunch elevated"
+ consistency: raising WINVER macros to Win7 (abandoned WinXP support)
2017-09-02 09:09:23 +02:00
Rainer Kottenhoff
a553fa4d9a + fixing some problems for feature "relaunch elevated preserve changes" 2017-09-01 20:25:38 +02:00
Rainer Kottenhoff
d1a53c3fb1 + relaunch elevated keeping current changes in a buffer 2017-09-01 16:45:31 +02:00
Rainer Kottenhoff
04752d0bb5 + clipboard encoding handling refined 2017-09-01 12:03:03 +02:00
Rainer Kottenhoff
a4f0b5c56e + add text file documentation for Notepad3 (includes Notepad2 and Notepad2-mod docs and detailed description of encryption feature)
+ add [Settings2] parameter for "mark occurence" max. count  (which was fix at 2000 before) - now configurable, max is 100000
2017-08-31 20:48:38 +02:00
Rainer Kottenhoff
afb5140b0a + replace lstrcmp() and lstrcmpi() by StrSafe (helper.h defined) methods, where applicable 2017-08-31 14:21:45 +02:00
Rainer Kottenhoff
11c29871e1 + replace lstrlen() by safe StrSafe method (where applicable) 2017-08-30 23:32:56 +02:00
Rainer Kottenhoff
e5ab61a440 - dropping WinXP support , using compiler toolset vc141 Win SDK 10.0.14393.0
(current VC++ redistributable needed ?)
2017-08-30 18:18:00 +02:00
Rainer Kottenhoff
d3e17140e4 + remove internal codepage support for Chinese, Japan, Korean DBCS use generalized UTF-8 codepage instead
(conversions do not work as expected within scintilla lib)
2017-08-30 12:35:07 +02:00
Rainer Kottenhoff
98f7649aee + enable "unlimited" (as in Scintilla Lib: dep. on memory and INT_MAX) undo / redo selection history
using utarray from uthash header library (https://troydhanson.github.io/uthash/index.html)
2017-08-30 11:43:18 +02:00
Rainer Kottenhoff
3ca370a13c + minor findings 2017-08-30 00:21:29 +02:00
Rainer Kottenhoff
fcd9630519 + refactoring: Encoding handling
+ more operations for selctions undo/redo
2017-08-29 14:55:13 +02:00
Rainer Kottenhoff
31a6c93f18 + unicode to codepage clipboard handling 2017-08-29 00:28:51 +02:00
Rainer Kottenhoff
8ff4bad83f + clean code 2017-08-28 17:33:00 +02:00
Rainer Kottenhoff
369fbe814b + remove support for obsolete Korean Johab (1361) codepage. 2017-08-28 16:34:29 +02:00
Rainer Kottenhoff
f0524f0321 + switching Scintilla internal codepage to UTF-8 only (resp. Japanese, Chinese and Korean DBCS)
single-byte encoding is supported externally and converted (fore and back) to UTF-8 internally,
  this simplifies i.e. clipboard exchange, etc.
2017-08-28 16:19:03 +02:00
Rainer Kottenhoff
803e39f771 + changes to EditGetClipboardText() solved the SCI_CUT problem, so it can be switched back from SCI_COPY & SCI_CLEAR to SCI_CUT (byte alignment in 64-bit , i am nut sure) 2017-08-27 08:59:13 +02:00
Rainer Kottenhoff
291da00a50 + extended: remember selection undo / redo
+ add undo / redo selection to more operations
+ found Scintilla 400 method "SCI_CUT"  (cut selection) broken: lost last char
   -  replaced by SCI_COPY & SCI_CLEAR combination (for now)
2017-08-26 12:48:47 +02:00
Rainer Kottenhoff
e0606ff986 + refactoring of "Accelerated Word Navigation" to be compliant with Scintillas WhiteSpace and Punctuation defines
+ "Accelerated Word Navigation" activation influences "Mark Occurrences" (whole word) if set
2017-08-25 15:24:40 +02:00
Rainer Kottenhoff
432db22943 + adapt lstrcpyn() calls according to StrSafe.h requirements ... 2017-08-24 17:31:56 +02:00
Rainer Kottenhoff
f4ce0193b6 + found bug caused by StrSafe migration (COUNTOF() for buffer size must not be used on buffer pointer)
+ migrate StrCpyN() and StrCatBuff() to corresponding StrSafe.h methods
2017-08-24 15:15:56 +02:00
Rainer Kottenhoff
b7523f4d53 + last chunk of StrSafe.h replacements for deprecated string functions
* no functional changes compared origin master
- despite of regression tests, there is a small possibility of
  introducing changed/wrong behavior regarding string operations ... :-O
2017-08-23 12:22:48 +02:00
Rainer Kottenhoff
3d0359ae6b nth+ StrSafe code hardening 2017-08-23 00:02:48 +02:00
Rainer Kottenhoff
4dce5f0c0f nth StrSafe adaption 2017-08-22 22:03:12 +02:00
Rainer Kottenhoff
814a4893bf Merge branch 'Bugfixes_0822' into Feature_Branch 2017-08-22 09:12:20 +02:00
Rainer Kottenhoff
8b54c33aa2 +fix: settings SciFontQuality have been overwritten by Scheme configuration - adapted
(Fonts: Calibri,Cambria,Candara,Consolas,Constantia,Corbel,Segoe UI are using 'cleartype smoothing' (SC_EFF_QUALITY_LCD_OPTIMIZED)
          by default, if not configured in Schema definition for Lexer)
2017-08-22 01:38:58 +02:00
Rainer Kottenhoff
bfe3962a35 StrSafe adaptions 2017-08-21 19:42:19 +02:00
Rainer Kottenhoff
d289084fd4 + extended default "space char set" for "Accelerated Word Navigation"
+ to avoid unexpected "accelerated word navigation" behavior,
  space-char extension is restricted to 7-bit ASCII char set (ignoring specified non-7-bit-ASCII chars).
2017-08-21 11:03:46 +02:00
Rainer Kottenhoff
399efd2de2 + manually merge changes from Bugfix branch 450 2017-08-19 09:00:55 +02:00
Rainer Kottenhoff
4e71b4cf2f + fix: manually edited settings (SciDirectWriteTech, SciFontQuality) should be placed in settings section [Settings2]. 2017-08-19 08:51:40 +02:00
Rainer Kottenhoff
32bdf25167 + 1st chunk of StrSafe migration 2017-08-19 00:53:24 +02:00
Rainer Kottenhoff
1fb17d30c8 + code modernizing: replacing some ZeroMemory() by C++11 struct initializer 2017-08-18 19:26:41 +02:00
Rainer Kottenhoff
d78d417f7d + fixed: "file modified" flag not set on Ctrl+X actions 2017-08-18 17:05:57 +02:00
Rainer Kottenhoff
aa52069372 + fix: re-enable accidentally disabled toolbar buttons (find, replace, clear, toggle-folds, file-launch) 2017-08-18 12:39:23 +02:00
Rainer Kottenhoff
f22d0198b9 + fix: remove obsolete settings entry, never read (SciDrawTechnology)
- correct entry is 'SciDirectWriteTech', must by manually edited

+ add possibility of override SciDirectWriteTech Settings (general section),
  by resolution specific specialization (using general settings if not defined)
2017-08-18 12:01:50 +02:00
Rainer Kottenhoff
fbf995a5c1 + fixing crash: no good idea to make char array (char*) external to other compilation unit
(might be a 64-bit pointer problem or (higher probability) an order of initialization problem)
  found another (better) solution for that
2017-08-18 10:18:57 +02:00
Rainer Kottenhoff
accbcdcb2e + fix: wrong shortcut in menu on word navigation (Ctrl+LEFT/RIGHT)
+ add: toggle option for accelerated word navigation (Ctrl+LEFT/RIGHT)
  according to issue #27 (https://github.com/rizonesoft/Notepad3/issues/27)
  - [Settings2] parameter "ExtendedWhiteSpaceChars=" defines a
    set of chars to be ignored (handled as whitespaces) to find the next beginning of a word
    if "Accelerated word navigation" is switched ON
2017-08-17 17:56:08 +02:00
Rainer Kottenhoff
6474ab9a22 + Save Edit.c and Version.h as UTF-8 w/BOM to make Unicode chars independant from encoding ANSI local codepage.
+ remove some unneccessary comments with unicode chars
2017-08-16 22:58:37 +02:00
Rainer Kottenhoff
1a9f19d961 + fix: restore selection after undo: revert selection mode too 2017-08-16 21:40:55 +02:00
Rainer Kottenhoff
b88fe6bf26 + add Del/Back Selection preserving on Undo/Redo 2017-08-16 15:39:21 +02:00
Rainer Kottenhoff
7f52ae6a4d + fix: restore "rectangular" selection too on "Selection Cut" Undo/Redo 2017-08-16 14:13:18 +02:00
Rainer Kottenhoff
ba09c53f27 + Cut Selection (Ctrl-X) will preserve Selection on Undo/Redo 2017-08-16 12:33:45 +02:00
Rainer Kottenhoff
e66c9cae8f dev trial 1 2017-08-16 00:18:06 +02:00
Rainer Kottenhoff
d9ef89f715 + fix Toolbar Button "Save" has to be enabled on encoding changes
+ encode Notepad.rc as Unicode BOM (UTF-16LE) to enable unicode characters for resource embedding
2017-08-15 21:45:29 +02:00
Rainer Kottenhoff
490b99831a + fix bug on path compare for editing own settings file (.ini) to disable "save settings" menu entries (should be case insensitive) 2017-08-15 19:27:16 +02:00
Rainer Kottenhoff
2e2e1707cd + further discussions on notepad2-mod PR #200 convinced me, that the "reload UTF-8 bugfix" solves a problem regarding pure ASCII files reloaded as UTF-8.
+ add menu entries for launching WebTemplates (specified in section [Settings2]) with selected text as arguments
2017-08-15 19:12:13 +02:00
Rainer Kottenhoff
2a11751359 + Zero initializing string buffers (hardening code while searching an issue regarding "Recent Files" list in "relative paths" mode ... 2017-08-15 17:32:31 +02:00
Rainer Kottenhoff
461b848156 + add Enabling/Disabling Save-Button in toolbar according to file modified indicator
- moving Save Settings enabler (in case of own settings loaded into editor) to method (instead of define)
2017-08-15 09:12:18 +02:00
Rainer Kottenhoff
63479b9a26 Merge branch 'master' into NP2-mod_Enhancements 2017-08-14 21:34:34 +02:00
Rainer Kottenhoff
640274b0a5 + took the nice pull request from @zufuliu (notepad2-mod PR #200 : (https://github.com/XhmikosR/notepad2-mod/pull/200)
and put some of the "hidden" shortcuts into NP3's menu tree.
   - couldn't reproduce the "reload as UTF-8 not work bug" in NP3 (?) - so didn't merge the related change.
     (if someone can reproduce it, please tell me)
+  I "guard" the shortcut for direct editing the NP3's .ini-file (Ctrl+F7) by disabling "Save Settings Now (F7)" and  "Save Settings on Exit" - Flag
    as long as I edit the settings file itself.
    (Example not disabling this:  Editing the .ini-file while "Save Settings on Exit"-Flag is checked,
     leaving NP3 would override the just edited .ini-file with "old" NP3 settings ...)
2017-08-14 21:30:16 +02:00
Rainer Kottenhoff
592796d44f menu integration of "hidden" commands 2017-08-14 18:12:13 +02:00
Rainer Kottenhoff
223a977207 Merge branch 'Sandbox' into Code_Quality 2017-08-11 20:13:03 +02:00
Rainer Kottenhoff
93325e250d + add printing additional option /v(d)ialog to allow access to the Printer dialog (as on Menu: Print... ) 2017-08-11 20:10:52 +02:00
Rainer Kottenhoff
935eed6d1e Merge branch 'Sandbox' into Code_Quality
# Conflicts:
#	src/Notepad3.c  (manually linebased merged)
2017-08-11 19:07:32 +02:00
Rainer Kottenhoff
fc10dbf655 + add command line option ( /v ) to print file immediately and quit (like Window's original notepad.exe /p option) 2017-08-11 18:33:38 +02:00
Rainer Kottenhoff
af4d1292f4 + raise Warning Level from 3 -> 4, and fix corresponding warnings
+ option: build-time: treat warning as error (build fails)
+ cleanups reported by CppCheck v.1.79  (except issue: 'variableScope')
+ remove _CRT_SECURE_NO_WARNINGS to see security warnings for deprecated functions;
+ remove macro-definition for BOOKMARK_EDITION (bookmarks are fixed component of NP3 now)
   (code has not been excaped by this MACRO consistently)
2017-08-11 14:18:39 +02:00
Rainer Kottenhoff
8600d566db fixing issue #35 (preserve FileExtension settings while switching Styles / 2nd Default Scheme)
+ enlarge some string buffers for dialogs
+ fixing np3encrypt vcxproj files
2017-08-11 03:35:21 +02:00
Rainer Kottenhoff
d4ce0417ba - move settings for HighDPI Toolbar to [Window] section, to ge more portable configuration (same .ini-File on different screens) 2017-08-09 16:44:48 +02:00
Rainer Kottenhoff
1b71079b13 - fix: nullptr access while pressing "favorites" toolbar button on 'virgin' NP3
- reintroduce HighDPI toolbar:
  .ini-File settings:  section [Toolbar Images]
    + (new) HighDpiToolBar=
        val  -1  (or not set at all) => depending on screen resolution:
                 higher than Full-HD (1920x1080) -> select internal HighDPI-Toolbar
       val  0:  use internal low resolution Toolbar  (old behaviour)
       val  1:  use internal HighDPI-Toolbar
   -  (old)  BitmapDefault=<bitmap-file-path>  overrides HighDpiToolBar setting and uses <bitmap-file-path> (if valid)
2017-08-09 10:51:43 +02:00
Rainer Kottenhoff
b944089efc - cleanup .vcxproj to support "All Config" ans "All Platform" selection
~ maybe it is time to change to Platform Toolset "Visual Studio 2017 - Windows XP (v141_xp)" ?

 - add existing recoding accelerator keys (Ctrl+Alt+F & Ctrl+Shift+A)
   to "Recode" menue  (func: reload file forcing this encoding type)

 - add version info for used Scintilla library
  ~ VERSION_SCIVERSION should be set by Version.exe (version patcher)
    and can be picked from provided scintilla\version.txt

 - some code-cleanup (cleancode-developer pathfinder rule)
   while trying to trace down notepad2-mod issue #121
   (i am able to reproduce, but didn't find the reason (yet))
2017-08-08 11:56:56 +02:00
Derick Payne
92a23f0bf3 Merge pull request #43 from RaiKoHoff/Bugfixes_and_More
some fixes and features, that missed the latest notepad2-mod
2017-08-07 09:31:40 +02:00
Rainer Kottenhoff
d5e480f1eb - minor cleanups reported by CppCheck v.1.79
- fix exception - reported in notepad2-mod pull request (Crash fixing. #172), which has been rejected there,
  but I was able to reproduce it in VS2017 debug mode (initial defaults for exception handling).
  (https://github.com/XhmikosR/notepad2-mod/pull/172)

- incorporate changes from  notepad2-mod from v.4.2.25.995  to  v.4.2.25.998
  (one fix,  the other changes we have done before already)

- Change shortcuts for the following actions:
  (-) Toggle Transparent Mode:  moved from Ctrl+0  to  Ctrl+Numpad_*
  (x) Reset Zoom: Ctrl+/ change to Ctrl+0      ($v_5.0.26)
  Additional Accelerator Keys, as suggested by (https://github.com/XhmikosR/notepad2-mod/pull/197)
  (+) Toggle Line Comment : in addition to Ctrl+Q add Ctrl+/  with same functionality
  (+) Do Stream Comment : in addition to Ctrl+Shift+Q add Ctrl+Shift+/ with same functionality
  believing new shortcuts are more convenient and more widely used, aren't they?
2017-08-06 23:35:37 +02:00
Derick Payne
489db38dc4 Back to smaller toolbar buttons. 2017-08-06 18:38:45 +02:00
Rainer Kottenhoff
74ec34dad3 integrate Scintillas DirectWrite technology:
- Settings:  SciDirectWriteTech, SciFontQuality
  + values according to Scintilla documentation
  + values = -1 (or not set) - don't call SCI API anyway - should be the same as DEFAULT technology settings (values = 0)
      SC_TECHNOLOGY_DEFAULT = 0,  SC_TECHNOLOGY_DIRECTWRITE = 1,  SC_TECHNOLOGY_DIRECTWRITERETAIN = 2,  SC_TECHNOLOGY_DIRECTWRITEDC = 3
      SC_EFF_QUALITY_DEFAULT = 0, SC_EFF_QUALITY_NON_ANTIALIASED = 1, SC_EFF_QUALITY_ANTIALIASED = 2, SC_EFF_QUALITY_LCD_OPTIMIZED = 3
2017-08-05 22:01:46 +02:00
Rainer Kottenhoff
da073686dc reverting, and fixing encoding / code-page issues:
- consistent encoding <> code-page handling (including Scintilla's code-page settings)
- Scintilla issue regarding notepad2-mod issie #173 (see https://github.com/XhmikosR/notepad2-mod/pull/193)
- allow arbitrary conversion between encodings (even it it does not make sense in any case)
  (instead of doing silently nothing but changing encoding info on status bar)
2017-08-05 20:20:22 +02:00
Rainer Kottenhoff
7647e03801 refactoring encoding and code-page handling:
- using Scintilla UTF8 code-page internally for most encodings,
  solves some encoding/code-page problems, the behaviour slightly changes:

  + if DefaultEncoding is not set (or set to DefaultEncoding = -1),
    initial encoding is set to current system's code-page, e.g. Windows-1252
    Scintilla's internal UTF8 code-page is used for edit box,
    that means copy/paste from clipboard may show characters which are
    not valid in this char-set of the selected code-page.
    Trying to save a file with this invalid UTF8 chars will result in conversion dialog:
    ("...  encoding from ANSI to non-ANSI (and vice versa) may replace unsupported text with default characters ...")

 + if DeaultEncoding = 0 (ANSI):
   a) if LoadASCIIasUTF8 = 0 (FALSE), Scintilla's internal ANSI code-page is used for edit box
      that means copy/paste from clipboard may convert chars to ANSI ()
   b) if LoadASCIIasUTF8 = 1 (TRUE), Scintilla's internal UTF8 code-page is used for edit box
    that means the universal UTF8 encoding is used

 + if DeaultEncoding = nnn (corresponding to some ANSI code-page encoding):
   same as if DefaultEncoding is set to corresponding code-page (see section "DefaultEncoding is not set")
2017-08-04 22:49:21 +02:00
Rainer Kottenhoff
bc7c7f98bd Issue #32: add VisualStudio's editor behaviour for Ctrl-C and Ctrl-X if nothing is selected (copy / cut current line) 2017-08-03 17:30:03 +02:00
Rainer Kottenhoff
67ff6f274e Refactoring/Fixes:
- standard encoding is ANSI, (resp. UTF8 - if no(-1) encoding default is given in .ini-file: DefaultEncoding=n)
- copy/paste non ANSI characters to ANSI encoded NP3 windo will recode them to ANSI (same as manually recode)
2017-08-03 15:34:28 +02:00
Rainer Kottenhoff
854f0a7cec reverting: don't use current system codepage for encoding default (this will lead to problems on changing encoding) 2017-08-03 12:36:39 +02:00
Rainer Kottenhoff
c299225d6c to fix locale code page / encoding issue: using systems default CodePage for default encoding (and default code page), if default encodig is not persisted in .ini-file
to preserve old standard behaviour, DefaultEncoding "ANSI" may be set in .ini-File
2017-08-02 20:48:14 +02:00
Rainer Kottenhoff
8a94087563 - fixed: broken Ctrl-Q (toggle line comments)
- remember more settings/checksboxes for “Find text” dialog between sessions (.ini-file persistence of (open) dialog)
- DeelX RegexSearch:  remove EXTENDED mode - that disables white space ignore and '#' as line comment (expexted/convenient behaviour)
- fixing ".LOG-feature" of Notepad : ".LOG" recognition must be case sensitive
2017-08-02 15:48:40 +02:00
Rainer Kottenhoff
db8b9361c8 - set UTF-8 as character encoding, if no valid character encoding is chosen for default (.ini) - see notepad2-mod merge #69
- change "Notepad3.ini": don't use 2nd default syntax scheme by default (Notepad3 issue #21)
- Add Microsoft Visual C++ 2017 (vc141)
2017-03-30 14:02:35 +02:00
Rainer Kottenhoff
1f5354b194 + update to Scintilla 371 (NP2 adaption due to deprecated data types) 2016-12-06 11:49:54 +01:00
Rainer Kottenhoff
86c8fcaea0 + update Scintilla to Version 3.7.0
- add _SCL_SECURE_NO_WARNINGS preprocessor define (Scintilla uses "unsafe" std::copy now)
+ integrate additional Lexers: lexJSON, lexMATLAB, lexRegistry (see also McNeight/notepad2-mod)
+ Insert GUID insertion option (XhmikosR/notepad2-mod#171)
+ fixing sporadic initial crash (XhmikosR/notepad2-mod#172)
2016-11-15 10:37:30 +01:00
Derick Payne
b843870b5a Updated Scintilla to version 3.6.4
Updated Scintilla to version 3.6.4
2016-04-17 20:44:10 +02:00
Derick Payne
229fb8ac22 New Encryption Feature 2016-01-29 22:24:29 +02:00
Derick Payne
ddf6a172bb Fixed Missing Wildcard Search
Fixed Missing questions marks on search and replace windows.
2016-01-29 19:33:38 +02:00
Derick Payne
b8c5f0717c Update Scintilla to version 3.6.2 2015-11-14 11:20:53 +02:00
Derick Payne
17a2bd3629 Support for MiniPath added
Support for MiniPath added
2015-11-14 11:01:10 +02:00
Derick Payne
eef8262263 Replaced swscanf with the safer swscanf_s 2015-11-13 08:51:12 +02:00
Derick Payne
3737845a15 Initial Release
This is the start of the project.
2015-11-13 07:44:58 +02:00