Skip to content

Commit

Permalink
Fixed keybindings table generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed May 11, 2020
1 parent 34c1b1a commit 5403f3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ ctrl+n | cmd+o | Go to class | ✅
ctrl+shift+n | cmd+shift+o | Go to file | ✅
ctrl+alt+shift+n | cmd+alt+o | Go to symbol | ✅
alt+left | ctrl+left | Go to previous editor tab | ✅
| shift+cmd+[ | Go to previous editor tab | ✅
N/A | shift+cmd+[ | Go to previous editor tab | ✅
alt+right | ctrl+right | Go to next editor tab | ✅
| shift+cmd+] | Go to next editor tab | ✅
N/A | shift+cmd+] | Go to next editor tab | ✅
f12 | f12 | Go back to previous tool window | N/A
escape | escape | Go to editor (from tool window) | N/A
shift+escape | shift+escape | Hide active or last active window (Sidebar) | ✅
Expand All @@ -147,15 +147,15 @@ ctrl+shift+f4 | cmd+shift+f4 | Close active run/messages/find/... tab | N/A
ctrl+g | cmd+l | Go to line | ✅
ctrl+e | cmd+e | Recent files popup | ✅
ctrl+alt+left | cmd+alt+left | Navigate back | ✅
| cmd+[ | Navigate back | ✅
N/A | cmd+[ | Navigate back | ✅
ctrl+alt+right | cmd+alt+right | Navigate forward | ✅
| cmd+] | Navigate forward | ✅
N/A | cmd+] | Navigate forward | ✅
ctrl+shift+backspace | cmd+shift+backspace | Navigate to last edit location | ✅
alt+f1 | alt+f1 | Select current file or symbol in any view | N/A
ctrl+b | cmd+b | Go to declaration | ✅
ctrl+alt+b | cmd+alt+b | Go to implementation(s) | ✅
ctrl+shift+i | alt+space | Open quick definition lookup | ✅
| cmd+y | Open quick definition lookup | ✅
N/A | cmd+y | Open quick definition lookup | ✅
ctrl+shift+b | ctrl+shift+b | Go to type declaration | ✅
ctrl+u | cmd+u | Go to super-method/super-class | N/A
alt+up | ctrl+up | Go to previous method | N/A
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"url": "https://github.com/kasecato/vscode-intellij-idea-keybindings/issues"
},
"contributes": {
"keybindings": [{
"keybindings": [
{
"key": "ctrl+shift+enter",
"mac": "cmd+shift+enter",
"command": "acceptSelectedSuggestion",
Expand Down
3 changes: 2 additions & 1 deletion src/tool/gene-keybind-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rd.on('line', function(line) {
else if (isIntelliJ(line)) {
intellij = getIntelliJ(line);

var format = escape(key) + ' | ' + escape(mac) + ' | ' + intellij + ' | ';
var format = available(escape(key)) + ' | ' + available(escape(mac)) + ' | ' + intellij + ' | ';
if (hasCommand(command)) {
console.log(format + '✅');
} else {
Expand All @@ -69,6 +69,7 @@ const getCommand = (line) => /"command": "(.*)"/.exec(line)[1];
const getTodo = (line) => /"todo": "(.*)"/.exec(line)[1];

const escape = (line) => line.replace(/([`])/, "\\$1");
const available = (line) => line ? line : 'N/A';


const TABLE_HEADER =
Expand Down

0 comments on commit 5403f3e

Please sign in to comment.