I was looking for a workaround to the current limitation of Bases tables that cannot be searched or filtered without adding permanent filters. This is directly related to this FR.
I discovered the metabind plugin watching this YT video, and tried to combine it with code
filters in Base, and it seems to be working well. If anyone is interested, I thought I would share it, and maybe someone could even improve it.
I am just coming back to Obsidian after a long time so I am just (re)discovering the plugins, and I have not tested it extensively yet but for what I could skim of Metabind documentation, it could open the door to dropdown filters as well.
Here is how to reproduce my little test:
- Install and enable metabind
- Create a note in a folder containing others
- Paste the following snippet in the note’s body to get
- A Base table list of all notes in the current note’s folder
- A search box which content syncs with the value of our
searchBox
property- When the search box is empty, all files are listed in the Base table
- the table is filtered by file names as you start typing in the search box
---
searchBox: ""
---
`INPUT[text:searchBox]`
```base
views:
- type: table
name: Table
filters:
and:
- file.folder == this.file.folder
- or:
- this.searchBox == ""
- file.name.contains(this.searchBox)
sort:
- property: file.name
direction: ASC
```