diff --git a/data/fixtures/recorded/fallback/takeThis.yml b/data/fixtures/recorded/fallback/takeThis.yml index 3ede086e32..7670570db2 100644 --- a/data/fixtures/recorded/fallback/takeThis.yml +++ b/data/fixtures/recorded/fallback/takeThis.yml @@ -22,5 +22,4 @@ finalState: active: {line: 0, character: 0} fallback: action: setSelection - modifiers: - - {type: containingTokenIfEmpty} + modifiers: [] diff --git a/packages/cursorless-engine/src/core/getCommandFallback.ts b/packages/cursorless-engine/src/core/getCommandFallback.ts index e4cfa8283b..2ad510a80e 100644 --- a/packages/cursorless-engine/src/core/getCommandFallback.ts +++ b/packages/cursorless-engine/src/core/getCommandFallback.ts @@ -142,9 +142,11 @@ function getModifiersFromTarget( return target.modifiers; } - if (target.mark?.type === "cursor") { - return [{ type: "containingTokenIfEmpty" }]; - } + // FIXME: Trying to select a word in the file explorer will create weird behavior. + // https://github.com/cursorless-dev/cursorless/issues/2800 + // if (target.mark?.type === "cursor") { + // return [{ type: "containingTokenIfEmpty" }]; + // } } return []; }