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 by word doesn't delete word boundary characters #4141

Open
johnburnett opened this issue Aug 26, 2024 · 0 comments
Open

Delete by word doesn't delete word boundary characters #4141

johnburnett opened this issue Aug 26, 2024 · 0 comments
Labels
Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@johnburnett
Copy link

Summary of the new feature / enhancement

Say I have the following command written out (where "|" represents the cursor position):

foo --bar "ack"|

If I hit "ctrl-w" or "ctrl-backspace" three times, I'm left with the following sequence of results:

foo --bar "|
foo --|
|

...which in all three cases is not really what I'm looking for, which is "delete the last token of the command line along with the associated quotes, dashes, slashes, etc" (I'm not sure how to properly say this).

I'm comparing this to something like (say) bash, which gets me the following three states:

foo --bar |
foo |
|

...which is what I'm hoping to see (basically, leaving the command line in a state to start typing forward again without having to clean up detritus like the quotes, dashes, etc).

Is this something that's in pwsh's realm of responsibility?

Proposed technical implementation details (optional)

No response

@johnburnett johnburnett added the Issue-Enhancement It's a feature request. label Aug 26, 2024
@SteveL-MSFT SteveL-MSFT transferred this issue from PowerShell/PowerShell Aug 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement It's a feature request. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

4 participants
@johnburnett and others