From 2fdcd4e15193928f9832f5567e5ec1730b0f17f0 Mon Sep 17 00:00:00 2001 From: PankajBhojwani Date: Fri, 1 Jul 2022 14:24:34 -0700 Subject: [PATCH] Update schema with scroll marks actions and settings (#13414) Update schema with the settings/actions added in #12948 ## PR Checklist * [x] Closes #13404 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Schema updated. (cherry picked from commit 478c2c3613dc7f626474369987ae16a684574c6e) Service-Card-Id: 83790285 Service-Version: 1.15 --- doc/cascadia/profiles.schema.json | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/doc/cascadia/profiles.schema.json b/doc/cascadia/profiles.schema.json index 54ec07c895c..24b6c544261 100644 --- a/doc/cascadia/profiles.schema.json +++ b/doc/cascadia/profiles.schema.json @@ -366,6 +366,10 @@ "quit", "adjustOpacity", "restoreLastClosed", + "addMark", + "scrollToMark", + "clearMark", + "clearAllMarks", "unbound" ], "type": "string" @@ -385,6 +389,15 @@ ], "type": "string" }, + "ScrollToMarkDirection": { + "enum": [ + "previous", + "next", + "first", + "last" + ], + "type": "string" + }, "ResizeDirection": { "enum": [ "left", @@ -734,6 +747,30 @@ "direction" ] }, + "ScrollToMarkAction": { + "description": "Arguments corresponding to a Scroll to Mark Action", + "allOf": [ + { + "$ref": "#/$defs/ShortcutAction" + }, + { + "properties": { + "action": { + "type": "string", + "const": "scrollToMark" + }, + "direction": { + "$ref": "#/$defs/ScrollToMarkDirection", + "default": "previous", + "description": "The direction to scroll to a mark." + } + } + } + ], + "required": [ + "direction" + ] + }, "SendInputAction": { "description": "Arguments corresponding to a Send Input Action", "allOf": [ @@ -841,6 +878,27 @@ } ] }, + "AddMarkAction": { + "description": "Arguments corresponding to an Add Mark Action", + "allOf": [ + { + "$ref": "#/$defs/ShortcutAction" + }, + { + "properties": { + "action": { + "type": "string", + "const": "addMark" + }, + "color": { + "$ref": "#/$defs/Color", + "default": null, + "description": "If provided, will set the mark's color to the given value." + } + } + } + ] + }, "SetColorSchemeAction": { "description": "Arguments corresponding to a Set Color Scheme Action", "allOf": [ @@ -1669,6 +1727,16 @@ "description": "When set to true, URLs will be detected by the Terminal. This will cause URLs to underline on hover and be clickable by pressing Ctrl.", "type": "boolean" }, + "experimental.autoMarkPrompts": { + "default": false, + "description": "When set to true, prompts will automatically be marked.", + "type": "boolean" + }, + "experimental.showMarksOnScrollbar": { + "default": false, + "description": "When set to true, marks added to the buffer via the addMark action will appear on the scrollbar.", + "type": "boolean" + }, "disableAnimations": { "default": false, "description": "When set to `true`, visual animations will be disabled across the application.",