Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewed file should be remembered #237

Closed
filikos opened this issue Sep 9, 2021 · 2 comments
Closed

Viewed file should be remembered #237

filikos opened this issue Sep 9, 2021 · 2 comments
Assignees
Milestone

Comments

@filikos
Copy link

filikos commented Sep 9, 2021

When following a code path down the codebase with CMD + Mouse I can navigate back the same way with ALT/Option + CMD + left arrow.

If I have the same file opened two times my cursor suddenly navigates to the second opened file even though it was not in the view originaly.
This behavour can be avoided, when navigating "up" (ALT/Option + CMD + left arrow) or "down" (ALT/Option + CMD + right arrow) it would be more intuitive when the cursor remains in the file which was used to navigate originaly so the view will not suddenly change.

wdyt?

@kasecato kasecato self-assigned this Oct 29, 2021
@kasecato
Copy link
Owner

kasecato commented Mar 3, 2024

I figured out that this was due to the default bindings in VSCode
So, I'll disable the default bindings of VS Code and perhaps we can resolve this

// VS Code (Win)
{
  "key": "ctrl+alt+right",
  "command": "workbench.action.moveEditorToNextGroup"
}
// IntelliJ (Win)
{
  "key": "ctrl+alt+right",
  "command": "workbench.action.navigateForward",
  "when": "canNavigateForward"
}
// VS Code (Win)
{
  "key": "ctrl+alt+left",
  "command": "workbench.action.moveEditorToPreviousGroup"
}
// IntelliJ (Win)
{
  "key": "ctrl+alt+left",
  "command": "workbench.action.navigateBack",
  "when": "canNavigateBack"
}

@kasecato kasecato added this to the v1.6.1 milestone Mar 3, 2024
kasecato added a commit that referenced this issue Mar 3, 2024
Improved #237 that Viewed file should be remembered
@kasecato
Copy link
Owner

kasecato commented Apr 1, 2024

Released v1.6.1

@kasecato kasecato closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants