Skip to content

Instantly share code, notes, and snippets.

@dom8509
dom8509 / Obsidian Dataview List Siblings and Childs.md
Created October 13, 2022 04:56
List siblings and childs of a file using Dataview. Much like namespaces in Logseq and Roam.
LIST WHERE contains(file.folder, this.file.folder) AND file.name != this.file.name
@dom8509
dom8509 / Obsidian Dataview Tasks.md
Last active September 19, 2023 19:57
List all Task in Obsidian using Dataview
// find dates based on format [[YYYY-MM-DD]]
const findDated = (task) => {
 if( !task.completed ) {
  task.link = " " + "[[" + task.path + "|*]]";  
  task.date="";
  const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/);
  if(found) task.date = moment(found[1]);
  return true;  
 }