You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To propperly work as an editor for git we need to teach the existing
wrapper script some new tricks. Thankfully we don't need to reinvent the
wheel and can pick up the EOL handling from the notepad wrapper. We
don't need to convert files to CRLF before passing files to wordpad,
but when we get them back we need to convert them back to LF. While
we're at it let's also pick up the commit message formating.
Signed-off-by: Matthias Aßhauer <[email protected]>
Copy file name to clipboardexpand all lines: installer/install.iss
+13-1
Original file line number
Diff line number
Diff line change
@@ -327,7 +327,8 @@ const
327
327
GE_Atom = 6;
328
328
GE_VSCodium = 7;
329
329
GE_Notepad = 8;
330
-
GE_CustomEditor = 9;
330
+
GE_Wordpad = 9;
331
+
GE_CustomEditor = 10;
331
332
332
333
// Git Path options.
333
334
GP_BashOnly = 1;
@@ -1767,6 +1768,12 @@ begin
1767
1768
CreateItemDescription(EditorPage,'<RED>(NEW!)</RED> Notepad is a simple GUI editor that comes with windows.',Top,Left,LblEditor[GE_Notepad],False);
1768
1769
EditorAvailable[GE_Notepad]:=True;
1769
1770
1771
+
// 9th choice
1772
+
Top:=TopOfLabels;
1773
+
CbbEditor.Items.Add('Use Wordpad as Git'+#39+'s default editor');
1774
+
CreateItemDescription(EditorPage,'<RED>(NEW!)</RED> Wordpad is a basic word processor that comes with windows.'+#13+'It can also be used as a text editor.',Top,Left,LblEditor[GE_Wordpad],False);
1775
+
EditorAvailable[GE_Wordpad]:=True;
1776
+
1770
1777
// Custom choice
1771
1778
Top:=TopOfLabels;
1772
1779
CbbEditor.Items.Add('Select other editor as Git'+#39+'s default editor');
0 commit comments