clink icon indicating copy to clipboard operation
clink copied to clipboard

Please restore ability to paste newlines

Open dlh3 opened this issue 5 years ago • 1 comments

Affected code: https://github.com/mridgers/clink/blob/823d841bc5c38a83c3cc0991c1f3ff8099d83fb5/clink/app/src/host/host_module.cpp#L71-L98

Removed in commit ae3a8a9a677cb3f403f295b0cff0c52bf7884253

Perhaps pasting (with ctrl+v) newlines in clink isn't possible, for some underlying technical reason, but it would be really nice if we could. It's fairly common to have a list of commands to be executed sequentially that will be pasted into the command prompt. The expected behaviour is that these would include the newlines, executing each command at the newline (unless the newline is escaped by "^").

Currently, right-clicking to paste allows me to paste with newlines (executing each line, as expected), but it would be great if clink's ctrl+v worked in the same way.

PS, love clink, thanks for giving this to the world! 🙂

dlh3 avatar Feb 26 '20 22:02 dlh3

The chrisant996/clink fork supports this, when the clink.paste_crlf setting is set to crlf:

clink set clink.paste_crlf crlf

chrisant996 avatar Jul 29 '21 08:07 chrisant996