Last active
          September 10, 2025 16:35 
        
      - 
      
 - 
        
Save davidnunez/8bbe746dd42d7306fef7c96f81edd86f to your computer and use it in GitHub Desktop.  
    Replicating dataview file.day using Bases - On this day for Obsidian
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | filters: | |
| and: | |
| - '!file.path.contains("Templates")' | |
| - '!file.folder.startsWith("x/Visuals")' | |
| formulas: | |
| this_ctime: this.file.ctime | |
| file_ctime: file.ctime | |
| this_date_string: this.file.name.replace(/^(?:.*?(\b\d{4}-\d{2}-\d{2}\b).*|.*)$/, "$1") | |
| file_date_string: file.name.replace(/^(?:.*?(\b\d{4}-\d{2}-\d{2}\b).*|.*)$/, "$1") | |
| this_date: if(formula.this_date_string, date(formula.this_date_string), if(this.created, date(this.created),date(this.file.ctime))) | |
| file_date: if(formula.file_date_string, date(formula.file_date_string), if(created, date(created),date(file.ctime))) | |
| file_explicit_date: formula.file_date_string + " " + created | |
| file_date_year: formula.file_date.year | |
| on_this_day_now: (now().month == date(formula.file_date).month) && (now().day == date(formula.file_date).day) | |
| on_this_day_file_date: (formula.file_date.month == formula.this_date.month) && (formula.file_date.day == formula.this_date.day) | |
| rating_stars: [icon("star"), icon("star"), icon("star"), icon("star"), icon("star")].filter(index < rating) | |
| properties: | |
| formula.file_date_year: | |
| displayName: Year | |
| views: | |
| - type: table | |
| name: On This Day | |
| filters: | |
| and: | |
| - formula.on_this_day_file_date == true | |
| order: | |
| - formula.file_date_year | |
| - collection | |
| - file.name | |
| - file.mtime | |
| - status | |
| sort: | |
| - property: formula.on_this_day_file_date | |
| direction: DESC | |
| - property: formula.file_date | |
| direction: DESC | |
| - type: table | |
| name: Files (Last Week) | |
| filters: | |
| and: | |
| - formula.file_date >= today() - "7d" | |
| order: | |
| - formula.file_date | |
| - status | |
| - file.folder | |
| - file.name | |
| - file.size | |
| sort: | |
| - property: formula.file_date | |
| direction: DESC | |
| - property: file.size | |
| direction: ASC | |
| columnSize: | |
| formula.file_date: 287 | |
| note.created: 227 | |
| note.status: 111 | |
| - type: table | |
| name: + | |
| filters: | |
| and: | |
| - file.folder == "+" | |
| order: | |
| - status | |
| - file.name | |
| - file.size | |
| sort: | |
| - property: file.size | |
| direction: ASC | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment