Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can tweak the cut command. But, the content being cut does not go the clipboard ring. How to fix this? #3196

Open
pdelfino opened this issue Aug 24, 2022 · 2 comments

Comments

@pdelfino
Copy link

Hi,

If I am using the default keybinding for cut in macOS it is Command-x. It works.
The selected content disappears. Moreover, the content cut goes to the clipboard ring.

This means that if I execute paste command, it is going to paste what was just cut!

Since I am an Emacs afficionado, I am changing the keybinding to be more like Emacs. Hence, C-w (control and "w"):

{
                        "description": "C-w to Cut",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "w",
                                    "modifiers": {
                                        "mandatory": [
                                            "left_control"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "x",
                                        "modifiers": [
                                            "command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }

It partially works. This command makes the content disappears.
However, the selected content does not go the clipboard ring after
being vanished.

I am a heavy user of the clipboard ring. I would like to have it
working with my new cut.

Is there any way to fix this?

Thanks.

@Muirium
Copy link

Muirium commented Sep 7, 2022

I think I encountered this in my quest for (multi stage modification) macros. I’m no emacs expert, but I reckon you’re talking about the yank buffer. Support for it is inconsistent on the Mac, really depending on the app you’re in at the time. Control Y often works in parallel to Command X, but not always. It’s quite irritating. The default system frameworks do support it but many apps don’t use them.

Like you, I insist on clipboard history. So I use the excellently simple JumpCut to handle it system wide. Have done since PowerPC actually. Hopefully that or similar will give you what you need.

#2711

@pdelfino
Copy link
Author

pdelfino commented Sep 7, 2022

Thanks for trying to help, @Muirium. I have just installed your suggestion. It is nice. I can copy multiple things and they do go to the clipboard ring management tool. When pasting (yanking), I can choose a list of options from things copied. I did not have this before. So, thanks - really.

Also, if I cut words with the default binding (command x), it also works. The word disappears and the content goes to the clipboard ring. Hence, I can pick them from a list and paste (yank) an option.

Unfortunately, my original problem persists. The keybinding I have set via Karabiner Elements for cut is Control w and it only works partially. The textual content cut via this shortcut disappears but the content does not go to the clipboard ring manager tool (Jumpcut)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants