ã¯ããã«
ä»åã¯å®å šã«è¶£å³åã§ããObsidian çæ œãç®çã¯ãObsidian ã®ããŒã ããŒãžããã£ããäœãããšãèµ·ç¹ãšãªãããŒãããã£ã±ã欲ããã§ããããä»ãŸã§ã Home ãšããååã®ããŒãžãäœã£ããããŠããã®ã§ãããé©åœã«äœã£ãŠã䜿ãããã®ã«ã¯ãªããŸãããä»åã¯æ¬è °ãå ¥ããŠèŠãç®ãæ©èœæ§ãåªããããŒã ããŒãžãäœæããŸãã
䜿çšããã®ã¯ãDashboard++ããã㯠2023 幎㮠Template ã®ã¢ã¯ãŒãã«å ¥ã£ãŠããŸãããããã£ãšæ°ã«ãªã£ãŠããŸãããäœè æ§ã®ãªã¹ã¹ã¡ã®äœ¿çšæ¹æ³ããããŠããã®ã§ãããã«åã£ãŠæ§æããŠãããŸããæèããã®ã¯ãæ¢åã®æ§é ã«ã¯åœ±é¿ãåãŒããªãããã«ããããšããããŸã§ããŒã ããŒãžã¥ãããªã®ã§ãç¬ç«æ§ã¯ä¿ã¡ãŸããå®æåã¯ãã¡ãã§ãã
Dashboard++ ã® CSS ã¹ãããããè¿œå
Dashboard++ ã¯ãã ã® CSS ã¹ãããããªã®ã§ãå°å
¥ã¯æ»
è¶èŠè¶ç°¡åã§ããdashboard.css ãããŠã³ããŒãã㊠CSS ã¹ããããã®ãã©ã«ãã«è¿œå ãæå¹åããã ã㧠OKãããããã£ã« cssclasses: dashboard
ãšå
¥åãããšæå¹ã«ãªããŸããå¹
ãæ倧ã«ãããå Žå㯠dashboard-ReadLineLength.css ãè¿œå ããŸãããã¬ãããªã¹ãããªãŒãã£ã³ã°ãã¥ãŒã§èªåçã«ããã·ã¥ããŒãæ§ã®èŠãç®ã«å€åããŸãã
ãªãŒãã£ã³ã°ãã¥ãŒã«ãã
ãªãŒãã£ã³ã°ãã¥ãŒã§ããèŠãç®ã¯å€åããªãã®ã§ãããã©ã«ãèšå®ã§ Reading view ã«ããã Force note view mode ãšãããã©ã°ã€ã³ã䜿ããšã®ããšãããã©ã«ã衚瀺㯠Live preview ãè¯ãã®ã§ãã©ã°ã€ã³ãå°å ¥ããŸãã
obsidianEditingMode: source
obsidianUIMode: preview
ããããã£ã§äžèšå ¥åãããšéããã³ã« Reading view ã«ã§ããŸããç·šéã¢ãŒããæå®ã§ããŸãããã³ãŒããããã¯ãå€ããªããããªã®ã§ source ãè¯ãã§ããããããŒã ããŒãžä»¥å€ã§ã¯äœ¿çšããªãäºå®ã
Banners
ãããŒè¡šç€ºãããã©ã°ã€ã³ãããããã£ã« banner: ç»åurl or å
éšãªã³ã¯
ãå
¥åãããšãããŒè¡šç€ºã§ããŸããé¢åãªã®ã§å
šãŠããã©ã«ãèšå®ã®ãŸãŸã§ããæå®ããç»åãµã€ãºãåããªããšãã¯ãºãŒã ãããã¹ã¯ããŒã«ã§ããããã«ãªããŸãã
ã©ã³ãã ç»åãååŸãã
ãããããµãŒãã¹ãããã ããšæã£ãŠæ€çŽ¢ãããšãã¯ããããŸãããLorem Picsum ã䜿çšããŸããhttps://picsum.photos/200/300
ã¿ããã«ç»åãµã€ãºãæå®ããã ãã§ã©ã³ãã ã§ç»åãååŸã§ããŸãã
ä»ã« id æå®ãseed å€æå®ãã°ã¬ãŒã¹ã±ãŒã«ããŒãã衚瀺ãæ¡åŒµåæå®ãªã©ã®ãªãã·ã§ã³ããããŸããä»åã¯ãããŒã PC ã®è§£å床ã«åãã㊠1440Ã250 ã®ãµã€ãºã§æå®ããŸãããããã§æ¯åéããã³ã«éãç»åã衚瀺ãããããã«ãªããŸãã
ã¿ã€ãã«ãšããããã£ãéããåé¡
ãã㯠issue ã«ãæãã£ãŠãŸããã¿ãããŒãé衚瀺ã«ããã€ã³ã©ã€ã³ã¿ã€ãã«ãšããããã£ãè£ã«éããŠããŸãåé¡ãããæ§åãããããã£ããœãŒã¹è¡šç€ºã«ãããšå€§äžå€«ã§ãããããããã£è¡šç€ºã¯æ¯èŒçæ°ããã§ãããã
ã¿ã€ãã«ã¯èšå®ã§é衚瀺ã«ã§ããŸããç·šé㯠F2 ããŒã§è¡ãããã«ãå人çã«ã¯ãã£ã¡ã®æ¹ãããŠã¹æäœäžèŠã§å¥œã¿ã
ããããã£ã¯ CSS ã§å¯Ÿå¿ããŸããããreddit ã«æžããŠããã®ãçºèŠããŸãããããã« jazzãã ã®ãµã€ãã« ããããã£
ã£ãŠããæåãæ¶ãã¹ãããããçºèŠãã€ãã§ã«å ããŠãããŸãã
/* Hide properties */
body {
--metadata-display-reading: none;
}
.metadata-properties-title {
visibility: hidden;
}
ãšããããã®å¯Ÿå¿ãå®äºããŸããã
ããã« CSS ãè¿œå
CSS ã§é衚瀺ã«ããã®ããã£ãšããã§ãããå
·äœçã«ã¯ããªãã³ãšãµã€ãããŒæ¶ããªãããããã¯ããšæã£ãŠæ¢ããšããèŠã€ãããŸããHider ãã©ã°ã€ã³ãããŒã Minimal ã®äœè
æ§ã§ãããèšå®ãã CSS ã®ãªã³ãªããè¡ãã ãã®ãã©ã°ã€ã³ãªã®ã§ãstyle.css
ãã該åœç®æãæããŠããŸãã
/* Hide ribbon */
.mod-macos.is-hidden-frameless:not(.is-fullscreen):not(.is-popout-window) .workspace-tabs.mod-top-left-space .workspace-tab-header-container {
padding-left: calc(var(--frame-left-space) + var(--ribbon-width));
}
.workspace-ribbon.mod-left {
display:none;
}
.workspace-ribbon.mod-right {
visibility:hidden;
position:absolute;
}
.workspace-split.mod-right-split {
margin-right:0;
}
.workspace-split.mod-left-split {
margin-left:0;
}
/* Hide sidebar buttons */
.sidebar-toggle-button.mod-right,
.sidebar-toggle-button.mod-left {
display: none;
}
.mod-macos.is-hidden-frameless:not(.is-popout-window) .workspace .workspace-tabs.mod-top-right-space .workspace-tab-header-container {
padding-right: 4px;
}
CSS ã¹ããããã«è¿œå ããŠããããã€ãã«å®æãã
ããæããããªãã§ããããããªãã³ãæ¶ããåå³ãäœã£ãã®ã§ããã®åŸ dashboard.css
ã®å¹
ã 250pxâ300px ã«æ¡å€§ããŸããã
Dataview ã®ã€ã³ã©ã€ã³ã¯ãšãª
é ç®ãè¿œå ããŠãããŸããäœãš Dashboard++ 㯠Dataviewjs ã®ã€ã³ã©ã€ã³ã¯ãšãªå¯Ÿå¿ãšã®ããšã§ããäœãããåãããªãã®ã§ãExample ããã¯ããŸãã䜿çšããã®ã¯ 2 çš®é¡ã
1 ã€ã¯ãªã³ã¯ããã©ã«ããã¿ã°ããæããŠããã€ã³ã©ã€ã³ã¯ãšãªãdv.list(dv.pages('').sort(f=>f.file.mtime.ts,"desc").limit(4).file.link)
âãã® pages ã®åŸã«ãã©ã«ããã¿ã°ããããŠã䞊ã¹é ãå€ãããããŠã«ã¹ã¿ãã€ãºããŸãã
ãã 1 ã€ã¯éèšã§ dv.pages().length
ã§ããŒãžæ°ãã«ãŠã³ãããŸãããããå°ãã ãæ¡ä»¶å ã㊠dv.pages().where(f=>f.file.cday.ts==dv.date('today').ts).length
ã§ä»æ¥äœæãããã¡ã€ã«æ°ã«ãããšãã§ããŸãã
æ§æ
ç§ã® PC ã§ã¯ 4 åã§ããã®ã§ãPARA method ã® 4 åé¡ãåèã«çæç®ç·ãé·æç®ç·ã圹ã«ç«ã€è ã(ã¢ãŒã«ã€ãã¯èŠããªãã®ã§)stats ã® 4 åã«ããŸããã
ãªã¹ã¹ã¡ãããŠãããã©äžæ¡çš
Emoji Toolbar
çµµæåå ¥åè£å©ãã©ã°ã€ã³ãè±èªåã ãšäŸ¿å©ãããããªãããæ¥æ¬èªå ¥åã ãšå€æã§çµµæååºããã®ã§éèŠåºŠã¯äžãããèŠéãã
Customizable Page Header and Title Bar
ã¿ãããŒã«ãã¿ã³ãèšçœ®ã§ããããã©ãŠã¶ã¿ããã«æ»ããã¿ã³ãé²ããã¿ã³ãããŒã ãã¿ã³ãäœããšè¯ãã£ãŠæžããŠãããã©ãå šéšãããããŒã«èšå®ããŠããã®ã§èŠéããããããã¿ãããŒé衚瀺ã ããä»ãªã Commander ãã©ã°ã€ã³ã®æ¹ãæ§èœã¯è¯ãããã
Minimal ãã® card ãå©çšãã
ãŸã çµãããŸããããã®é ðQuartzã®OGPãå€æŽ ããŠããããããããšããããŸãããããŒã Minimal ã® cssclass ã® card ã« OGP ãåæ ããããæ ããã ãããšãDataview ã§ããã
table without id
dateformat(file.ctime,"yy幎MMæddæ¥ HHæmmå") as Date,
choice(ogp, "", "") as OGP,
"<progress value='" + file.size + "' max='20000'></progress>" + round(file.size/2) + "æå" as Count,
file.link as Note
from #note/article and -#draft
sort file.ctime desc
limit 7
ããã§ãããŒãå®ã¯ããã°ã¬ã¹ããŒã¯ Dataviewã䜿ã蟌ã ã§å±¥ä¿®æžã¿ãªãã§ããããæåæ°ã¯ãã¡ã€ã«ãµã€ãºã§æŠç®ãªã®ã§æ» è¶èŠè¶èª€å·®å€§ããã§ããæ¥æ¬èª 1 æåã 2B ãªã®ã§ããããŸã§ç®å®ã§ãæ ãéèŠã§ãããŸã ããã©ã«ã衚瀺ã®ãã®ãå€ãã§ãããä»åŸãè¿œå ããŠãããããšããã
image-grids ã§ãã¿ã³ãäœã
Minimal ã«ã¯ãŸã ç§å¯å
µåšããããŸãããã®åã cssclassesãimage-gridsïŒç»åã暪䞊ã³ã«ããŸããç»åãªã³ã¯ã䞊ã¹ãŠãããŸããããããããå
¬åŒã®æã§ã¯ãªããããããªããã©ã[](URL or ãªã³ã¯ or URI)
ã§ãªãŒãã£ã³ã°ãã¥ãŒã ãã§æå¹ãªç»åãªã³ã¯ãäœããŸããã§ããžãããªãšæã£ããã§ãããã€ãäŸãã° ããã¯ç§ã®ãµã€ããžã®ãªã³ã¯ã«ãªããŸãã
ãã ãããé£ç¹ããããŸãããªã³ã¯ã®æŽæ°ã«èãããŸãããæããããŒã¯ãªã³ã¯ã®æŽæ°ã¯ \[.*!\]\(.*\)
ã§ãããããŠãã®ã§ãéãããã§æžããšæŽæ°æã«å£ããŸããå
éšãªã³ã¯ã«ã¯åããªãã§ããããDataview ã§äœãã®ã¯ããã§ãããããŒãåã«ã¹ããŒã¹ãå
¥ããšæå¹ã«ãªããªãã®ã§ããã¯ãå
éšãªã³ã¯ã«ã¯åããªããã§ãã
image-grids ã§ç»åã暪䞊ã³ã«ãªãã®ã§ã©ãã©ã䞊ã¹ãŸã ãç»åã®ååŸãé¢åãªã®ã§ favicon ãååŸããããã«ããŸãããã
favicon ç»åã䜿ã Templater ã¹ã¯ãªãã
URL ãã³ããŒã㊠[)](tp.system.clipboard())
ãšãã Templater ã¹ã¯ãªãã㧠favicon ã® URL ã䜿ã£ãç»åãªã³ã¯ã貌ãä»ããŸããã³ãŒãã®å²ãã¯èšäºå
ã§ã®èª€åäœé²æ¢ã«çç¥ãã©ãã§ãããã§ããããã³ãã¬ãŒãã®ãã¬ãã£ãã¯ã¹ãð€(ãŠãã·ã) ã«ãå§ããŸããã
Meta Bind
ãããŸã§æ¥ããšæ¥µããããªã£ãŠããŸãããã³ãã³ããè¿œå ãããã¿ã³ãè¿œå ããŸããèããã®ã¯å çšã®ç»åãªã³ã¯ã« Advanced URI ã䜿çšããŠã³ãã³ãå®è¡ããããButton ãã©ã°ã€ã³ã§ãããButton ãã©ã°ã€ã³ã®ããŒãžã«è¡ããšïœ¢ãŸã ãã䜿ã£ãŠãã®ïŒwwwãšç œãæå¥ãæžããŠãããŸãããŸããŸãš Meta Bind ãžèªå°ãããŸãã
Meta Bind ãšã¯
Button ã®åŸç¶ãã©ã°ã€ã³ããããèªãã§ã¿ããšå€çš®å€æ§ã®å ¥åãããã¯ãšåºåãããã¯ãäœããããŸããè²ããªæ©èœãæããããã¿ã³ãäœãããšã®ããšãããã³ããã¿ãŒãšçŽã¥ããããšã§ä¿åãããé£åããããããããšãã§ããããã ãããã³ããã¿ãŒé£åã®ãã¿ã³ã¯äœããªããã§ããããæ®å¿µã
Dataviewjs ã§ã³ãŒããããã¯ãäœã
倩æ ãããŸããã倩æïŒDataviewjs 㧠Meta Binds ã®ã³ãŒããããã¯ãæžãã°è¯ãããããšãã話ã®ãããããã³ããã¿ãŒã® search ã®å€ãåç §ãã Another Quick Switcher ã® Recent Search ãã¿ã³ãäœããŸãã
const str = dv.current().file.frontmatter.search;
dv.paragraph('```meta-bind-button' + `
label: Search
icon: ""
hidden: true
class: ""
tooltip: ""
id: rsearch
style: default
actions:
- type: command
command: obsidian-another-quick-switcher:search-command_recent-search
- type: input
str: "${str}"
`+'```')
Dataview ããèªã¿åãã®ã§ãrefresh ã® interval ãçãããå¿ èŠããããŸããèšå®ã§ 100ms ã«å€æŽããŸããé£åããã€ã³ããããš Landmark Search ãäœæããŸããã
å®æïŒïŒ
ãããã«
ãããã ã£ãã§ããããããŽãªãŽãªã®ããŒã ããŒãžãå®æããŸãããããã®ããŒãžã®ããã ãã« HomepageãBannerãForce note view modeãMeta Bind ã® 4 ã€ãæå ¥ãããšãããŽãªã©ã£ã·ããä»ã«ã¯å šã圱é¿ããŠããªãã®ã§ç¬ç«ããæ©èœãšãªããŸãããããã䜿ãããã ããçæ œããŒãžãšããŠãæèœã§ãã