jupyterlab-contrib / jupyterlab-vim

Vim notebook cell bindings for JupyterLab
https://jupyterlab-contrib.github.io/jupyterlab-vim.html
MIT License
661 stars 43 forks source link

Option to set system clipboard (`+` register) as the default/unnamed register #79

Open banderlog opened 1 year ago

banderlog commented 1 year ago

Yanking text within cell puts it in some non system buffer (xclip does not see it). It is very inconvinient

ianhi commented 11 months ago

If you install jupyterlab-vimrc (https://github.com/ianhi/jupyterlab-vimrc#jupyterlab-vimrc) and go to that extensions settings and setting unnamedplus to true then yy will yank to the system clipboard

joelostblom commented 9 months ago

I think it would be great if it was possible to include this part of jupyterlab-vimrc into jupyterlab-vim as part of the core extension

joelostblom commented 9 months ago

~Actually, this could probably be close as a duplicate of https://github.com/jupyterlab-contrib/jupyterlab-vim/issues/36.~ See https://github.com/jupyterlab-contrib/jupyterlab-vim/issues/36#issuecomment-1744211566

joelostblom commented 9 months ago

Thanks for the clarification in https://github.com/jupyterlab-contrib/jupyterlab-vim/issues/36 @firai. Could the title of this issue be updated to reflect that it is about changing the default clipboard register?

firai commented 9 months ago

Since system clipboard access is now handled upstream in codemirror-vim and since this option exists in vim, this issue might be more appropriate upstream as well

banderlog commented 9 months ago

jupyterlab-vimrc is outdataed like hell: jupyterlab-vimrc 0.5.2 requires jupyterlab==3.*,>=3.0.0rc2,