Skip to content

Commit

Permalink
initial commit, daily prompt plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Erl-koenig committed Apr 2, 2024
0 parents commit cb76a0c
Show file tree
Hide file tree
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.
51 changes: 51 additions & 0 deletions README.md
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)
12 changes: 12 additions & 0 deletions data.json
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"
}
Binary file added demo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions esbuild.config.mjs
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();
}

0 comments on commit cb76a0c

Please sign in to comment.