Skip to content

Commit

Permalink
Add #138 that Map F1 to quick documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed Feb 4, 2024
1 parent cd15ad4 commit 35f0368
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tab | tab | Choose Lookup Item Replace | ✅
ctrl+shift+enter | cmd+shift+enter | Complete statement | ✅
ctrl+p | cmd+p | Parameter info (within method call arguments) | ✅
ctrl+q | ctrl+j | Quick documentation lookup | ✅
N/A | f1 | Quick documentation lookup | ✅
ctrl+f1 | shift+f1 | External Doc | N/A
ctrl+mouseover | cmd+mouseover | Brief Info | N/A
ctrl+f1 | cmd+f1 | Show descriptions of error or warning at caret | ✅
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
"when": "editorTextFocus",
"intellij": "Quick documentation lookup"
},
{
"mac": "[F1]",
"command": "editor.action.showHover",
"when": "editorTextFocus",
"intellij": "Quick documentation lookup"
},


{
Expand Down
6 changes: 6 additions & 0 deletions src/package-with-comment.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@
"when": "editorTextFocus",
"intellij": "Quick documentation lookup"
},
{
"mac": "[F1]",
"command": "editor.action.showHover",
"when": "editorTextFocus",
"intellij": "Quick documentation lookup"
},
/*
{
"key": "ctrl+[F1]",
Expand Down
5 changes: 5 additions & 0 deletions src/tool/gene-keybind-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ rd.on('line', function(line) {

var format = available(escape(key)) + ' | ' + available(escape(mac)) + ' | ' + intellij + ' | ';
commandsForHeader.set(format, hasCommand(command) || commandsForHeader.get(format));

key = '';
mac = '';
command = '';
intellij = '';
}
});

Expand Down

0 comments on commit 35f0368

Please sign in to comment.