Bug 80347 - Make Cut/Copy (optionally) operate on the current line when no selection exist
Summary: Make Cut/Copy (optionally) operate on the current line when no selection exist
Status: CLOSED DUPLICATE of bug 23625
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 04:44 EST by Thomas Singer CLA
Modified: 2011-06-23 02:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Singer CLA 2004-12-07 04:44:49 EST
Ctrl-X/Ctrl-C in the text-editor should cut/copy the current line, when nothing
is selected.
Comment 1 Dani Megert CLA 2004-12-07 06:28:03 EST
We will not modify the behavior of Cut and Copy but there's already a "Cut Line"
command that is not bound to a key sequence. You can bind it via Keys preference
page (Text Editing category).

In the future we might also provide a Copy Line command. This is covered by bug
23625.


*** This bug has been marked as a duplicate of 23625 ***
Comment 2 Thomas Singer CLA 2004-12-07 08:13:44 EST
Thanks for the hint. Unfortunately I cannot find it. Maybe you also should make
it much easier to find some commands in the key-mappings-panel.
Comment 3 Dani Megert CLA 2004-12-07 08:18:50 EST
1. open prefs using Window > Preferences
2. navigate to keys via Workbench > Keys
3. click on the Modify tab
4. select "Text Editing" from the Category drop down
5. select "Cut Line" from the Name drop down

HTH

>Maybe you also should make
>it much easier to find some commands in the key-mappings-panel.
Agree. I think there's already a bug for this in Platform UI.
Comment 4 Thomas Singer CLA 2005-11-29 15:02:07 EST
Sorry for the extremely late feed-back:

Cut Line does NOT behave as expected by me (or any other IDEA-user):

- if no text is selected, it works OK -> the current line is cut
- if text is selected, it just delete the first selected line instead of the expected text
Comment 5 Dani Megert CLA 2005-11-30 04:59:58 EST

*** This bug has been marked as a duplicate of 60177 ***
Comment 6 Thomas Singer CLA 2011-06-22 11:08:53 EDT
It is no duplicate - please reread.
Comment 7 Dani Megert CLA 2011-06-22 11:51:08 EDT
(In reply to comment #6)
> It is no duplicate - please reread.

Well, yes and no. The problem you mention in comment 4 is a dup (or at least fixed along with) bug 60177. And the copy issue is a duplicate of bug 23625. Bugzilla doesn't allow me to mark a bug as dup of more than one.

So, I can either close this as dup of one of those two bugs or as INVALID. You to choose ;-).
Comment 8 Dani Megert CLA 2011-06-23 02:07:32 EDT
I've looked at this bug and bug 23625 again and they are really the same. No clue why you reopened it in the first place 4.5 years ago.

*** This bug has been marked as a duplicate of bug 23625 ***