From a930e9e1ff32d69a967173cdfba18ca3073289e7 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Wed, 9 Jun 2021 13:07:43 +0800 Subject: [PATCH] add keymap for Move Signed-off-by: Yan Zhang --- README.md | 2 +- package.json | 10 ++++++++++ src/package-with-comment.json | 10 +++++----- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9e0f62a..b756b7f 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ ctrl+end | cmd+end | Move Caret to Text End | ✅ Linux, Windows | macOS | Feature | Supported ---------------|------|---------|---------- f5 | f5 | Copy | N/A -f6 | f6 | Move | N/A +f6 | f6 | Move | ✅ alt+delete | cmd+delete | Safe Delete | N/A shift+f6 | shift+f6 | Rename | ✅ shift+f6 | shift+f6 | Select All Occurrences | ✅ diff --git a/package.json b/package.json index 431c8af..b8e5b34 100644 --- a/package.json +++ b/package.json @@ -767,6 +767,16 @@ "when": "textInputFocus", "intellij": "Move Caret to Text End" }, + { + "key": "f6", + "mac": "f6", + "command": "editor.action.codeAction", + "when": "editorTextFocus", + "args": { + "kind": "refactor.move" + }, + "intellij": "Move" + }, { "key": "shift+f6", "mac": "shift+f6", diff --git a/src/package-with-comment.json b/src/package-with-comment.json index 26be5a1..ad09ecc 100644 --- a/src/package-with-comment.json +++ b/src/package-with-comment.json @@ -1258,16 +1258,16 @@ "todo": "N/A" }, */ - /* { "key": "f6", "mac": "f6", - "command": "", + "command": "editor.action.codeAction", "when": "editorTextFocus", - "intellij": "Move", - "todo": "N/A" + "args": { + "kind": "refactor.move" + }, + "intellij": "Move" }, -*/ /* { "key": "alt+delete",