Giter Club home page Giter Club logo

autocutsel's People

Contributors

jcourreges avatar sadkingbilly avatar sigmike avatar stapelberg avatar vakuum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autocutsel's Issues

Doesn't support unicode very well

This has a lot to do with usage of XA_STRING. Copying lines from here, results in:

$ autocutsel -selection PRIMARY -debug
autcutsel v0.9.1
Selection changed: "\n    \u201dGood morning, Dave,\u201d said HAL.\n "...
New value saved: "\n    \u201dGood morning, Dave,\u201d said HAL.\n "...

utf-8 needs an Atom of the form:

Atom UTF8_STRING = XInternAtom(dpy, "UTF8_STRING", False);

Yet changing the atoms wholesale doesn't work, and I'm unfamiliar with Xt.

does not work when copying from google doc

I use fedora27/gnome. compiled autocutsel from github
i have a google doc, when i use ctr-C on the marked text in the doc i get:

$  autocutsel -verbose -debug
autocutsel v0.10.0
Selection changed: "Hello world\n"
New value saved: "Hello world\n"
sel -> cut: "Hello world\n"
Updating buffer

However, middlebotton pastes some old buffer. using the "paste" in the rightclick menu works fine.

UTF8-Update in autocutsel 0.10 doesn't do a proper XA_STRING fallback for older clients

Hi,

the problem goes like this:

  • Older clients (okay, really old clients!), don't support the UTF8 atom in selections
  • XtGetSelectionValue therefore fails, because, well surprise, the client doesn't support it.

The solution according to the UTF8_STRING extension is:

The following patch adds at least the later fallback (older version of autocutsel completely relied on XA_STRING and not COMPOUND_TEXT for some reason).

autocutsel_utf8_string_fallback.diff.txt

If you have any questions, feel free to ask!

Kind regards,
Peter

-selection PRIMARY - no effect?

According to the README:

By default, autocutsel synchronizes the CLIPBOARD selection. You may want to use
the PRIMARY selection instead, if your applications use Motif or another toolkit
not using the CLIPBOARD. 

As I understand it, running autcutsel -selection PRIMARY makes sure CLIPBOARD is synchronized to PRIMARY. However, this doesn't seem to work:

archie@thinkpad ~ % echo $TERM
xterm-256color
archie@thinkpad ~ % autocutsel -selection PRIMARY -fork
archie@thinkpad ~ % echo foo | xsel -i -b
archie@thinkpad ~ % bar # Shift+Insert

Adding -verbose -debug to the command gives no output with the above, except the version number:

archie@thinkpad ~ % autocutsel -selection PRIMARY -verbose -debug
autocutsel v0.10.0

Support auto-start

I found autocutsel is very similar to other X small tool called unclutter because both are (or should be) initialized with X. So I think is a good idea to create a auto-start file on /etc/X11/Xsession.d/.

Sync Primary Selection, Cut Buffer and Clipboard without starting two autocutsel instances?

I seem to mostly use the Primary Selection (in xterm & co) and the clipboard (in the web browser) and to sync them, I seem to need to run two instances of autocutsel, one with -s PRIMARY and one with -s CLIPBOARD (the default). The same setup can also be seen by another user in #15.

I though wonder if there's a possibility sync all three places, Primary Selection, Cut Buffer and Clipboard without having to start two autocutsel instances. If it is possible, it's probably a documentation issue. If it's currently not possible, please consider this as a feature request. :-)

Wayland

So Wayland compositors still have X around in the form of Xwayland and all of the clipboard sync going on there still needs to happen, but now we also need to sync the xwayland and wayland clipboards. Would you consider adding this to autocutsel?

Not work fine with Chinese

Hello, thanks for the update of this great software.
But, when I use it to copy Chinese between Windows and VNC(connected to Ubuntu),it can not work fine.

When the Chinese words were copy to vnc ,autocutsel 0.9.1-2,they became something like UTF8 code "\u5278……".
When I upgrade autocutsel to 0.10.0, it became something nonsense.

【autocutsel v0.9.1-2】
autocutsel 2

【autocutsel v0.10.0】
123

Fork usage: & still needed?

-fork, -f
Run as a daemon program in the background. This is recommended when used from an X startup script.

When using -fork, should one still include &? i.e.,

autocutsel -fork &

I wouldn't think so since it seems redundant but looking online that seems to be the norm and I don't see anything explicitly stating otherwise.

ctrl+v inside a terminal, in ssh does not paste anything

At ~/xinitrc, I have:

autocutsel -fork &
autocutsel -selection PRIMARY -fork &

Which allows me to copy and paste (ctrl+v) everwhere, without any issues.

However, when I open terminal (kitty, or even alacritty) and inside ssh. Nothing is pasted when doing ctrl+v.

But shift+ins works. How I can get ctrl+v working in ssh, inside a terminal?

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.