simon-git: xcopy (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Fri Oct 23 19:25:25 BST 2015
TL;DR:
4c8779e Make 'xcopy -a TYPE' work even in write mode.
5ca4d98 Support a drag-and-drop mode, using --drop.
Repository: git://git.tartarus.org/simon/xcopy.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=xcopy.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-10-23 19:25:25
commit 4c8779e8f03d94a5e23fe556e15a19c57d3bd3b3
web diff http://tartarus.org/~simon-git/gitweb/?p=xcopy.git;a=commitdiff;h=4c8779e8f03d94a5e23fe556e15a19c57d3bd3b3;hp=83abe8a1b52150fafb236c7cd191419b6039a2b0
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Oct 23 18:54:52 2015 +0100
Make 'xcopy -a TYPE' work even in write mode.
We've always supported the use of an arbitrary selection data type in
read mode, e.g. you can select some text in Firefox and copy it with
all the HTML tags by using 'xcopy -r -a text/html'. But we previously
didn't support specifying an arbitrary data-type atom to _write_ text
into the selection.
I don't see any actual reason for that restriction, so I've removed
it. The only thing we have to be careful of is absent-mindedly trying
to convert into compound text from some data type xcopy doesn't really
understand.
xcopy.but | 8 +++++---
xcopy.c | 9 ++++++---
2 files changed, 11 insertions(+), 6 deletions(-)
commit 5ca4d98fa08171cb68352fccec10b0cb9e236d7d
web diff http://tartarus.org/~simon-git/gitweb/?p=xcopy.git;a=commitdiff;h=5ca4d98fa08171cb68352fccec10b0cb9e236d7d;hp=4c8779e8f03d94a5e23fe556e15a19c57d3bd3b3
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Oct 23 18:58:25 2015 +0100
Support a drag-and-drop mode, using --drop.
This implements the source end of the Xdnd protocol, as documented at
http://jjlindal.net/jafl/xdnd/ . I've probably cut a few corners here
and there, but the result is good enough for dragging and dropping
into Firefox at least, e.g. in a 'drag to upload file' web application
you can say something like
echo -n file:///full/path/name | xcopy -F --drop -a text/uri-list
xcopy.but | 17 ++++
xcopy.c | 293 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 309 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list