Skip to content

Commit af2fee1

Browse files
Copilottig
andauthored
Mark TextView, TextViewAutocomplete, and ContentsChangedEventArgs as [Obsolete] in favor of gui-cs/Editor
Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/7a6d1272-907c-45e4-9c71-dbad30d2f4c3 Co-authored-by: tig <585482+tig@users.noreply.github.com>
1 parent 7a463e5 commit af2fee1

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Terminal.Gui/Views/TextInput/ContentsChangedEventArgs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ namespace Terminal.Gui.Views;
44
/// Event arguments for events for when the contents of the TextView change. E.g. the
55
/// <see cref="TextView.ContentsChanged"/> event.
66
/// </summary>
7+
[Obsolete ("ContentsChangedEventArgs is obsolete because TextView is superseded by gui-cs/Editor. See https://github.com/gui-cs/Editor.", error: false)]
78
public class ContentsChangedEventArgs : EventArgs
89
{
910
/// <summary>Creates a new <see cref="TextView.ContentsChanged"/> instance.</summary>

Terminal.Gui/Views/TextInput/TextView/TextView.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace Terminal.Gui.Views;
99
/// <listheader>
1010
/// <term>Key</term> <description>Action</description>
1111
/// </listheader>
12+
1213
/// <item>
1314
/// <term>Left, Ctrl+B</term> <description>Moves the editing point left.</description>
1415
/// </item>
@@ -95,6 +96,9 @@ namespace Terminal.Gui.Views;
9596
/// </item>
9697
/// </list>
9798
/// </remarks>
99+
[Obsolete ("TextView is superseded by gui-cs/Editor's EditorView, which provides a rope-backed document model, "
100+
+ "cell-aware rendering, multi-caret editing, undo, syntax highlighting, folding, find/replace, and soft wrap. "
101+
+ "See https://github.com/gui-cs/Editor for details.", error: false)]
98102
public partial class TextView : View, IDesignable
99103
{
100104
/// <summary>

Terminal.Gui/Views/TextInput/TextView/TextViewAutocomplete.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ namespace Terminal.Gui.Views;
44
/// Renders an overlay on another view at a given point that allows selecting from a range of 'autocomplete'
55
/// options. An implementation on a TextView.
66
/// </summary>
7+
[Obsolete ("TextViewAutocomplete is obsolete because TextView is superseded by gui-cs/Editor. See https://github.com/gui-cs/Editor.", error: false)]
78
public class TextViewAutocomplete : PopupAutocomplete
89
{
910
/// <inheritdoc/>

0 commit comments

Comments
 (0)