provide Editor-specific SelectAll (placeholder until we can figure out how to do it by Selections)

This commit is contained in:
Michael Becker 2023-06-27 19:51:31 -04:00
parent 33577a0353
commit 34764cfe0c
2 changed files with 14 additions and 0 deletions

View File

@ -912,5 +912,13 @@ namespace UniversalEditor.UserInterface
{
get { return GetDocumentPropertiesSettingsProviders().Length > 0; }
}
public virtual void SelectAll()
{
/*
Selection[] sel = editor.GetAvailableSelections();
editor.Selections.AddRange(sel);
*/
}
}
}

View File

@ -883,6 +883,12 @@ namespace UniversalEditor.UserInterface
}
}
});
Application.Instance.AttachCommandEventHandler("EditSelectAll", delegate (object sender, EventArgs e)
{
Editor editor = LastWindow.GetCurrentEditor();
if (editor == null) return;
editor.SelectAll();
});
Application.Instance.AttachCommandEventHandler("EditBatchFindReplace", delegate (object sender, EventArgs e)
{
if (LastWindow == null) return;