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

Delete within a word stops at substring delimiters such as _ or change in case #46203

Closed
lucasrangit opened this issue Mar 20, 2018 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-wordnav Editor word navigation issues verified Verification succeeded
Milestone

Comments

@lucasrangit
Copy link

lucasrangit commented Mar 20, 2018

Feature Request:
I want to change the only the substring "MACRO" in VS_MACRO_1 to "CODE", by placing the cursor at the second underscore, pressing Ctrl-Backspace, and type "CODE" to get, VS_CODE_1.

Right now, Ctrl-Backspace deletes everything until the word delimiter (e.g. " ", or "/", etc...).

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Mar 20, 2018
@garyking
Copy link

Yes would be nice to have this.

In Sublime, on Mac, Option-Backspace deletes entire words, but Ctrl-Backspace deletes up to the first symbol.

Sublime, first with Option-Backspace, then with Ctrl-Backspace:

backspace

@Tyriar Tyriar added languages-basic Basic language support issues and removed editor editor-core Editor basic functionality labels Mar 20, 2018
@aeschli aeschli assigned alexdima and unassigned aeschli Mar 20, 2018
@alexdima alexdima added the feature-request Request for new features or functionality label Mar 28, 2018
@alexdima alexdima added this to the Backlog milestone Mar 28, 2018
@alexdima alexdima added editor and removed languages-basic Basic language support issues labels Mar 28, 2018
@alexdima alexdima removed their assignment Mar 28, 2018
@alexdima alexdima modified the milestones: Backlog, June 2018 Jun 20, 2018
@alexdima alexdima self-assigned this Jun 20, 2018
alexdima added a commit that referenced this issue Jun 20, 2018
Implement word part move and delete for issue #46203
@alexdima alexdima modified the milestones: June 2018, July 2018 Jun 28, 2018
@alexdima alexdima added the editor-wordnav Editor word navigation issues label Jul 30, 2018
@alexdima
Copy link
Member

Covered by #53470

@alexdima alexdima added bug Issue identified by VS Code Team member as probable bug and removed feature-request Request for new features or functionality editor labels Jul 30, 2018
@chrmarti
Copy link
Contributor

chrmarti commented Aug 2, 2018

This works only after adding _ as a word separator. And that also works in 1.25. Reopening for clarification.

VS Code version: Code - Insiders 1.26.0-insider (c86cab2, 2018-08-02T05:12:16.245Z)
OS version: Darwin x64 17.7.0

@chrmarti chrmarti reopened this Aug 2, 2018
@chrmarti chrmarti added the verification-found Issue verification failed label Aug 2, 2018
@alexdima
Copy link
Member

alexdima commented Aug 2, 2018

@chrmarti starting with the previous release we have commands for subword navigation and subword deletion. These new commands (improved via the PR from my previous comment), cover the case reported in this issue.

In other words, verification steps:

  1. configure the keybinding { "key": "ctrl+alt+backspace", "command": "deleteWordPartLeft", "when": "textInputFocus && !editorReadonly" }
  2. have the string VS_MACRO_1
  3. press ctrl+alt+backspace

@alexdima alexdima closed this as completed Aug 2, 2018
@alexdima alexdima removed the verification-found Issue verification failed label Aug 2, 2018
@chrmarti chrmarti added the verified Verification succeeded label Aug 2, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-wordnav Editor word navigation issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants