Skip to content

Commit df2daa0

Browse files
authored
ctrl-g to bring up function signature (#36)
* ctrl-g to bring up function signature * add to readme
1 parent 9ca693f commit df2daa0

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.ipynb*
12
tags
23
tags.lock
34
*.bundle.*

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Shortcuts this extension introduces:
4949
| Ctrl-E | Move Cell Down |
5050
| Ctrl-Y | Move Cell Up |
5151
| Ctrl-O, Z, Z | Center Cell |
52+
| Ctrl-G | Show Tooltip |
5253
| Command/Ctrl-1 | Code Cell Mode |
5354
| Command/Ctrl-2 | Markdown Cell Mode |
5455
| Command/Ctrl-3 | Raw Cell Mode |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab_vim",
3-
"version": "0.6.0",
3+
"version": "0.6.1-dev",
44
"description": "Code cell vim bindings",
55
"author": "Jacques Kvam",
66
"main": "lib/index.js",

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@ function activateCellVim(app: JupyterLab, tracker: INotebookTracker): Promise<vo
555555
keys: ['Ctrl O', 'Z', 'Z'],
556556
command: 'center-cell'
557557
});
558+
commands.addKeyBinding({
559+
selector: '.jp-Notebook.jp-mod-editMode .jp-InputArea-editor:not(.jp-mod-has-primary-selection)',
560+
keys: ['Ctrl G'],
561+
command: 'tooltip:launch-notebook'
562+
});
558563

559564
// tslint:disable:no-unused-expression
560565
new VimCell(app, tracker);

0 commit comments

Comments
 (0)