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

Feature proposal: cut/copy current line when selection is empty. #1229

Closed
danyaPostfactum opened this issue Jan 30, 2013 · 5 comments
Closed

Comments

@danyaPostfactum
Copy link
Contributor

No description provided.

@nightwing
Copy link
Member

Might be ok as an option, but i'd vote to keep current behavior as the default.

@varemenos
Copy link

I'd like to mention that this key binding feature works in Sublime Text 2 and could be included in #1287

@gavinr
Copy link

gavinr commented Jun 10, 2021

Trying to resurrect this old issue. I would prefer when you cut/copy while a selection is empty, it should put the current line into the clipboard. This is standard behavior in most modern code editors like VS Code and SublimeText.

Would a PR that makes this change be accepted @nightwing?

@nightwing
Copy link
Member

This was added as an option some time ago, and can be used with editor.setOption("copyWithEmptySelection", true)

@gavinr
Copy link

gavinr commented Jun 12, 2021

Ah perfect. I think this issue can be closed then. Thank you very much for the reply @nightwing!

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

4 participants