Skip to content

Instantly share code, notes, and snippets.

@lukebarton
Last active November 9, 2022 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukebarton/6bce00845b45c0278102bf2452e8bcee to your computer and use it in GitHub Desktop.
Save lukebarton/6bce00845b45c0278102bf2452e8bcee to your computer and use it in GitHub Desktop.
Quick snip of some templates for Palaeocitharae on the Obsidian Discord
<%*
if ((new RegExp(/^\d{4}$/)).test(tp.file.title)) {
await tp.file.move(tp.date.now("[LifeOS]/YYYY/YYYY", 0, tp.file.title, "YYYY"));
tR += await tp.file.include("[[Year Note Template]]");
}
if ((new RegExp(/^\d{4}-Q\d$/)).test(tp.file.title)) {
await tp.file.move(tp.date.now("[LifeOS]/YYYY/YYYY-[Q]Q", 0, tp.file.title, "YYYY-[Q]Q"));
tR += await tp.file.include("[[Quarter Note Template]]");
}
if ((new RegExp(/^\d{4}-W\d{2}$/)).test(tp.file.title)) {
await tp.file.move(tp.date.now("[LifeOS]/YYYY/[Weeks]/gggg-[W]ww", 0, tp.file.title, "gggg-[W]w"));
tR += await tp.file.include("[[Weekly Note Template]]");
}
if ((new RegExp(/^\d{4}-\d{2}-\d{2}$/)).test(tp.file.title)) {
await tp.file.move(tp.date.now("[LifeOS]/YYYY/YYYY-MM/YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD"));
tR += await tp.file.include("[[Daily Note Template]]");
}
if (tp.file.title.startsWith("πŸ“‹ ")) {
tR += await tp.file.include("[[Initiative Note Template]]");
}
%>

<%* const link = (path, alias) => [[${path}${alias ? "|" + alias : ""}]];-%> #🌞

<% tp.date.now("ddd MMM D", 0, tp.file.title, "YYYY-MM-DD") %> | <% link(tp.date.now("GGGG-[W]WW", 0, tp.file.title, "YYYY-MM-DD")) %> | <% link(tp.date.now("YYYY-[Q]Q", 0, tp.file.title, "YYYY-MM-DD")) %> | <% link(tp.date.now("YYYY", 0, tp.file.title, "YYYY-MM-DD")) %>

<% link(tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD"), "<< Prev") %> | <% link(tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD"), "Next >>") %>


<% moment("2022-11-26").diff(moment(tp.file.title), "days") %> days until our house party (and anniversary)


Thoughts πŸ“


β˜€οΈ Good morning β˜€οΈ %% fold %%

πŸ“– Morning Pages πŸ“–

  • Dream::
  • Morning feeling::
  • Grateful for::

[!tip] Yesterday, I wanted to improve: =[[{{yesterday}}]].want-to-improve

  • Be better today::

🧘 Visualization 🧘

Take a minute to visualize the day ahead…

  • Visualised perfect day::

πŸƒβ€β™‚οΈ Doing stuff πŸƒβ€β™‚οΈ %% fold %%

Get Started πŸ“‹

  • Answer Morning Questions
  • Check calendars
  • Prepare for meetings

Tasks I could do βœ…

((due before <%tp.date.now("YYYY-MM-DD", 1, tp.file.title)%>) OR (scheduled before <%tp.date.now("YYYY-MM-DD", 1, tp.file.title)%>))
not done
short mode

Shutdown

  • Put Watch on charge ⌚️⚑️
  • Put Phone on charge πŸ“² ⚑️
  • Inbox Zero πŸ“¨
  • Set up tomorrow's routine in Calendar πŸ”‚ πŸŒ…
  • Tidy Desk 🧹 πŸ‘¨β€πŸ’»
  • Put Watch on ⌚️ 🫱
  • Stand up
  • Push Chair Under Desk
  • Take out trash πŸ—‘

πŸŒ› End of Day Wind-Down πŸŒ› %% fold %%

Things done πŸ‘¨β€πŸ’»πŸ‹οΈβ€β™€οΈ

Learnings / decisions πŸ’‘

Habits

  • Anger-free:: false
  • Cold shower:: false
  • Complete Greens:: 0

Reflection πŸ€”

  • Storyworthy::

  • Positive::

  • Negative::

  • Want to Improve::

  • Keep doing::

  • Diet Rating::

  • Day Rating::


πŸ‘¨πŸΌβ€πŸ’» Today's Activity πŸ‘¨πŸΌβ€πŸ’» %% fold %%

Tasks Completed Today

done on <%tp.date.now("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD")%>
short mode

Created today


List FROM "" WHERE file.cday = date("<%tp.date.now("YYYY-MM-DD", 0, tp.file.name)%>") SORT file.ctime asc

Modified today


List FROM "" WHERE file.mday = date("<%tp.date.now("YYYY-MM-DD", 0, tp.file.name)%>") SORT file.mtime asc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment