Try: add basic actions for Start/Stop/Mark REcording

This commit is contained in:
Dustin L. Howett
2025-12-18 18:59:51 -06:00
parent a959be4cac
commit ea1f6cce69
2 changed files with 19 additions and 1 deletions

View File

@@ -482,5 +482,20 @@ namespace Microsoft.Terminal.Settings.Model
SelectOutputDirection Direction { get; };
}
runtimeclass StartRecordingArgs : [default] IActionArgs
{
String Filename { get; };
String Directory { get; };
}
runtimeclass StopRecordingArgs : [default] IActionArgs
{
Boolean Save { get; };
}
runtimeclass MarkRecordingArgs : [default] IActionArgs
{
String Marker { get; };
}
}

View File

@@ -158,7 +158,10 @@
ON_ALL_ACTIONS_WITH_ARGS(Suggestions) \
ON_ALL_ACTIONS_WITH_ARGS(SelectCommand) \
ON_ALL_ACTIONS_WITH_ARGS(SelectOutput) \
ON_ALL_ACTIONS_WITH_ARGS(ColorSelection)
ON_ALL_ACTIONS_WITH_ARGS(ColorSelection) \
ON_ALL_ACTIONS_WITH_ARGS(StartRecording)\
ON_ALL_ACTIONS_WITH_ARGS(StopRecording)\
ON_ALL_ACTIONS_WITH_ARGS(MarkRecording)
// These two macros here are for actions that we only use as internal currency.
// They don't need to be parsed by the settings model, or saved as actions to