-
Notifications
You must be signed in to change notification settings - Fork 317
Camel Humps for Navigation, Selection and Deletion #3734
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
base: master
Are you sure you want to change the base?
Conversation
|
@vollsynthetik please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
|
@microsoft-github-policy-service agree |
Summary
This PR adds the capabilities of CamelHumps navigation, selection and deletion. At default, all new functions are unbound (opt-in). It is up to the user to bind these functions by replacing the word-based equivalents or by binding to unbound keys.
Overview
The following functions are added:
These work pretty much like their word-based counterparts, but the navigate, select, delete camel humps instead. Camel humps are sub words written by starting in-word uppercase letter, e.g., SelectForwardHump.
Configuration
This gives instructions on how to replace the word-based navigation, selection and deletion by hump-based ones:
Set-PSReadLineKeyHandler -Chord Ctrl+RightArrow -Function ForwardHumpSet-PSReadLineKeyHandler -Chord Ctrl+LeftArrow -Function BackwardHumpSet-PSReadLineKeyHandler -Chord Ctrl+Shift+RightArrow -Function SelectForwardHumpSet-PSReadLineKeyHandler -Chord Ctrl+Shift+LeftArrow -Function SelectBackwardHumpSet-PSReadLineKeyHandler -Chord Ctrl+Backspace -Function BackwardKillHumpOf course all of these functions can be bound to any other desired keys and key combinations.
Microsoft Reviewers: Open in CodeFlow