Bug 3836 - Ctrl+K should cut to clipboard
Summary: Ctrl+K should cut to clipboard
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: unspecified
Hardware: PC Mac OS
: Lowest enhancement
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-03-09 14:26 UTC by Eric Fikus
Modified: 2013-11-19 17:15 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 3836 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Eric Fikus 2012-03-09 14:26:39 UTC
since Ctrl+Y should paste in the line most recently deleted with Ctrl+K.
Comment 1 Mike Krüger 2012-04-11 09:56:54 UTC
XCode doesn't do it - I would say that's a 'strong' standard.

Where do you have this behaviour from ? 

Ctrl+Y is atm delete to end of line - I don't change that command, but maybe add a cut to end of line and set ctrl+y to that.

But why do you paste with ctrl+y and not with cmd+v ? Is there another clipboard involved ?
(I assume that, therefore I need a larger picture)
Comment 2 Eric Fikus 2012-04-11 13:07:51 UTC
I don't quite understand your comment, but maybe my original description was not clear.

Current behavior in monodevelop:
Ctrl+k cuts to end of line
Ctrl+y pastes (same as Cmd+v)

Current behavior in Xcode:
Ctrl+k cuts to end of line and adds to kill buffer
Ctrl+y pastes (from kill buffer, separate buffer than the normal clipboard)
(This is standard readline behavior, bash acts the same way)

Desired behavior in monodevelop:
Ctrl+k cuts to end of line
Ctrl+y restores the text most recently killed with Ctrl+k, either because the killed text is added to the clipboard or because Ctrl+y/Ctrl+k work on a separate buffer.
Comment 3 Eric Fikus 2012-04-11 13:12:03 UTC
Just to clarify further, the reason I submitted this bug is that when I kill text with Ctrl+k, it should not be permanently lost.  Its behavior should be "cut", not "delete".
Comment 4 Mike Krüger 2012-04-12 01:24:09 UTC
I just need to find out how that 'kill buffer' works.
Just throwing in these 2 commands isn't implementing the xcode feature.
Comment 5 Simon Lindgren 2012-04-20 10:42:57 UTC
Almost identical bug for netbeans: https://www.netbeans.org/bugzilla/show_bug.cgi?id=153435

"The emacs keybindings do not emulate the CTLR-K key like emacs does.  CTRL-K
should cut the current line and put it 
into the kill buffer.  If I hit CTLR-K six times 3 lines should be put into the
kill buffer.  Then hitting CTRL-Y 
should yank out all 3 lines.  Currently only the last line of the 3 will come
out and the other 2 lines are lost.  
This is not correct emacs behavior and is very annoying to people used to using

That's the Ctrl+K, Ctrl+Y behaviour I am used to, though I am not really a diehard emacs user so there might be additional details to this. Not sure what that would be though.
Comment 6 Mikayla Hutchinson [MSFT] 2012-04-23 08:51:59 UTC
The question is how the kill buffer should interact with the clipboard, really. Should it be entirely seperate? Or should the "top" item on the kill ring be synced with the clipboard?
Comment 7 Eric Fikus 2012-04-23 13:32:17 UTC
I think the correct behavior is a separate kill buffer.  Cutting to clipboard as I originally suggested would be matching the not-quite-correct behavior of Ctrl+y, but they should really both be changed to work on a separate buffer.
Comment 8 PJ 2013-11-19 17:04:38 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 9 Mikayla Hutchinson [MSFT] 2013-11-19 17:15:54 UTC