Support List view for ReverseSearchHistory

Open
#4,091 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
cli

Research direction

Start by locating the ReverseSearchHistory and ForwardSearchHistory entry points and the existing Prediction UI list view. Determine how a switch such as F2 could connect the views, then verify that multiple history hits and multiline commands are displayed acceptably; done means both history searches support the optional list view without losing the current view.

Written by the indexing model from the issue text.

Description

Issue-Enhancement Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
Description of the new feature/enhancement

Could history search (ReverseSearchHistory and ForwardSearchHistory) i.e. Ctrl+r (optionally) use the Prediction UI list view and show me multiple hits at once?

Proposed technical implementation details (optional)

Basically, I would like to be able to switch between the current view and the prediction list view (i.e. with F2)

It seems to me like the main limitation would be being able to see the whole command (and multi-line commands), which I think could be worked around by replacing [\r\n]+ with or even just showing them escaped, like `n in the display.

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.