Skip to content

Commit

Permalink
Merge pull request #330 from kasecato/#231/add_two_files_compare
Browse files Browse the repository at this point in the history
Add #231 that cmd+d compare selected files
  • Loading branch information
kasecato authored Feb 23, 2024
2 parents 069d5da + d76e8a7 commit 5121dd6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ shift+f12 | shift+f12 | Restore Default layout | ✅
Linux, Windows | macOS | Feature | Supported
---------------|------|---------|----------
ctrl+d | cmd+d | Compare Files | ✅
ctrl+d | cmd+d | Compare Selected Files | ✅
f7 | f7 | Next difference | ✅
shift+f7 | shift+f7 | Previous difference | ✅
alt+ctrl+enter | alt+cmd+enter | Start new line before current | ✅
Expand All @@ -291,7 +292,7 @@ alt+right | shift+cmd+] | Select next tab (Terminal) | ✅
alt+tab | alt+tab | Goto next splitter | ✅
shift+alt+tab | shift+alt+tab | Goto previous splitter | ✅
enter | enter | Open Highlighted File (Explorer) | ✅
alt+home | alt+home | Jump to Navigation Bar | ✅
alt+home | cmd+up | Jump to Navigation Bar | ✅
shift+ctrl+c | shift+cmd+c | Copy paths | ✅

### CamelHumps
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1454,9 +1454,16 @@
"key": "ctrl+d",
"mac": "cmd+d",
"command": "workbench.files.action.compareFileWith",
"when": "!editorTextFocus",
"when": "filesExplorerFocus && !explorerResourceIsFolder && !inputFocus && !listMultiSelection",
"intellij": "Compare Files"
},
{
"key": "ctrl+d",
"mac": "cmd+d",
"command": "compareSelected",
"when": "filesExplorerFocus && !explorerResourceIsFolder && !inputFocus && listDoubleSelection",
"intellij": "Compare Selected Files"
},
{
"key": "f7",
"mac": "f7",
Expand Down
9 changes: 8 additions & 1 deletion src/package-with-comment.json
Original file line number Diff line number Diff line change
Expand Up @@ -1900,9 +1900,16 @@
"key": "ctrl+d",
"mac": "cmd+d",
"command": "workbench.files.action.compareFileWith",
"when": "!editorTextFocus",
"when": "filesExplorerFocus && !explorerResourceIsFolder && !inputFocus && !listMultiSelection",
"intellij": "Compare Files"
},
{
"key": "ctrl+d",
"mac": "cmd+d",
"command": "compareSelected",
"when": "filesExplorerFocus && !explorerResourceIsFolder && !inputFocus && listDoubleSelection",
"intellij": "Compare Selected Files"
},
{
"key": "f7",
"mac": "f7",
Expand Down

0 comments on commit 5121dd6

Please sign in to comment.