フォルダごとにビューを使い分ける。
Bases
履歴管理の history に手を加えてみました。
Inboxフォルダの表示は進捗状況。 緑箱一つが500文字で、2500字を超えると青箱フルマークになります。
assetsフォルダは画像のギャラリー。
Clippingsフォルダはサムネ付きリンクです。
フォルダに合わせてビューを変える。
searchプロパティでファイルの検索もできます。
history.md
下記コードをノートに貼り付けるだけです。
--- search: --- >[!example]- ![[banner.jpg]] >```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: cards name: assets filters: and: - file.folder == "assets" order: [] sort: - property: file.mtime direction: DESC image: file.file imageAspectRatio: 0.65 - type: cards name: Clippings filters: and: - file.folder == "Clippings" order: - file.name - source sort: - property: file.ctime direction: DESC image: note.image imageAspectRatio: 0.45 - type: cards name: All order: - file.name - file.mtime sort: - property: file.mtime direction: DESC image: formula.image imageAspectRatio: 0.5
assetsフォルダに banner.jpg を用意すると、 それがバナーになります。
bases.css
iPadは画面が狭いので、cssを当ててカードっぽくしています。
.bases-view { font-size: 18px; } .bases-cards-item { background: ivory; } .bases-cards-line { font-size: small !important; padding-top: 0; height: 1.4em; } .mod-title>.bases-cards-line { color: navy; height: 2em; white-space: pre-wrap; } .bases-cards-label { display: none; }
ラベルを非表示にしてる。
まとめ
これを雛形にして、表示したい項目を調整してください。