PSReadLine Keyhandlers should have a reset to default

Open
#3,518 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, powershell
Domain
cli

Research direction

Start by reviewing the existing PSReadLine key-handler commands and how key-handler settings are represented. Define whether the feature should restore defaults, import/export shared configuration, or both; done means the chosen behavior is implemented and its command usage is clear.

Written by the indexing model from the issue text.

Description

Area-KeyHandlers Issue-Enhancement
Prerequisites
  • Write a descriptive title.
Description of the new feature/enhancement

I forget which key handlers I set and may be nice to have a simple way to reset all key handlers to their default values. Potentially something like Restore-PSReadLineKeyHandler -Default, or make it extensible such that we can import/export keyhandler config files so folks can share and use key handler files. i.e Restore-PSReadLineKeyHandler -Path ./MyKeyHandlers.json or something like this. Curious if folks use key handlers often and if this is something that may be useful.

Proposed technical implementation details (optional)

No response

Dominant language
C#
Stars
4.4k
Forks
341
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/PSReadLine

All issues in PowerShell/PSReadLine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.