# Virtual folder

Virtual folder is the feature that is lists the notes by the condition you set. This feature is an enhancement of grep.

The following functions are strengthened with the virtual folder compared with Grep.

- Multi conditions
  Virtual folder can have multi conditions to select notes.
- More condition types
  In addition of pattern matching (search), virtual folder supports more conditions by last update time, number of items, etc.
- Preserve settings
  You can save settings. When restarting Tombo, these settigs are restored.

## Elements of virtual folder

Each virtual folder consists of two elements:

- Source
  Source is the range of the notes. Choose folder like grep feature.
- Filter
  Filter is condition to narrow down the notes. Each virtual folder can have several filters.

## Types of filter

Find filter | Find in the notes and choose if matched pattern. This filter is same as grep.
Limit filter | Set number of notes you want. More notes are discarded.
Date filter | Check timestamp(last update date) of the notes and pickup "update in X days".
Sort filter | This is a little special filter. This filter passes all notes with sorting. You can select sorting field by filename/last update date.

TIPS for find filter:

Placing a vertical line character ("|") between two search strings, for example "vertical|horizontal", will make Tombo find files containing EITHER one search string OR the other, but not necessarily both. Leave out all my quotation marks.

Asterisk("*") and plus("+") means repetitions. if you set "(hello)+ world", this is match "hello world" and "hello hello world" and so on.
"(hello)* world" is matches " world" and "hello world" and "hello hello world" and so on.

if you want to match characters "*" itself, you should add backslash before the letter. for example, "(hello)\*" is matched "hello*" and not matched "hello hello".

## Virtual folder settings

To configure the virtual folder, choose "Virtual folder" from menu.

### "Virtual folder settings" dialog

You can add, delete, rename, and order virtual folders by this dialog. You can preserve these options by checking the "Save" checkbox.

### "Filter settings" dialog

You can configure details of virtual folder by this dialog.

#### "Source" tab

Choose source of the virtual folder like "Todo\private". By default, all notes under TomboRoot folder are used.

#### "Filter" tab

Select filter to apply. Filters are applied from top to bottom.