Skip to content

[Suggestion] Another methods to implement windows style copy/paste #645

Closed

Description

@cy18

The new feature added in #524 is not as good as expect since not only copy/paste, but all Ctrl hot keys are exchanged.

Since what we need is just windows style copy/paste, or in the case of mine, just paste. What if adding options CtrlVExchangeCtrlShiftV and CtrlCExchangeCtrlShiftC?

Another idea is adding a new string option named CtrlExchangeShiftKeys to set what keys to exchange. For example, if someone want windows style copy and paste, then set CtrlExchangeShiftKeys=cv. If he just want windows style paste, set CtrlExchangeShiftKeys=v.

Activity

  1. mintty commented on Mar 18, 2017

    @mintty
    Owner

    So you want Ctrl+V to paste and Ctrl+X to insert ^X?
    That would be kind of pretty inconsistent.
    Do you really want that?
    Really?

  2. cy18 commented on Mar 18, 2017

    @cy18
    Author

    I use ctrl-C to terminate programs as often as using ctrl-V to paste. This is how conemu and cmd.exe in Windows 10 do. Forther more, when ctrl-C is presses, they send ^C if no text is selected, but copy the text if there is text selected. Believe me, it's more convenient than you thought. It would be great if mintty also support this. You say it is inconsistent, I'll say it is smart, since this is exactly what I want to do when I pressed ctrl-C and ctrl-V.

    Using ctrl+shift+V is also good, but it's not compatible with the clipboard managers such as Ditto.

  3. mintty commented on Mar 19, 2017

    @mintty
    Owner

    cmd.exe is a Windows shell. mintty normally hosts a cygwin shell. These are two different worlds.
    That does not necessarily mean it's not possible to consider such "smartness" but since the described behaviour is somewhat alien in a Posix environment, I'd rather let the idea settle for a while and maybe see if others support the request.

  4. Biswa96 commented on May 5, 2018

    @Biswa96
    Contributor

    The shift/ctrl+insert shortcut is similar with xterm. If someone is accustomed with that he may find that shortcut useful.
    But Microsoft added an option to enable Ctrl+c/v to copy/paste in WSL: https://blogs.msdn.microsoft.com/commandline/2018/04/13/copy-and-paste-arrives-for-linuxwsl-consoles/ so Windows users also find that useful if there is an option to enable that shortcut like in that article.

  5. mintty commented on May 5, 2018

    @mintty
    Owner

    The shortcut I see in the config screenshot is Ctrl+Shift+C/V.
    Mintty has that already, just enable "Ctrl+Shift shortcuts".

  6. added a commit that references this issue on Sep 2, 2018
  7. added a commit that references this issue on Sep 19, 2018
  8. mintty commented on Sep 20, 2018

    @mintty
    Owner

    Released 2.9.1.

  9. mintty commented on Mar 25, 2022

    @mintty
    Owner

    Released 3.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions