すべてはここから始まる。
history
ノート履歴を表示するBases。 現時点では次のようになってます。
一行日記がつきました。
Calloutに新規作成ボタンを付けました。
これで多機能ダッシュボードになります。
history.md
下記コードを貼り付けてください。
--- search: --- >[!info]- ![[banner.jpg]] >[📒️](obsidian://new) [📅](obsidian://daily) [🗂️️](shareddocuments://) >```dataview >task where !completed group by file.link >``` ```base filters: and: - if(this.search, (file.name+note.author+note.description).contains(this.search), true) formulas: progress: if(file.size>5000,"🟦️🟦️🟦️🟦️🟦️","🟩️".repeat((file.size/1000).ceil())) image: if(note.image, note.image, if(file.ext=="md", file.embeds[0], file.file)) object: file.isLink() views: - type: cards name: Inbox filters: and: - file.folder == "Inbox" order: - file.name - file.mtime - formula.progress sort: - property: file.mtime direction: DESC cardSize: 230 - type: table name: journals filters: and: - file.folder == "journals" - file.name != file.folder order: - file.name - description sort: - property: file.name direction: DESC columnSize: file.name: 110 - type: cards name: Clippings filters: and: - file.folder == "Clippings" order: - file.name - source sort: - property: file.mtime direction: DESC image: note.image imageAspectRatio: 0.45 - type: cards name: assets filters: and: - file.folder == "assets" order: [] sort: - property: file.mtime direction: DESC image: file.file imageAspectRatio: 0.65 - type: cards name: All order: - file.name - file.mtime sort: - property: file.mtime direction: DESC image: formula.image imageAspectRatio: 0.5 ```
フォルダ名が Inbox, journals, Clippings, assets である前提です。 それぞれ、ご自分のフォルダ構成に合わせて書き換えてください。
現在の課題
検索に使えるキーワードが1つだけなので、 containsAll()でAND検索に対応しようとしたら、 引数にリスト形式が使えなくて困ってます。
これはどうしたらいいのでしょう?
まとめ
たぶん、この記事をアップしたあと 変な改造を思いつくはず。 いつもそんな感じ。