|
@@ -2347,7 +2347,6 @@ public class TextView : View
|
|
KeyBindings.Add (Key.Backspace, Command.DeleteCharLeft);
|
|
KeyBindings.Add (Key.Backspace, Command.DeleteCharLeft);
|
|
|
|
|
|
KeyBindings.Add (Key.Home, Command.LeftStart);
|
|
KeyBindings.Add (Key.Home, Command.LeftStart);
|
|
- KeyBindings.Add (Key.A.WithCtrl, Command.LeftStart);
|
|
|
|
|
|
|
|
KeyBindings.Add (Key.Home.WithShift, Command.LeftStartExtend);
|
|
KeyBindings.Add (Key.Home.WithShift, Command.LeftStartExtend);
|
|
|
|
|
|
@@ -2387,7 +2386,7 @@ public class TextView : View
|
|
KeyBindings.Add (Key.End.WithCtrl.WithShift, Command.EndExtend);
|
|
KeyBindings.Add (Key.End.WithCtrl.WithShift, Command.EndExtend);
|
|
KeyBindings.Add (Key.Home.WithCtrl, Command.Start);
|
|
KeyBindings.Add (Key.Home.WithCtrl, Command.Start);
|
|
KeyBindings.Add (Key.Home.WithCtrl.WithShift, Command.StartExtend);
|
|
KeyBindings.Add (Key.Home.WithCtrl.WithShift, Command.StartExtend);
|
|
- KeyBindings.Add (Key.T.WithCtrl, Command.SelectAll);
|
|
|
|
|
|
+ KeyBindings.Add (Key.A.WithCtrl, Command.SelectAll);
|
|
KeyBindings.Add (Key.InsertChar, Command.ToggleOverwrite);
|
|
KeyBindings.Add (Key.InsertChar, Command.ToggleOverwrite);
|
|
KeyBindings.Add (Key.Tab, Command.Tab);
|
|
KeyBindings.Add (Key.Tab, Command.Tab);
|
|
KeyBindings.Add (Key.Tab.WithShift, Command.BackTab);
|
|
KeyBindings.Add (Key.Tab.WithShift, Command.BackTab);
|
|
@@ -4466,12 +4465,12 @@ public class TextView : View
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- _historyText.Add ([[.. currentLine]], CursorPosition);
|
|
|
|
|
|
+ _historyText.Add ([ [.. currentLine]], CursorPosition);
|
|
|
|
|
|
currentLine.RemoveAt (CurrentColumn);
|
|
currentLine.RemoveAt (CurrentColumn);
|
|
|
|
|
|
_historyText.Add (
|
|
_historyText.Add (
|
|
- [[.. currentLine]],
|
|
|
|
|
|
+ [ [.. currentLine]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|
|
@@ -5058,7 +5057,7 @@ public class TextView : View
|
|
}
|
|
}
|
|
|
|
|
|
_historyText.Add (
|
|
_historyText.Add (
|
|
- [[.. GetCurrentLine ()]],
|
|
|
|
|
|
+ [ [.. GetCurrentLine ()]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|
|
@@ -5098,7 +5097,7 @@ public class TextView : View
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- _historyText.Add ([[.. currentLine]], CursorPosition);
|
|
|
|
|
|
+ _historyText.Add ([ [.. currentLine]], CursorPosition);
|
|
|
|
|
|
if (currentLine.Count == 0)
|
|
if (currentLine.Count == 0)
|
|
{
|
|
{
|
|
@@ -5165,7 +5164,7 @@ public class TextView : View
|
|
}
|
|
}
|
|
|
|
|
|
_historyText.Add (
|
|
_historyText.Add (
|
|
- [[.. GetCurrentLine ()]],
|
|
|
|
|
|
+ [ [.. GetCurrentLine ()]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|
|
@@ -5189,14 +5188,14 @@ public class TextView : View
|
|
|
|
|
|
List<Cell> currentLine = GetCurrentLine ();
|
|
List<Cell> currentLine = GetCurrentLine ();
|
|
|
|
|
|
- _historyText.Add ([[.. GetCurrentLine ()]], CursorPosition);
|
|
|
|
|
|
+ _historyText.Add ([ [.. GetCurrentLine ()]], CursorPosition);
|
|
|
|
|
|
if (CurrentColumn == 0)
|
|
if (CurrentColumn == 0)
|
|
{
|
|
{
|
|
DeleteTextBackwards ();
|
|
DeleteTextBackwards ();
|
|
|
|
|
|
_historyText.ReplaceLast (
|
|
_historyText.ReplaceLast (
|
|
- [[.. GetCurrentLine ()]],
|
|
|
|
|
|
+ [ [.. GetCurrentLine ()]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|
|
@@ -5235,7 +5234,7 @@ public class TextView : View
|
|
}
|
|
}
|
|
|
|
|
|
_historyText.Add (
|
|
_historyText.Add (
|
|
- [[.. GetCurrentLine ()]],
|
|
|
|
|
|
+ [ [.. GetCurrentLine ()]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|
|
@@ -5257,14 +5256,14 @@ public class TextView : View
|
|
|
|
|
|
List<Cell> currentLine = GetCurrentLine ();
|
|
List<Cell> currentLine = GetCurrentLine ();
|
|
|
|
|
|
- _historyText.Add ([[.. GetCurrentLine ()]], CursorPosition);
|
|
|
|
|
|
+ _historyText.Add ([ [.. GetCurrentLine ()]], CursorPosition);
|
|
|
|
|
|
if (currentLine.Count == 0 || CurrentColumn == currentLine.Count)
|
|
if (currentLine.Count == 0 || CurrentColumn == currentLine.Count)
|
|
{
|
|
{
|
|
DeleteTextForwards ();
|
|
DeleteTextForwards ();
|
|
|
|
|
|
_historyText.ReplaceLast (
|
|
_historyText.ReplaceLast (
|
|
- [[.. GetCurrentLine ()]],
|
|
|
|
|
|
+ [ [.. GetCurrentLine ()]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|
|
@@ -5294,7 +5293,7 @@ public class TextView : View
|
|
}
|
|
}
|
|
|
|
|
|
_historyText.Add (
|
|
_historyText.Add (
|
|
- [[.. GetCurrentLine ()]],
|
|
|
|
|
|
+ [ [.. GetCurrentLine ()]],
|
|
CursorPosition,
|
|
CursorPosition,
|
|
HistoryText.LineStatus.Replaced
|
|
HistoryText.LineStatus.Replaced
|
|
);
|
|
);
|