Skip to content

FR: Search Labels / Saved Scopes #218

Description

@salmanuc

For users with multiple indexed locations and advanced search workflows, it would be useful to create custom search scopes that can group directories, volumes, shares, and even saved search expressions under a user-defined label.

Example Scopes

NAS

  • /Volumes/Media
  • /Volumes/Documents
  • /Volumes/Photos

Work

  • ~/Projects
  • /Volumes/WorkShare

Archive

  • /Volumes/Archive

Requested Behavior

Allow users to define custom scopes and associate one or more indexed locations with each scope.

However, scopes should not be limited to path-based filtering. A scope should also be able to encapsulate any search restriction, operator, filter, or function supported by Cardinal.

This would allow scopes to function as reusable saved searches rather than merely collections of folders.

Example Saved Scopes

NAS

path:/Volumes/Media OR path:/Volumes/Documents

Recent PDFs

ext:pdf modified:<30d

Large Videos

(ext:mkv OR ext:mp4) size:>1GB

Work Documents

tag:work AND (ext:pdf OR ext:docx)

Code Projects

(ext:py OR ext:js OR ext:ts OR ext:go)

Search Bar Integration

In addition to query operators, scopes should be exposed directly in the search UI through a dropdown selector similar to Everything for Windows.

[ Search query________________ ] [ All ▼ ]
[ Search query________________ ] [ NAS ▼ ]

Selecting a scope would automatically apply the saved search criteria associated with that scope.

For example:

[ invoice ] [ Recent PDFs ▼ ]

could internally execute:

(ext:pdf modified:<30d) AND invoice

Query Syntax

For power users, scopes should also be accessible through search operators:

scope:nas movie
scope:work presentation
scope:archive tax return

or

scope:recent-pdfs invoice
scope:large-videos documentary

Benefits

  • Faster searching across large indexes.
  • Easier organization of local folders, external drives, and NAS shares.
  • One-click access to frequently used searches.
  • No need to remember complex operators.
  • Discoverable for new users through the UI dropdown.
  • Efficient workflow for power users through query syntax.
  • Similar to Smart Folders, Search Folders, bookmarks, and saved searches found in mature desktop search tools.

Possible Extensions

  • Nested scopes/groups.
  • Multiple scopes per location.
  • Scope inheritance.
  • Scope-specific inclusion/exclusion rules.
  • Scope-specific sorting and result layouts.
  • Favorite or pinned scopes.
  • Keyboard shortcuts for scope selection.
  • Export/import or sharing of scopes between devices.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions