Skip to content

Commit 235e14d

Browse files
committed
initial commit
0 parents  commit 235e14d

File tree

11 files changed

+1331
-0
lines changed

11 files changed

+1331
-0
lines changed

.gitignore

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
yarn.lock
2+
*.ipynb*
3+
tags
4+
tags.lock
5+
*.bundle.*
6+
lib/
7+
node_modules/
8+
*.egg-info/
9+
.ipynb_checkpoints
10+
11+
# Created by https://www.gitignore.io/api/node
12+
13+
### Node ###
14+
# Logs
15+
logs
16+
*.log
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
20+
21+
# Runtime data
22+
pids
23+
*.pid
24+
*.seed
25+
*.pid.lock
26+
27+
# Directory for instrumented libs generated by jscoverage/JSCover
28+
lib-cov
29+
30+
# Coverage directory used by tools like istanbul
31+
coverage
32+
33+
# nyc test coverage
34+
.nyc_output
35+
36+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
37+
.grunt
38+
39+
# Bower dependency directory (https://bower.io/)
40+
bower_components
41+
42+
# node-waf configuration
43+
.lock-wscript
44+
45+
# Compiled binary addons (http://nodejs.org/api/addons.html)
46+
build/Release
47+
48+
# Dependency directories
49+
node_modules/
50+
jspm_packages/
51+
52+
# Typescript v1 declaration files
53+
typings/
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Optional REPL history
62+
.node_repl_history
63+
64+
# Output of 'npm pack'
65+
*.tgz
66+
67+
# Yarn Integrity file
68+
.yarn-integrity
69+
70+
# dotenv environment variables file
71+
.env
72+
73+
74+
# End of https://www.gitignore.io/api/node
75+
76+
# Created by https://www.gitignore.io/api/osx
77+
78+
### OSX ###
79+
*.DS_Store
80+
.AppleDouble
81+
.LSOverride
82+
83+
# Icon must end with two \r
84+
Icon
85+
86+
# Thumbnails
87+
._*
88+
89+
# Files that might appear in the root of a volume
90+
.DocumentRevisions-V100
91+
.fseventsd
92+
.Spotlight-V100
93+
.TemporaryItems
94+
.Trashes
95+
.VolumeIcon.icns
96+
.com.apple.timemachine.donotpresent
97+
98+
# Directories potentially created on remote AFP share
99+
.AppleDB
100+
.AppleDesktop
101+
Network Trash Folder
102+
Temporary Items
103+
.apdisk
104+
105+
# End of https://www.gitignore.io/api/osx

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
install:
5+
- npm install -g typescript tslint
6+
script:
7+
- tslint src/index.ts

History.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# History
2+
3+
4+
## 0.1.0 / 2018-08-11
5+
6+
* Initial Release!
7+
* Emacs keybindings inside JupyterLab notebook cells
8+
* somewhat adapted (but mostly copied) from github:jwkvam/jupyterlab-vim

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 kpe
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# jupyterlab-emacskeys
2+
3+
Currently JupyterLab seems to support emacs keybindings only in its text editor,
4+
but not in the notebook cells. This might be a simply a bug, as changing the
5+
default config in codemirror helps, but until it is fixed, I'm using this
6+
method of changing the default keymap in codemirror.
7+
8+
## Origin
9+
10+
I was badly missing the emacs keybindings support in the notebook cells
11+
in the current version of jupyterlab, and I was not familiar with
12+
the jupyter development infrastructure, I've just forked the [jwkvam/jupyterlab-vim](https://github.com/jwkvam/jupyterlab-vim) repo and adapted it to simply set the `keyMap=emacs` in codemirror.
13+
14+
15+
16+
## Install
17+
### Prerequisites
18+
19+
* JupyterLab 0.33
20+
21+
### Install or upgrade
22+
23+
```bash
24+
jupyter labextension install jupyterlab_vim
25+
```
26+
27+
### Uninstall
28+
29+
```bash
30+
jupyter labextension uninstall jupyterlab_vim
31+
```
32+
33+
### Development
34+
35+
For a development install (requires npm version 4 or later), do the following in the repository directory:
36+
37+
```bash
38+
npm install
39+
npm run build
40+
jupyter labextension link .
41+
```
42+
43+
To rebuild the package and the JupyterLab app:
44+
45+
```bash
46+
npm run build
47+
jupyter lab build
48+
```

0 commit comments

Comments
 (0)