From 9ff8835e0af4fc37935dc57a1fa4796886afdca6 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 27 Aug 2025 15:56:08 -0400 Subject: [PATCH] Scope back navigation to the editor. --- ansible/roles/firefox/defaults/main.yaml | 2 +- ansible/roles/vscode/files/keybindings.json | 6 ++++++ ansible/roles/vscode/files/settings.json | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ansible/roles/firefox/defaults/main.yaml b/ansible/roles/firefox/defaults/main.yaml index 98a8840..0f517e5 100644 --- a/ansible/roles/firefox/defaults/main.yaml +++ b/ansible/roles/firefox/defaults/main.yaml @@ -40,6 +40,6 @@ firefox_config: privacy.fingerprintingProtection: true # Allow sending dark mode preference to websites. # Allow sending timezone to websites. - privacy.fingerprintingProtection.overrides: "+AllTargets,-CSSPrefersColorScheme,-JSDateTimeUTC,-CanvasExtractionBeforeUserInputIsBlocked" + privacy.fingerprintingProtection.overrides: "+AllTargets,-CSSPrefersColorScheme,-JSDateTimeUTC,-CanvasExtractionBeforeUserInputIsBlocked,-CanvasImageExtractionPrompt,-CanvasExtractionFromThirdPartiesIsBlocked" # Disable weather on new tab page browser.newtabpage.activity-stream.showWeather: false diff --git a/ansible/roles/vscode/files/keybindings.json b/ansible/roles/vscode/files/keybindings.json index ec56007..90f0d6b 100644 --- a/ansible/roles/vscode/files/keybindings.json +++ b/ansible/roles/vscode/files/keybindings.json @@ -20,6 +20,12 @@ "command": "-workbench.action.navigateBack", "when": "canNavigateBack" }, + { + // This isn't quite right. In emacs it would go back to the last location you performed an action which could include navigation. This goes back to the place where you last changed the text. Either way, close enough. + "key": "ctrl+x ctrl+x", + "command": "workbench.action.navigateToLastEditLocation", + "when": "canNavigateToLastEditLocation" + }, { "key": "shift+alt+/", "command": "editor.action.goToReferences", diff --git a/ansible/roles/vscode/files/settings.json b/ansible/roles/vscode/files/settings.json index 9bfe87b..f2276d7 100644 --- a/ansible/roles/vscode/files/settings.json +++ b/ansible/roles/vscode/files/settings.json @@ -51,5 +51,6 @@ ], "workbench.secondarySideBar.defaultVisibility": "hidden", "editor.autoClosingBrackets": "never", - "editor.autoSurround": "never" + "editor.autoSurround": "never", + "workbench.editor.navigationScope": "editorGroup" }