Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.38 KB

File metadata and controls

31 lines (23 loc) · 1.38 KB
title ListHelpers Class definition
description The ListHelpers class provides static methods for working with lists of items in the command palette.
ms.date 2/25/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

ListHelpers Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The ListHelpers class provides static methods for working with lists of items in the command palette. It includes methods for filtering, scoring, and updating lists of items.

Methods

Method Description
FilterList(IEnumerable<IListItem>, String) Filters a list of items based on a search string.
FilterList<T>(IEnumerable<T>, String, Func<String, T, Integer>) Filters a list of items based on a search string and a scoring function.
InPlaceUpdateList<T>(IList<T>, IEnumerable<T>) Updates a list of items in place.
ScoreListItem(String, ICommandItem) Scores a list item based on a search string and a command item.

Structs

Struct Description
ScoredListItem Represents a scored list item.
Scored<T> Represents a scored item of type T.