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

Document how to disable ctrl-c and ctrl-x when no text is selected #1009

Open
1 task done
tovrstra opened this issue May 17, 2024 · 1 comment
Open
1 task done

Document how to disable ctrl-c and ctrl-x when no text is selected #1009

tovrstra opened this issue May 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tovrstra
Copy link

tovrstra commented May 17, 2024

Have you checked for existing feature requests?

  • Completed

Summary

This is a follow-up of atom/atom#7103

I guessed the following in keymap.cson would work, but it does not for ctrl-x. (It works for ctrl-c.):

'atom-text-editor':
  # mac os
  'command-c': 'editor:copy-selection'
  'command-x': 'editor:cut-selection'
  # linux and windows
  'ctrl-c': 'editor:copy-selection'    
  'ctrl-x': 'editor:cut-selection'

There seems to be no cut-selection command or it has a different name, which I'm not aware off.

What benefits does this feature provide?

I can imagine Pulsar developers would like to appeal to a broader audience. The default behavior of ctrl-c and ctrl-x is annoying to those who are not used to it.
Any new user bumping into this frustration without an easy to find solution will probably give up early, which is a shame.

Any alternatives?

Even better would be to change the default behavior of ctrl-c and ctrl-x, but I guess this is a matter of taste.

Other examples:

No response

@tovrstra tovrstra added the enhancement New feature or request label May 17, 2024
@savetheclocktower
Copy link
Sponsor Contributor

You're right — either that should be a configurable setting or there should exist less opinionated versions of both Copy and Cut.

The easiest solution would be to add an editor:cut-selection command, so I'll see if we can get that added.

Thanks for the report!

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

No branches or pull requests

2 participants