Comments (2)
Hello, @esodesod! Thank you for such a detailed description! Easy fix 😌
Please update and re-check.
from obsidian-day-planner.
I'm no developer, but simply tested using a "dirty" replace on the emoji(s) I found in the files below, did a (re)build, and it seems to work as expected (using the very same emoji as e.g. Obsidian Tasks, also when moving tasks between days using "Week Planner").
I can create a PR if this is the correct files/modifications, or you (or any other with better coding skills than me) can review, if possible.
Again, thanks for the work on this plugin!
diff --git a/src/regexp.ts b/src/regexp.ts
index 2f6f96a..e7c8e42 100644
--- a/src/regexp.ts
+++ b/src/regexp.ts
@@ -35,4 +35,4 @@ export const keylessScheduledPropRegExp = new RegExp(
`(\\(scheduled\\s*::\\s*)${date}(\\))`,
);
-export const shortScheduledPropRegExp = new RegExp(`(⌛\\s*)${date}`);
+export const shortScheduledPropRegExp = new RegExp(`(⏳\\s*)${date}`);
diff --git a/src/ui/hooks/use-edit/tests/diff.test.ts b/src/ui/hooks/use-edit/tests/diff.test.ts
index 16377bc..91b3055 100644
--- a/src/ui/hooks/use-edit/tests/diff.test.ts
+++ b/src/ui/hooks/use-edit/tests/diff.test.ts
@@ -18,7 +18,7 @@ describe("Finding diff before writing updates to files", () => {
updated: [
expect.objectContaining({
id: baseTask.id,
- firstLineText: expect.stringContaining(`⌛ ${nextDayKey}`),
+ firstLineText: expect.stringContaining(`⏳ ${nextDayKey}`),
}),
],
}),
diff --git a/src/util/task-utils.ts b/src/util/task-utils.ts
index dce10ba..ebabe60 100644
--- a/src/util/task-utils.ts
+++ b/src/util/task-utils.ts
@@ -87,7 +87,7 @@ export function updateScheduledPropInText(text: string, dayKey: string) {
return updated;
}
- return `${text} ⌛ ${dayKey}`;
+ return `${text} ⏳ ${dayKey}`;
}
export function updateTaskText(task: Task) {
from obsidian-day-planner.
Related Issues (20)
- Plugin becomes unresponsive, probably due to ical scheduled tasks
- If the task text starts with a link, it does not show on the timeline. It also seems to be deleting any link in the task text.
- Calendar Events without a Location Error Out HOT 2
- Unblock PRs / more maintainers HOT 3
- Google Calendar Repeating/Recurring Events are Offset by a Day HOT 3
- Any link, and the text after, is stripped from the task when dragged to a new time. HOT 1
- [Feature Request] Make `listTokens` configurable
- [Feature Request] Options for controlling what happen when various interface elements are clicked on
- "Start Hour" setting should also change End Hour
- [Feature Request?] Show generated tasks in calendar views HOT 2
- Tasks not showing in Timeline on iOS / iPadOS HOT 1
- Feature Request] control the start day of the week HOT 1
- Week Planner is not allow to check the next week in Android Phone HOT 1
- Unable to select week in weekly view on mobile HOT 7
- Planner Heading Text Ignored HOT 3
- Day planner freezes after moving the task in timeline view HOT 2
- [POSSIBLE BUG] Midnight time showing up as noon
- Advanced Editing with ctrl and shift not working. HOT 6
- My Day Planner doesn't react at all to keys "Shift" either "Crl" key. HOT 1
- Uncaught Error task.text.split is not a function and freezing day planner timeline when using remote ics calendars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-day-planner.