Comments (2)
Not sure about this personally. I dont find much documentation about Obsidian plugins dev.
It feels like this.settings.isDebug
for example can be accessible directly from the Plugin class. So the Plugin already has this settings. You could just send those setting in a class which is already created src/Model/Settings.js
.
If you want to simplify the parameters, you can just pass this.settings
from the main to other classes you need for treatment.
Then instead of
this.taskFinder = new TaskFinder(this.app.vault, this.settings.howToParseInternalLinks, this.settings.ignoreCompletedTasks, this.settings.ignoreOldTasks, this.settings.oldTaskInDays, this.settings.isIncludeTodos);
You can do
this.taskFinder = new TaskFinder(this.app.vault, this.settings);
And then process to get them back in the class the same way you would do with a singleton
this.howToParseInternalLinks = settings.howToParseInternalLinks;
this.ignoreCompletedTasks = settings.ignoreCompletedTasks;
from obsidian-to-ical-plugin.
Resolved in #51 and released in 1.15.0.
from obsidian-to-ical-plugin.
Related Issues (20)
- recurring export doesn't work HOT 7
- [feature] Distinguish between scheduled tasks and tasks with a deadline HOT 6
- Difficulties with deploying the plugin HOT 11
- [question] Scheduled VS Deadline in GTD workflow HOT 8
- 0 Markdown files found when Obsidian first starts
- Markdown formatting in README is borked
- Add linting at development time
- Add ability to ignore events older than certain time periods
- Ignore SyncThing sync conflict files
- Add option to parse Dataview formatted tasks HOT 4
- (Feature) Unscheduled tasks HOT 17
- (review) Architecture, roles and cleanliness HOT 1
- (idea) add description in event HOT 3
- Test test test HOT 7
- AP_G HOT 3
- Add script to make versioning easier HOT 1
- Implement rfc 5545 3.1 content lines length limit
- (FR) Make the date adjust after completion HOT 2
- (idea) support task list filtering based on tags HOT 5
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-to-ical-plugin.