Skip to content

New extension to duplicate/delete lines#1413

Open
dsfulf wants to merge 1 commit intoipython-contrib:masterfrom
dsfulf:master
Open

New extension to duplicate/delete lines#1413
dsfulf wants to merge 1 commit intoipython-contrib:masterfrom
dsfulf:master

Conversation

@dsfulf
Copy link

@dsfulf dsfulf commented Apr 30, 2019

This is a small extension intended to enhance Jupyter Notebook as a text editor. Two new commands are added for edit mode. The keyboard commands are chosen for similarity with Sublime Text and Atom (Ctrl-Shift-D cannot be used as that is the default for adding a bookmark to Chrome).

  • duplicate line : Ctrl-Alt-D : duplicates the current line
  • delete line : Ctrl-Alt-K : deletes the current line

Credit to http://stackoverflow.com/a/40505055/6003870 for the basic code for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant