From 49b089484f7df7fec842dde7049c27851cb4fa64 Mon Sep 17 00:00:00 2001 From: Jacob Egner Date: Mon, 5 Aug 2024 14:18:55 -0500 Subject: [PATCH 1/2] add `"short block"` section to reference page --- .../cursorless-org-docs/src/docs/user/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/cursorless-org-docs/src/docs/user/README.md b/packages/cursorless-org-docs/src/docs/user/README.md index 6b1927b0b5..e7796c91f1 100644 --- a/packages/cursorless-org-docs/src/docs/user/README.md +++ b/packages/cursorless-org-docs/src/docs/user/README.md @@ -274,6 +274,23 @@ The `"block"` modifier expands to above and below the target to select lines unt - `"take block"` - `"take block "` +##### `"short block"` + +The `"short block"` scope is like `"block"`, but stops not only at empty lines but also stops if it would exit the nearest [surrounding pair](#surrounding-pair). +For example, given the text... + +``` +{ + aaa + { + bbb + ccc + } +} +``` + +`"take short block bat"` would select the two lines with `bbb` and `ccc`. See [short paint](#short-paint) for a more detailed walkthrough of a scope not exiting surrounding pairs. + ##### `"file"` The word '`"file"` can be used to expand the target to refer to the entire file. From 8cc678749840fde2157c69984cfbf3311f42d37d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:23:46 +0000 Subject: [PATCH 2/2] [pre-commit.ci lite] apply automatic fixes --- packages/cursorless-org-docs/src/docs/user/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cursorless-org-docs/src/docs/user/README.md b/packages/cursorless-org-docs/src/docs/user/README.md index e7796c91f1..51b0612cb9 100644 --- a/packages/cursorless-org-docs/src/docs/user/README.md +++ b/packages/cursorless-org-docs/src/docs/user/README.md @@ -289,7 +289,7 @@ For example, given the text... } ``` -`"take short block bat"` would select the two lines with `bbb` and `ccc`. See [short paint](#short-paint) for a more detailed walkthrough of a scope not exiting surrounding pairs. +`"take short block bat"` would select the two lines with `bbb` and `ccc`. See [short paint](#short-paint) for a more detailed walkthrough of a scope not exiting surrounding pairs. ##### `"file"`