Coder Social home page Coder Social logo

Comments (17)

daa84 avatar daa84 commented on August 15, 2024 1

Now toolbar button paste CLIPBOARD and middle button paste PRIMARY mode. Also fix paste in command mode.
Shift-Insert not implemented as it can be binded with for example nnoremap.

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024 1

@last-partizan yes, your right, Insert button does not passed, fixed this.
Also primary clipboard is *, so update mapping a bit

map <S-Insert> "*gP
cmap <S-Insert> <C-R>*
imap <S-Insert> <C-R>*

from neovim-gtk.

wezm avatar wezm commented on August 15, 2024

I put a $20 bounty on this.

from neovim-gtk.

wezm avatar wezm commented on August 15, 2024

Paste toolbar button is working for me but middle click only makes the mode cycle:

peek 2017-10-13 09-42

Tried middle button on mouse and laptop and both behave the same.

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

Can't reproduce,
does it work if just paste '*' register? in insert mode this is Ctrl+r * maybe you have some custom mapping on Ctrl+r ?

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

do some improvements, maybe this helps

from neovim-gtk.

wezm avatar wezm commented on August 15, 2024

I don't believe I have any mappings on Ctrl-r. You can see my vim config and nvim config in my dotfiles repo. I just tried the latest build on a different laptop (with the same config) and it worked!

from neovim-gtk.

wezm avatar wezm commented on August 15, 2024

I'll release the claim as soon as I can log into Bountysource. I'm getting an Internal server error when I try to log in at the moment.

from neovim-gtk.

wezm avatar wezm commented on August 15, 2024

Still can't log onto BountySource. I've pinged them on Twitter.

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

I also can't log onto BountySource
Thanks πŸ‘

from neovim-gtk.

wezm avatar wezm commented on August 15, 2024

I think I worked out how to trigger the behaviour in the animated GIF above. If you middle click in the space after the buffer it triggers this behaviour.

screenshot from 2017-10-18 20-50-26

I.e. if the cursor is not on the last line and I middle click in the lower part of the window with the ~ lines it cycles through the different modes shown in the GIF.

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

still can't reproduce it, but found that neovim itself can process middle button πŸ˜„ , so just pass event directly to it. For me it do the same - paste from primary clipboard. maybe this helps.
If there is still problems, can you check this behavior without plugins loaded.

from neovim-gtk.

last-partizan avatar last-partizan commented on August 15, 2024

What about Shift+Insert? Maybe you can let nvim process it too?

When i enter EDIT mode and press Shift-Insert, it works as expected in plain nvim, but not nvim-gtk.
Also using Shift+Insert in command mode does not work, but works in plain nvim.

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

Looks like gnome termnal can process Shift+Insert and pass it to nvim
https://github.com/GNOME/vte/blob/be6cd8246c7993326677c9e2058deedac4263667/src/vte.cc#L5277

For gui - Shift+Insert already passed to nvim.
Maybe next maps can help:

map <S-Insert>		"*gP
cmap <S-Insert>		<C-R>+
imap <S-Insert>		<C-R>+

i don't test them, but think this must work.

from neovim-gtk.

last-partizan avatar last-partizan commented on August 15, 2024

None of that bindings works.

When i press Shift+Insert in command mode, nothing happens. But when i press Shift+Del, text is inserted.
So, i tried to bind and it inserts text from clipboard. Maybe Shift-Insert does not passed to gvim, and mus be handled like in gnome-terminal.

from neovim-gtk.

last-partizan avatar last-partizan commented on August 15, 2024

Now it works! Thanks!

from neovim-gtk.

rbjorklin avatar rbjorklin commented on August 15, 2024

Did you ever get scroll/middle-click to paste?

Anyhow the remap mentioned above works for Shift-Insert! Maybe mention this in the README?

from neovim-gtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.