Comments (17)
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.
@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.
I put a $20 bounty on this.
from neovim-gtk.
Paste toolbar button is working for me but middle click only makes the mode cycle:
Tried middle button on mouse and laptop and both behave the same.
from neovim-gtk.
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.
do some improvements, maybe this helps
from neovim-gtk.
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.
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.
Still can't log onto BountySource. I've pinged them on Twitter.
from neovim-gtk.
I also can't log onto BountySource
Thanks π
from neovim-gtk.
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.
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.
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.
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.
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.
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.
Now it works! Thanks!
from neovim-gtk.
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)
- argc() not work in vimrc
- Add support to strikethrough text
- Underlines and undercurls are not rendered correctly
- Floating point issues cause gaps in background occasionally
- Characters aren't being drawn sometimes HOT 4
- Characters disappear when NERDTree pane opens HOT 5
- Chinese font width error
- Could not initialize nvim
- Character rendering broken with varying word lengths combined with wrapping HOT 7
- update wiki to include cursor blinking as an option HOT 1
- guisp ignored for underline
- Exits successfully with :cq
- Helping out with maintanence? HOT 10
- Artifact for Windows not Found HOT 1
- Improvement: Popup menu go below current line
- Impossible to install neovim-gtk on Ubuntu 22.04 (dependency problem with package 'fragile') HOT 2
- NGShowProjectView doesnβt do anything when NVIM_GTK_NO_HEADERBAR=1 HOT 1
- Feature request: open multiple tabs with -p
- Crash when trying to middle-click-paste if clipboard is empty
- Please create a way to send monetary contribution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim-gtk.