Skip to content

Commit

Permalink
Merge pull request #6 from vburzynski/update-documentation
Browse files Browse the repository at this point in the history
Update documentation, Test Vault, and Fix to support ITS Theme
  • Loading branch information
vburzynski authored Oct 26, 2024
2 parents 9c694ef + f97ab51 commit 3741aa3
Show file tree
Hide file tree
Showing 43 changed files with 41,592 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ module.exports = {
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'release',
'revert',
'style',
'test',
'feat', // new feature
'test', // adding or correcting tests
'fix', // bug fix
'refactor', // changes that neither fixes a bug nor adds a feature
'perf', // changes that improve performance
'chore', // changes that don't modify src or test files
'style', // changes that do not affect the meaning of the code
'docs', // changes to documentation
'ci', // change to Continuous Integrations (CI) files and scripts
'build', // changes that affect the build system or external dependencies
'revert', // reverts a previous commit
'release', // version and other trivial changes preparing for a release
],
],
},
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ data.json

# Exclude macOS Finder (System Explorer) View States
.DS_Store

# Exclude some test vault files
test-vault/.obsidian/plugins/**/data.json
test-vault/.obsidian/app.json
test-vault/.obsidian/appearance.json
test-vault/.obsidian/workspace.json
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Please note, that this plugin assumes that you have either installed an Obsidian
custom task status styling (such as Things or Minimal), or that you've created and applied your own
CSS snippet to style tasks.

- [Setup AnuPpuccin Theme](./docs/Setup%20AnuPpuccin%20Theme.md)
- [Setup ITS Theme](./docs/Setup%20ITS%20Theme.md)
- [Setup Minimal Theme](./docs/Setup%20Minimal%20Theme.md)

## Why this plugin?

- keyboard driven
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions docs/Setup AnuPpuccin Theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Setup AnuPpuccin

## Setup

1. Install and activate the **AnuPpuccin** theme
2. Install the **Style Settings** Plugin
3. Open the settings for the Style Settings plugin
4. Locate the checkbox settings: `AnuPpuccin``File Editor & Markdown Elements``Checkboxes`
5. Toggle `Enable Custom Checkboxes` to active
6. Toggle `Enable Speech Bubbles` to active
7. Install the [Task Status](https://github.com/vburzynski/obsidian-task-status) plugin
8. Open the settings for the **Task Status** plugin
9. Click the **Clear List** button to clear the default configuration
10. Click the **AnuPpucin Theme** button to add the configuration

## Resources

- https://github.com/AnubisNekhet/AnuPpuccin/
13 changes: 13 additions & 0 deletions docs/Setup Border Theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Setup Border Theme

## Setup

1. Install and activate the **Border Theme**
2. Install the [Task Status](https://github.com/vburzynski/obsidian-task-status) plugin
3. Open the settings for the **Task Status** plugin
4. Click the **Clear List** button to clear the default configuration
5. Click the **Border Theme** button to add the configuration

## Resources

- https://github.com/Akifyss/obsidian-border
13 changes: 13 additions & 0 deletions docs/Setup ITS Theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Setup ITS Theme

## Setup

1. Install and activate the **ITS Theme**
2. Install the [Task Status](https://github.com/vburzynski/obsidian-task-status) plugin
3. Open the settings for the **Task Status** plugin
4. Click the **Clear List** button to clear the default configuration
5. Click the **ITS Theme with SIRvb Checkboxes** button to add the configuration

## Resources

- <https://github.com/SlRvb/Obsidian--ITS-Theme/blob/main/Guide/Alternate-Checkboxes.md>
13 changes: 13 additions & 0 deletions docs/Setup Minimal Theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Setup Minimal Theme

## Setup

1. Install and activate the **Minimal Theme**
2. Install the [Task Status](https://github.com/vburzynski/obsidian-task-status) plugin
3. Open the settings for the **Task Status** plugin
4. Click the **Clear List** button to clear the default configuration
5. Click the **Minimal Theme** button to add the configuration

## Resources

- https://github.com/kepano/obsidian-minimal
12 changes: 12 additions & 0 deletions src/modals/quick-action-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,27 @@ export default class QuickActionModal extends SuggestModal<CheckboxOption> {
textAlign: 'center',
});

// set a bunch of attributes so that the preview will be targeted by various themes
el.setAttribute('data-task', option.character);
el.classList.add('task-list-item');
if (option.character !== ' ') {
el.classList.add('is-checked');
}

// show a preview of the checkbox
const input = el.createEl('input', {
attr: {
'type': 'checkbox',
'data-task': option.character,
},
});

// set a bunch of attributes so that the preview will be targeted by various themes
input.classList.add('task-list-item');
input.checked = option.character !== ' ';
if (option.character !== ' ') {
input.classList.add('is-checked');
}

// show the name of the checkbox option
const span = el.createEl("span", { text: option.title });
Expand Down
7 changes: 7 additions & 0 deletions test-vault/.obsidian/community-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
"obsidian-task-status",
"open-vscode",
"obsidian42-brat",
"task-status",
"obsidian-style-settings"
]
30 changes: 30 additions & 0 deletions test-vault/.obsidian/core-plugins-migration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false,
"properties": false
}
30 changes: 30 additions & 0 deletions test-vault/.obsidian/core-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false,
"properties": false
}
45 changes: 45 additions & 0 deletions test-vault/.obsidian/hotkeys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"editor:cycle-list-checklist": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "B"
}
],
"task-status:change-task-status": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "L"
}
],
"editor:swap-line-down": [
{
"modifiers": [
"Alt"
],
"key": "ArrowDown"
}
],
"editor:swap-line-up": [
{
"modifiers": [
"Alt"
],
"key": "ArrowUp"
}
],
"editor:toggle-source": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "E"
}
]
}
165 changes: 165 additions & 0 deletions test-vault/.obsidian/plugins/obsidian-style-settings/main.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions test-vault/.obsidian/plugins/obsidian-style-settings/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "obsidian-style-settings",
"name": "Style Settings",
"version": "1.0.9",
"minAppVersion": "0.11.5",
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
"author": "mgmeyers",
"authorUrl": "https://github.com/mgmeyers/obsidian-style-settings",
"isDesktopOnly": false
}
Loading

0 comments on commit 3741aa3

Please sign in to comment.