Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions data/fixtures/recorded/fallback/takeThis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ finalState:
active: {line: 0, character: 0}
fallback:
action: setSelection
modifiers:
- {type: containingTokenIfEmpty}
modifiers: []
8 changes: 5 additions & 3 deletions packages/cursorless-engine/src/core/getCommandFallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down
Loading