Skip to content

Commit

Permalink
Partial live preview support (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jffaust authored Mar 19, 2022
1 parent 6965d7c commit 0c540b9
Show file tree
Hide file tree
Showing 12 changed files with 741 additions and 224 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ This plugin for [Obsidian](https://obsidian.md/) adds support for environment va

## Documentation

Check out the full documentation [here](docs.md).
- Check out the [full documentation](docs/documentation.md)
- Check out the [changelog](docs/CHANGELOG.md)

## Installation

Expand All @@ -21,4 +22,4 @@ This plugin is not yet part of the community plugin list so it cannot be install

If you find this plugin useful, please consider supporting my work:

[<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="BuyMeACoffee" width="150">](https://www.buymeacoffee.com/jffaust)
[<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="BuyMeACoffee" width="150">](https://www.buymeacoffee.com/jffaust)
28 changes: 28 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2022-03-19
### Added
- Partial support for LivePreview mode
- Debug mode that will highlight LivePreview lines when enabled
- Command to open the plugin's settings. Open the command palette and search for `Manage variables`


## [0.1.0] - 2022-03-14
### Added
- First implementation with support for Reading mode only
- Variables can be added, edited and deleted
- Variables can be configured to be vault-specific via the vault path property
- Toggle between showing all variables and only the ones that apply
- Filter shown variables
- Copy current vault path button
- Button to link to the documentation



[0.2.0]: https://github.com/markdown-it/markdown-it/compare/0.2.0...0.1.0
[0.1.0]: https://github.com/markdown-it/markdown-it/releases/tag/0.1.0
File renamed without changes.
43 changes: 18 additions & 25 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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
*/
Expand All @@ -15,32 +15,25 @@ esbuild.build({
banner: {
js: banner,
},
entryPoints: ['main.ts'],
entryPoints: ['src/main.ts'],
bundle: true,
external: [
'obsidian',
'electron',
'@codemirror/autocomplete',
'@codemirror/closebrackets',
'@codemirror/collab',
'@codemirror/commands',
'@codemirror/comment',
'@codemirror/fold',
'@codemirror/gutter',
'@codemirror/highlight',
'@codemirror/history',
'@codemirror/language',
'@codemirror/lint',
'@codemirror/matchbrackets',
'@codemirror/panel',
'@codemirror/rangeset',
'@codemirror/rectangular-selection',
'@codemirror/search',
'@codemirror/state',
'@codemirror/stream-parser',
'@codemirror/text',
'@codemirror/tooltip',
'@codemirror/view',
"obsidian",
"electron",
"codemirror",
"@codemirror/closebrackets",
"@codemirror/commands",
"@codemirror/fold",
"@codemirror/gutter",
"@codemirror/history",
"@codemirror/language",
"@codemirror/rangeset",
"@codemirror/rectangular-selection",
"@codemirror/search",
"@codemirror/state",
"@codemirror/stream-parser",
"@codemirror/text",
"@codemirror/view",
...builtins],
format: 'cjs',
watch: !prod,
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "obsidian-variables",
"name": "Variables",
"version": "0.1.1",
"minAppVersion": "0.12.0",
"version": "0.2.0",
"minAppVersion": "0.13.4",
"description": "Plugin that adds support for variables in Obsidian.md",
"author": "Jean-Frédéric Faust",
"authorUrl": "https://github.com/jffaust",
Expand Down
Loading

0 comments on commit 0c540b9

Please sign in to comment.