-
Notifications
You must be signed in to change notification settings - Fork 7.6k
accidently press of ctrl+C or Option+C clears clipboard. even nothing is selected #9311
Comments
Summary: Ctrl+C copies entire line when cursor is at beginning or end of line (but not when in middle). This should be prevented when line is empty. |
@redmunds I think not in my case. It copies in either cases... either on the beginning or at the end..or even in middle .. it should be prevented until nothing is selected.. not only empty line.. while duplicate works good even if nothing is selected. |
This bug is definitely valid. I downloaded Edge Code CC and used the steps @mfarooqi gave, and indeed in Brackets (running at 24b58df on master) copying a blank line actually copies a blank line, while in Edge Code CC (which is based on Brackets 0.38), copying a blank line does nothing. I almost want to call this a CodeMirror bug. |
As I thought, it is a CodeMirror bug. I've traced it to codemirror/codemirror5@f4ae5b4, specifically the I'll file this bug in CodeMirror. EDIT: Filed as codemirror/codemirror5#2824. |
@le717 Nice detective work! |
@le717 Thanks for proceeding the further |
This is currently the intended behavior. Adding 'needs review' and PM tags so we can sort this out. We could consider adding a preference for this... |
Btw, the reason Edge Code doesn't behave this way is just that it's a little bit behind Brackets in terms of updates. This was added in Release 0.39, and the current Edge Code version is based on Release 0.38. |
Has this issue resolved.. ? is it still copying empty lines... ?? |
I accidently closed.. but I am reopening it.. |
Reviewed low priority in case someone wants to add this with a pref. |
But this is horrible.. yes at least put it in preferences. I just downloaded the latest version. that still have this issue. A developer is usually great in blindly typing. But This is he who creates bugs. So an unintentional press of copy without selection at least make me annoyed. I'm sorry if this is just an excuse that other applications like sublime has the same "bug" then we'll put too.. then this doesn't make any sense.. |
@mfarooqi If you'd like to contribute code that fixes this, we'd be happy to review it and merge in the change. But the core team for Brackets has limited resources and we have to focus on what has the most impact. Out of 100,000+ users, only a few have reported issues with this behavior. Sublime and WebStorm, also extremely popular editors, both behave exactly the same way and as far as I can tell neither of them has any preference for turning off this behavior. We are open to adding a preference anyway, but there are lots of things we could work on and we need to prioritize what will benefit people the most. |
@mfarooqi We certainly appreciate the feedback. This behavior started with this feature request in CodeMirror. If an option was added around that code change, we could expose that as a preference in Brackets. |
👍 Never noticed this in other editors, but it really bothers me in brackets (my primary editor). Often, I go to paste something but accidentally hit ctrl-c and copy over my previous content forcing me to undo a lot, recopy, then redo a lot. I prefer to use duplicate or triple click to copy a line. |
In the next Brackets release, there will be a pref |
Brackets version
I found following bug in Brackets Release 0.42 and 0.43. I don't know if it has in previous versions.
OS version
Mavericks 10.9.4
steps to trigger the problem
By following this scenario you can notice the bug...
.. type something in Brackets
.. select some text
.. copy that by pressing "Ctrl+C" or "Options+C" or "Edit -> Copy"
.. In the new lines press "Ctrl+V" or "Options+V" etc.. that copied text is pasted..
.. now Don't select anything. and just press "Ctrl/Option+C" on some empty line.
.. try to paste the previously copied text By pressing Ctrl/Option+V... you wouldn't get anything. our pasted text is empty.
what you expected to happen
. while untill we don't select anything, our previously copied text should remain on the clipboard...
What happened
I'm working on a one page application using HTML+JS on one page and CSS on another.. it's 3000 lines of code almost .. It might get longer in next few days..
If i find something within my codes and copy them to paste on other lines.. one accidental press of Option+C or Ctrl+C on next blank lines empties my clipboard
Please notice this as bug and remove this. I have used Adobe Code CC .. This kind of issue doesn't exists in Adobe Code CC.
The text was updated successfully, but these errors were encountered: