Skip to content

Commit

Permalink
Default value for preferred scope setting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Nov 20, 2024
1 parent 8cf3464 commit 2e36caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cursorless-talon/src/modifiers/simple_scope_modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
mod.setting(
"private_cursorless_use_preferred_scope",
bool,
default=False,
desc="Use preferred scope instead of containing scope for all scopes by default (EXPERIMENTAL)",
)

Expand All @@ -42,7 +43,7 @@ def cursorless_simple_scope_modifier(m) -> dict[str, Any]:
"ancestorIndex": 1,
}

if settings.get("user.private_cursorless_use_preferred_scope", False):
if settings.get("user.private_cursorless_use_preferred_scope"):
return {
"type": "preferredScope",
"scopeType": m.cursorless_scope_type,
Expand Down

0 comments on commit 2e36caf

Please sign in to comment.