copy-paste

Copying a UTF-8 URL from browser's address bar, gives only the ugly encoded one

瘦欲@ 提交于 2019-12-02 14:50:50
When I copy a UTF-8 URL from the browser's address bar (almost any browser on any os), then try to paste it in another text field (to post it on facebook or twitter for example), it gives only the decoded URL, which makes it ugly. For example, in the address bar, the URL appears like this one: https://www.chaino.com/وذكر But when trying to copy and paste it in any other place, it gives the following ugly url: https://www.chaino.com/%D9%88%D8%B0%D9%83%D8%B1 & if I wanted to get the original URL to use it in any place, I used to decode it in this Raw URL Decoder - Online Tool Question is: is

copy all files and folders from one drive to another drive using DOS (command prompt)

喜欢而已 提交于 2019-12-02 14:29:17
i want to copy all files and folders from one drive to another drive using MS-DOS. How to do it? I am trying xcopy I:\*.* N:\ But it copies only files, not folders. So how to copy all files and folders both? Thanks. Yahia Use xcopy /s I:\*.* N:\ This is should do. SHABAZ KHAN xcopy c:\ d:\ /h/i/c/k/e/r/y Use the above command. It will definitely work. In this command data will be copied from c:\ to D:\, even folders and system files as well. Here's what the flags do: /h copies hidden and system files also /i if destination does not exist and copying more than one file, assume that destination

Copy lines in visual mode in vim

柔情痞子 提交于 2019-12-02 14:08:32
Just a question about copy/paste workflow in gVim. Right now I'm working on a document. I want to select some lines of code and copy and paste. I'm using gVim (Windows). If I use Control + C and Control + V, gVim takes sometimes 2, 3 seconds to paste... The other way is using, Shift + v (right, now I'm in visual mode), then I keep the Shift key pressed and drag my selection with the mouse. Now I can copy with 'y' or 'c' and paste with 'p'. This is faster, but I have to keep the Shift key pressed. Is there a way to use the mouse to select text in visual mode without keeping the Shift key

How to delete (not cut) in Vim?

随声附和 提交于 2019-12-02 13:54:10
How can I delete a line without putting it into my default buffer? Example: line that will be copied. line that I want to be substitued with the previous one. What I'm trying to do: yy dd p But Vim replaces the recent copied string with the deleted (cutted) one. I know that I can use buffers like, "1yy , dd then "1p , but I always forget to put the copied string in a buffer then I need to paste my contents first (line that will be copied) and then delete what I want (line that I want to be substituted with the previous one.) How can I really delete a text in Vi(m) without copying it? Another

How to paste text to end of every line? Sublime 2

余生颓废 提交于 2019-12-02 13:47:34
I'm curious if there is a way to paste text to the end of every line in Sublime 2? And conversely, to the beginning of every line. test line one test line two test line three test line four ... Say you have 100 lines of text in the editor, and you want to paste quotation marks to the beginning and end of each line. Is there an easy way to do this or a plugin that anyone would know of? This would often save me a lot of time on various projects. Thanks. You can use the Search & Replace feature with this regex ^([\w\d\_\.\s\-]*)$ to find text and the replaced text is "$1" . palaniraja Yeah Regex

How do you copy and paste into Git Bash

和自甴很熟 提交于 2019-12-02 13:46:18
I'm using msysgit running on Windows XP. Tried Ctrl + V , Right click, Middle click, google... no luck. Amber Press Insert . Also, to copy from the window, try clicking the console's window icon (topleft) and choosing Edit -> Mark, then drag a box on the text, then press Enter. (You can also paste via the window icon menu, but the key is faster.) UPDATE Starting from Windows 10 the CTRL + C , CTRL + V and a lot of other feature are implemented in conhost.exe so they should work with every console utility on Windows. (You have to enable Properties -> Option tab -> Quick Edit Mode) Ref: http:/

how to get the source file's (the file which I want to copy) and the copied file's information in C

烈酒焚心 提交于 2019-12-02 07:30:53
I want to get the source file information, when I want to copy the source file and then get the destination file information, when the source file has already being copied. The problem with the code is that I can't copy and get the source and destination file information. How could you be able to fix my code to copy a file and get source and destination information? Code: #define BUFFER 100 // ** increased - file path can get pretty long #define BUFFERSIZE 4096 #define COPYMODE 0644 void oops(char *, char *); int file_exist(char *filename) { struct stat buffer; return (stat (filename, &buffer)

Copying specific files from multiple sub-directories into a single folder in R

我们两清 提交于 2019-12-02 05:15:02
Assuming I have 3 folders with a large number of files in each, I want to select only a few files from each sub-directory and paste only those files into a new folder. Let's call the 3 folders: desktop/dir/sub_11s_gi01_ab desktop/dir/sub_11f_gi01_b desktop/dir/sub_12s_gi02_ms The files that need to be copied have the extension ".wang.tax.sum" All of the other files cannot be copied and then deleted because it would take days. From other questions, I can combine all the files into a list and copy all of them but I don't know how to copy only the files that end with .wang.tax.sum I can use the

Clipboard management with websites

ε祈祈猫儿з 提交于 2019-12-02 01:56:25
I would like to know how to put text into the clipboard like some popular websites are able to do. I have seen sites like www.photobucket.com and www.hulu.com somehow make copying to the clipboard automatic and cross browser. How can I do the same? I saw a cross browser way to do it using flash, but it won't work with the current version? Take a look at this: http://ajaxian.com/archives/seeding-the-clipboard-in-flash10-with-zero-clipboard One option is Clippy , "a very simple Flash widget that makes it possible to place arbitrary text onto the client's clipboard. Well, since Firefox disables

Gtk# Clipboard Copy/Cut/Paste files

梦想的初衷 提交于 2019-12-02 00:49:14
问题 How can I use Gtk# to copy, cut, and paste files to the clipboard. Every example I have seen only shows text being put into the clipboard. If anyone has an example I'd appreciate it. 回答1: if your application is running on Gnome/Unity you can use "x-special/gnome-copied-files" target type to move/copy files over clipboard. Once file copied you should be able to paste it using file manager and vice versa. Below is an example of a window class which does this: using System; using System.IO;