Skip to content

Commit 6dd6084

Browse files
author
zhuwenq
committed
organize imports
1 parent f4a32fb commit 6dd6084

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

ExampleVault/DailyNote/2023-02-23.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ color: "#60778f"
33
---
44
The color defined in the meta data field should be valid.
55

6-
- [x] This is a task of daily note format. It has no explicit dates provided. #TODO
6+
- [ ] This is a task of daily note format. It has no explicit dates provided. #TODO
77
- [ ] However, you can also assign dates of other formats (TasksPlugin, Dataview and etc.), by doing so the assigned dates will be used for the corresponding field. 🛫 2023-02-26 📅 2023-02-26
88
- [ ] Other meta data like priority can also be assigned. ⏫ 📅 2023-02-27
99
- [ ] A new task to test the task items with dates of another year 📅 2024-02-26 ⏳ 2024-02-26 🔽

dataview-util/dataview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as P from "parsimmon";
21
import emojiRegex from "emoji-regex";
2+
import * as P from "parsimmon";
33

44
/** Get the "title" for a file, by stripping other parts of the path as well as the extension. */
55
export function getFileTitle(path: string): string {

dataview-util/markdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { normalizeHeaderForLink, getFileTitle } from './dataview'
2-
import { HeadingCache, LinkCache, ListItemCache, Pos, SectionCache } from 'obsidian'
31
import { DateTime, Duration } from "luxon";
2+
import { LinkCache, Pos, SectionCache } from 'obsidian';
3+
import { getFileTitle, normalizeHeaderForLink } from './dataview';
44
//////////
55
// LINK //
66
//////////

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utils/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { DateTime } from "luxon";
2-
import { moment } from "obsidian";
32
import { innerDateFormat, TaskRegularExpressions } from "./tasks";
43

54
export function momentToDateTime(m: moment.Moment) {

0 commit comments

Comments
 (0)