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

Shift-Backspace should not produce ^H #30

Closed
palpha opened this issue Sep 16, 2013 · 3 comments
Closed

Shift-Backspace should not produce ^H #30

palpha opened this issue Sep 16, 2013 · 3 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@palpha
Copy link

palpha commented Sep 16, 2013

I often happen to linger on shift when backspacing, which works well in most situations. PSReadLine punishes me with ^H :/.

Not a bug, perhaps, but a usability improvement.

@lzybkr
Copy link
Member

lzybkr commented Sep 17, 2013

PSReadline shouldn't punish anyone. I'll call it a bug.

@palpha
Copy link
Author

palpha commented Sep 17, 2013

Easy workaround:

Set-PSReadlineKeyHandler -Key 'Shift+Backspace' -BriefDescription BackwardKillWord -Handler {
    [PSConsoleUtilities.PSConsoleReadline]::BackwardDeleteChar()
}

For additional goodness:

Set-PSReadlineKeyHandler -Key 'Alt+Backspace' -BriefDescription BackwardKillWord -Handler {
    [PSConsoleUtilities.PSConsoleReadline]::KillBackwardWord()
}

Very good job on the configurability!

@lzybkr
Copy link
Member

lzybkr commented Nov 26, 2013

This commit e8b8826 should address the rogue ^H problem.

I'll add bindings for Alt+Backspace soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants