diff --git a/list/list.go b/list/list.go index f755499..bec5e6f 100644 --- a/list/list.go +++ b/list/list.go @@ -534,6 +534,15 @@ func (m Model) SettingFilter() bool { return m.filterState == Filtering } +// IsFiltered returns whether or not the list is currently filtered. +// It's purely a convenience method for the following: +// +// m.FilterState() == FilterApplied +// +func (m Model) IsFiltered() bool { + return m.filterState == FilterApplied +} + // Width returns the current width setting. func (m Model) Width() int { return m.width