Giter VIP home page Giter VIP logo

Comments (3)

sanel avatar sanel commented on May 28, 2024 1

Thank you @axelf4 for fast reply and pointing to the actual code. I just started to play with xclip package you mentioned and it works without problems, so closing this was a good call :)

from evil.

sanel avatar sanel commented on May 28, 2024

I've noticed I have some custom functions for reading/storing clipboard content for older evil that doesn't work with the latest evil, but if I use stock (old) evil version with these custom functions disabled, it behaves like the current master - it doesn't store anything in + register.

However, Vim will store data in + register when is run in terminal, not sure about the behavior here... What others think?

from evil.

axelf4 avatar axelf4 commented on May 28, 2024

At least on GNU Emacs >=29, Evil mode unambiguously just defers to the ordinary Emacs clipboard handling:

evil/evil-common.el

Lines 1961 to 1964 in fe44a56

((memq register '(?* ?+))
(let ((what (if (eq register ?*) 'PRIMARY 'CLIPBOARD)))
(if (eval-when-compile (>= emacs-major-version 29))
(gui--selection-value-internal what)

That is to say, this is not a concern of Evil mode. In any case, clipboard access in the terminal is not guaranteed. Some terminal emulators support clipboard xterm VT sequences which Emacs will try to use, but e.g. tmux or SSH may not forward those. I previously used the xclip package, which relies on xclip/wl-clipboard/etc. Not sure why your old Evil mode checkout did work however.

from evil.

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.