Comments (3)
Nevermind, after checking the source I realized that I was missing was:
vim.opt.clipboard = "unnamedplus"
plus setting sync_with_ring
to false for desired behavior. I am still trying to understand but works so far, thanks!
from yanky.nvim.
Hello,
I'm not sure to understand what you want to achieve. Do you want yanky not to be synchronized with system register ?
Maybe you could try to set this option to false :
system_clipboard = {
sync_with_ring = true,
},
from yanky.nvim.
I would like to add system clipboard to the ring, but not the primary one. Take this example output of :reg
command for example:
Type Name Content
l "" system_clipboard = {^J sync_with_ring = true,^J }^J
l "0 system_clipboard = {^J sync_with_ring = true,^J }^J
l "1 system_clipboard = {^J sync_with_ring = true,^J }^J
l "2 pick 79110d02 fix^J
l "3 @pytest.fixture^J
l "4 isinstance(result, dict)^J
l "5 from . import loose^J
l "6 assert x+1 == y,"test failed"^J assert x == y,"test failed"^J
l "7 y=6^J
l "8 x=5^J
l "9 ^J
c "a ^[a^[
c "- LBs
c "* this text is only selected by mouse (on firefox)
c "+ this text is copied with ctrl-c (on firefox)
c ".
c ": reg
c "/ Not
I'd like to ignore "* (a.k.a. primary selection) on yanky. system_clipboard
option sadly did not do that.
from yanky.nvim.
Related Issues (20)
- sqlite option - how to specify its location? HOT 2
- Feature Request: Telescope action to both put item and set register HOT 3
- Doesn't work with Telescope HOT 9
- Feature Request: Ability to set default telescope action HOT 1
- Selection of a history in telescope always ends in pasting the latest history record HOT 5
- Feature request: Replace with Yanky HOT 1
- Text object errors HOT 2
- Bug: Latest commit breaks last-paste-textobj HOT 6
- Error executing lua callback attempt to index field 'yanky_textobj' (a nil value) HOT 2
- Wrong position of special mark after paste HOT 1
- Update doc for v2
- Question: is there lua API to get last yank/copy text, and get all the yank/copy history? HOT 2
- [Error] Occurs with `cancel_event = 'move'` When Pasting Twice HOT 2
- [Enhancement] Ignore Replaced Text HOT 7
- Wrong behavior of telescope.mapping.put actions HOT 5
- Could you increase the visibility of this by suggesting those maps in the README?
- Preserve cursor position on yank doesn't work HOT 2
- YankyPutAfter vs YankyGPutAfter HOT 1
- nitpick about naming and doc around YankyPutBefore/After HOT 1
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 yanky.nvim.