zenorocha / clipboard.js

:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard:
https://clipboardjs.com
MIT License
34.03k stars 3.98k forks source link

Add New Line to Clipboard #844

Open flywire opened 1 year ago

flywire commented 1 year ago

💥 Proposal

Problem:

Entering a block normally requires entering a new line after a paste.

Solution:

Optionally, add a new line to the clipboard so user doesn't have to do it each time.

Assistance offered:

I would welcome the opportunity to test any code.

Contributing Guidelines Statement:

This trivial request is consistent with guidelines.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

flywire commented 1 year ago

Any thoughts on this proposal to support copy/paste without requiring user to enter the last line.

Bharat1241 commented 1 year ago

If you want to implement this functionality , you can write a simple script or program that adds a new line to the clipboard before pasting the text. The exact implementation may depend on the programming language and platform you're using, but the general idea is to modify the clipboard contents before pasting it.

flywire commented 1 year ago

@Bharat1241 that sounds great. Can you show how to hack this into clipboard.js so it works for any platform? Don't worry about any config, I'll run a hacked version.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

flywire commented 1 year ago

write a simple script or program that adds a new line to the clipboard before pasting the text

That sounds great. How?

obetomuniz commented 4 months ago

Hey folks, there are some bugs that I will be contributing first to solve, but definitely, after them, I'll be considering all related proposals to triage and potentially work on them depending on the impact of it in the plugin, okay? Anyway, thank you so much for proposing it.