From 39bed397f297a4edf6ad75ea13f58a21ef251b91 Mon Sep 17 00:00:00 2001 From: Schwa Aresty Date: Mon, 10 Jun 2024 03:12:08 -0700 Subject: [PATCH] Add then command from cursorless recommendations (#1394) The recommendation comes from [here](https://github.com/cursorless-dev/cursorless/wiki/Common-recommendations) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Phil Cohen --- plugin/then/then.talon | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 plugin/then/then.talon diff --git a/plugin/then/then.talon b/plugin/then/then.talon new file mode 100644 index 0000000000..88cdc8d7e6 --- /dev/null +++ b/plugin/then/then.talon @@ -0,0 +1,4 @@ +# This makes it easier to chain commands by letting you hint about command boundaries. +# For example, with Cursorless, the phrase "post line air" is ambiguous as to whether you meant a single command ("post line air", i.e. "move the cursor to the end of the line containing the 'a' hat"), or two separate commands ("post line" to move the cursor to the end of the current line, followed by "air" to insert the letter "a"). +# If you know you want the latter, this allows you to say "post line then air" to force that interpretation. +then: skip()