# Create custom Filters (Search Queries or Places)

**URL:** <https://community.bear.app/t/create-custom-filters-search-queries-or-places/13518>\
**Category:** Feature Request\
**Tags:** pin, features, search\
**Created:** [August 20, 2024, 2:21pm UTC](https://community.bear.app/t/create-custom-filters-search-queries-or-places/13518 "2024-08-20T14:21:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![B.Bear](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@B.Bear](https://community.bear.app/u/B.Bear)\
**Post date:** [August 20, 2024, 2:21pm UTC](https://community.bear.app/t/create-custom-filters-search-queries-or-places/13518/1 "2024-08-20T14:21:09Z")

</div>

## Overview:

I would like to propose a feature that enhances the organizational capabilities of Bear by allowing users to create custom filters (search queries or places). This feature would significantly improve user experience, particularly for those with extensive tag systems and specific search needs.

### What:

- **Custom Filters:** The ability to create custom filters that act as saved search queries.
- **Filter Attributes:** Each filter would have an icon, name, and associated search query.

### Why:

- **Enhanced Organization:** Custom filters would help users manage and declutter large tag systems.
- **Efficient Workflow:** Users could save time by accessing complex searches with a single click, eliminating the need to manually input search queries repeatedly.

### How:

- **Sidebar Integration:** These filters would live in the sidebar, above the tags or within the notes section, making them easily accessible.
- **Saved Search Commands:** Users can define filters using combinations of tags and advanced search commands (e.g., exclusions with `-`, `"phrases"` in quotes, and special search attributes like `@today`, `@done`, `@pinned`, etc.) as listed in the following documentation:

> **[Bear](https://bear.app/faq/how-to-search-notes-in-bear/)**
>
> Learn how to use Bear’s search tools including advanced options and filters. Search for specific phrases, exclude keywords, set a time frame, and more.

### **Examples**

Here are some simple examples to illustrate how this feature could be used:

```auto
// Filter that shows all work-related tasks that are not done

> "overdue" [query:#work -@done]

```

```auto
// Filter that shows Personal Project Tasks, such as hobbies

> "in free-time" [query:#personal #project @todo]

```

```auto
// Filter that shows all Python example code from a specific person 

> "tim's code examples" [query:#person/tim #python @code]

```

**Advanced Nesting Example:**  
The ability to nest filters would further enhance their utility:

```auto
// Filter for your daily journal that shows the days you tracked a good or excellent mood

> "happy days" [query:#daily log# #mood/good #mood/excellent]
	> "last 7 days" [query:@happy days@ @created7days]
	> "last 30 days" [query:@happy days@ @created30days]
	> "gallery" [query:@happy days@ @images]

```

---

<div class="post-metadata">

**Author:** ![mlw](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mlw](https://community.bear.app/u/mlw)\
**Post date:** [August 24, 2024, 5:08pm UTC](https://community.bear.app/t/create-custom-filters-search-queries-or-places/13518/2 "2024-08-24T17:08:12Z")

</div>

Plus one. Has been requested several times

---

<div class="post-metadata">

**Author:** ![Pdxpectations](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@Pdxpectations](https://community.bear.app/u/Pdxpectations)\
**Post date:** [August 25, 2024, 4:18am UTC](https://community.bear.app/t/create-custom-filters-search-queries-or-places/13518/3 "2024-08-25T04:18:15Z")

</div>

Bear also offers a number of special search options to suit different scenarios.

- **@images** shows notes that contain images
- **@todo** shows notes with incomplete todos
- **@date** shows notes created or modified on a specific date

**Please note** : For **@date** and **@cdate** (the creation date of a note), there is no space between the command and the parenthesis. For example, try copying **@cdate(202201)** into your Bear search box and the results will show all notes created in January 2022.

---

<div class="post-metadata">

**Author:** ![Pdxpectations](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@Pdxpectations](https://community.bear.app/u/Pdxpectations)\
**Post date:** [August 25, 2024, 4:20am UTC](https://community.bear.app/t/create-custom-filters-search-queries-or-places/13518/4 "2024-08-25T04:20:10Z")

</div>

You could also use keyboard - text replacement to help in this situation. I replaced @last7days with L7 in my search function. You could do something like L30 to replace @last30days. Just a thought.
