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

ctrl+d in explorer should diff 2 selected files #231

Closed
wibotwi opened this issue Jul 9, 2021 · 2 comments
Closed

ctrl+d in explorer should diff 2 selected files #231

wibotwi opened this issue Jul 9, 2021 · 2 comments
Assignees
Milestone

Comments

@wibotwi
Copy link

wibotwi commented Jul 9, 2021

I manually added that keybinding with when=!editorTextFocus, which is needed to avoid conflicts with duplicate line in editor
It works fine
It does not compare dirs though, I assume VS Code does not know how to do that

@wibotwi
Copy link
Author

wibotwi commented Jul 9, 2021

actually better use: when=explorerViewletVisible && filesExplorerFocus

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

kasecato commented Feb 23, 2024

IntelliJ supports triple file comparison, but VSCode doesn't, so we better to use listDoubleSelection in VSCode

            {
                "key": "ctrl+d",
                "mac": "cmd+d",
                "command": "compareSelected",
                "when": "filesExplorerFocus && !explorerResourceIsFolder && !inputFocus && listDoubleSelection",
                "intellij": "Compare Selected Files"
            },

https://code.visualstudio.com/api/references/when-clause-contexts#available-context-keys

@kasecato kasecato added this to the v1.6.0 milestone Feb 23, 2024
kasecato added a commit that referenced this issue Feb 23, 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