Skip to content

Commit

Permalink
Merge pull request #41 from iiz00/develop
Browse files Browse the repository at this point in the history
Date jump, Support for List Callouts, time list...
  • Loading branch information
iiz00 authored Mar 31, 2024
2 parents 671d799 + 40dfb87 commit d71c17a
Show file tree
Hide file tree
Showing 16 changed files with 1,118 additions and 380 deletions.
120 changes: 98 additions & 22 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-daily-note-outline",
"name": "Daily Note Outline",
"version": "1.4.1",
"version": "1.5.0",
"minAppVersion": "0.15.0",
"description": "Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items",
"author": "iiz",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-daily-note-outline",
"version": "1.4.1",
"version": "1.5.0",
"description": "Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items",
"main": "main.js",
"scripts": {
Expand Down
159 changes: 92 additions & 67 deletions src/constructDOM.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/createAndOpenDailyNote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from "moment";
import { TFile, WorkspaceLeaf } from 'obsidian';
import { createDailyNote, getDailyNote, createPeriodicNote, IGranularity, getDateUID, createQuarterlyNote, createYearlyNote} from "obsidian-daily-notes-interface";
import { createDailyNote, getDailyNote, createPeriodicNote, IGranularity, getDateUID, createQuarterlyNote, createYearlyNote, getDailyNoteSettings} from "obsidian-daily-notes-interface";


export async function createAndOpenDailyNote( granularity: IGranularity, date: moment, allFiles: Record<string,TFile>): Promise<void> {
Expand All @@ -23,11 +23,11 @@ export async function createAndOpenDailyNote( granularity: IGranularity, date: m

};
const dailynote = allFiles[getDateUID(date, granularity)];
//const dailynote = getDailyNote(date, allFiles);
if (!dailynote){
await createFile();
} else {
await workspace.getLeaf().openFile(dailynote);
}

}

Loading

0 comments on commit d71c17a

Please sign in to comment.