ianhi / jupyterlab_vim-system-clipboard-support

Yank to the system clipboard in jupyterlab vim
MIT License
8 stars 0 forks source link

add option for pasting by default from systemclipboard #2

Open ianhi opened 4 years ago

ianhi commented 4 years ago

allowing for yanking to the system clipboard register to be the default

ianhi commented 4 years ago

this might also require overriding the codemirror vim paste to change the default paste register

ianhi commented 4 years ago

which is substantially larger than yank https://github.com/codemirror/CodeMirror/blob/b2d26b4ccb1d0994ae84d18ad8b84018de176da9/keymap/vim.js#L2563

ianhi commented 4 years ago

And will require re-implementing three vim utility functions that aren't exposed:

  1. getSelectedAreaRange
  2. copyCursor
  3. findFirstNonWhiteSpaceCharacter
ianhi commented 4 years ago

For pasting within jupyterlab reimplementing isn't necessary because the unnamed register will be used by paste. So if I take unamedplus to mean fill both the + and unnamed register then it will get most of the functionality

filyp commented 3 years ago

+1 pasting would be very useful