-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cb76a0c
Showing
5,145 changed files
with
1,797,372 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
# Daily Prompt Plugin | ||
|
||
This Obsidian plugin allows you to set up daily prompts and automatically fill them into your daily notes. | ||
|
||
## Demo | ||
![A demo of the plugin working](demo.gif) | ||
|
||
|
||
## Features | ||
|
||
- Define a set of prompts for each day. | ||
- Automatically fill prompts into your daily notes. | ||
- Creates a daily note if it doesn't already exist. | ||
- Customize prompt section heading and line prefix. | ||
|
||
## Usage | ||
|
||
### Setting up Prompts | ||
|
||
1. Open the plugin settings by navigating to Settings > Daily Prompt. | ||
2. Under "Prompts", you can add, edit, and remove prompts. | ||
3. Define the prompt section heading and line prefix under "General settings". | ||
|
||
### Using Prompts | ||
|
||
1. Use the command palette (`Ctrl/Cmd + P`) and type "Open prompt" to open the prompt dialog. | ||
2. Answer the prompts provided. | ||
3. Click "Accept" to fill the prompts into your daily note. | ||
|
||
## Settings | ||
|
||
### Prompt section heading | ||
|
||
Define the heading to use for the prompts. Note: Must be unique for every daily note. | ||
|
||
### Line prefix | ||
|
||
Prefix for each new line, include the trailing spaces. Examples: `- ` for lists or `- [ ] ` for tasks. | ||
|
||
## Support | ||
|
||
For questions, issues, or feature requests, please visit the [plugin's GitHub repository](https://github.com/Erl-koenig/obsidian-dailyPrompt). | ||
|
||
## Say Thanks 🙏 | ||
|
||
This plugin is developed by [Erl-koenig](https://github.com/Erl-koenig). | ||
|
||
If you find this plugin helpful, consider supporting its development | ||
|
||
[<img src="https://cdn.buymeacoffee.com/buttons/v2/default-violet.png" alt="BuyMeACoffee" width="100">](https://www.buymeacoffee.com/erlkoenig) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"questions": [ | ||
"How did you sleep?", | ||
"Daily steps" | ||
], | ||
"dailyNotesFolder": "", | ||
"promptSectionHeading": "## Prompts", | ||
"linePrefix": "", | ||
"promptText": "sdfdfkagjslhsbdilfg", | ||
"promptTitle": "Daily Prompt Plugin", | ||
"reviewSectionHeading": "## Balls" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import esbuild from "esbuild"; | ||
import process from "process"; | ||
import builtins from "builtin-modules"; | ||
|
||
const banner = `/* | ||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD | ||
if you want to view the source, please visit the github repository of this plugin | ||
*/ | ||
`; | ||
|
||
const prod = process.argv[2] === "production"; | ||
|
||
const context = await esbuild.context({ | ||
banner: { | ||
js: banner, | ||
}, | ||
entryPoints: ["src/main.ts"], | ||
bundle: true, | ||
external: [ | ||
"obsidian", | ||
"electron", | ||
"@codemirror/autocomplete", | ||
"@codemirror/collab", | ||
"@codemirror/commands", | ||
"@codemirror/language", | ||
"@codemirror/lint", | ||
"@codemirror/search", | ||
"@codemirror/state", | ||
"@codemirror/view", | ||
"@lezer/common", | ||
"@lezer/highlight", | ||
"@lezer/lr", | ||
...builtins, | ||
], | ||
format: "cjs", | ||
target: "es2018", | ||
logLevel: "info", | ||
sourcemap: prod ? false : "inline", | ||
treeShaking: true, | ||
outfile: "main.js", | ||
}); | ||
|
||
if (prod) { | ||
await context.rebuild(); | ||
process.exit(0); | ||
} else { | ||
await context.watch(); | ||
} |
Oops, something went wrong.