dotfiles/.vscode/extensions/vscodevim.vim-0.2.0/node_modules/copy-paste/platform/linux.js

10 lines
457 B
JavaScript
Raw Normal View History

2016-09-11 09:29:13 +01:00
exports.copy = { command: "xclip", args: [ "-selection", "clipboard" ] };
exports.paste = { command: "xclip", args: [ "-selection", "clipboard", "-o" ] };
exports.paste.full_command = [ exports.paste.command ].concat(exports.paste.args).join(" ");
exports.encode = function(str) { return new Buffer(str, "utf8"); };
exports.decode = function(chunks) {
if(!Array.isArray(chunks)) { chunks = [ chunks ]; }
return Buffer.concat(chunks).toString("utf8");
};