Skip to content

Commit

Permalink
1.4.0 (#33)
Browse files Browse the repository at this point in the history
- The Settings menu has been completely redesigned, and should now be more mobile-friendly.
- The position of the cursor, or selection of text, after applying a pattern is now able to be customized from the Settings menu.
- Links in the Readme have been updated.
- Patterns, Rules, and Commands now ask for confirmation before being deleted.
  • Loading branch information
jglev authored Dec 31, 2021
1 parent 69cf5ee commit 68c505c
Show file tree
Hide file tree
Showing 26 changed files with 2,449 additions and 6,822 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# top-most EditorConfig file
root = true

[*]
charset = utf-8
insert_final_newline = true
indent_style = tab
indent_size = 4
tab_width = 4
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
main.js
npm node_modules
build
27 changes: 27 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none"
}
],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off"
}
}
48 changes: 0 additions & 48 deletions .eslintrc.js

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

90 changes: 0 additions & 90 deletions .github/workflows/release.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/verify.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This plugin allows creating collections of find-and-replace "rules," and applyin

**Supports creating search and replace patterns of natural language dates, including ranges of dates.**

> Please submit bugs here: https://github.com/publicus/obsidian-apply-patterns-plugin
> Please submit bugs here: https://github.com/jglev/obsidian-apply-patterns-plugin
>
> Please submit ideas here: https://github.com/publicus/obsidian-apply-patterns-plugin/discussions/categories/ideas
> Please submit ideas here: https://github.com/jglev/obsidian-apply-patterns-plugin/discussions/categories/ideas
>
> Please ask for help here: https://github.com/publicus/obsidian-apply-patterns-plugin/discussions/categories/q-a
> Please ask for help here: https://github.com/jglev/obsidian-apply-patterns-plugin/discussions/categories/q-a
---

Expand All @@ -19,14 +19,14 @@ This plugin allows creating collections of find-and-replace "rules," and applyin
<li><a href="#usage">Usage</a></li>
</ul>

For changes in each release, please check the releases page: https://github.com/publicus/obsidian-apply-patterns-plugin/releases
For changes in each release, please check the releases page: https://github.com/jglev/obsidian-apply-patterns-plugin/releases

---

## Screenshots

- *The theme is [Solarized Light](https://github.com/Slowbad/obsidian-solarized).*
- *The theme has been enhanced for task management using [this CSS snippet](https://gist.github.com/publicus/30f289deb911cc8f8645c946e42f13a6). See [here](https://help.obsidian.md/Advanced+topics/Customizing+CSS) for instructions on incorporating CSS snippets in Obsidian.*
- *The theme has been enhanced for task management using [this CSS snippet](https://gist.github.com/jglev/30f289deb911cc8f8645c946e42f13a6). See [here](https://help.obsidian.md/Advanced+topics/Customizing+CSS) for instructions on incorporating CSS snippets in Obsidian.*

![Example Usage for Task management](docs/img/example-task-management.gif)

Expand Down
28 changes: 28 additions & 0 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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');

esbuild.build({
banner: {
js: banner,
},
entryPoints: ['src/main.ts'],
bundle: true,
external: ['obsidian', 'electron', ...builtins],
format: 'cjs',
watch: !prod,
target: 'es2016',
logLevel: "info",
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: 'main.js',
}).catch(() => process.exit(1));
8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "obsidian-apply-patterns",
"name": "Apply Patterns",
"version": "1.3.1",
"minAppVersion": "0.12.0",
"version": "1.4.0",
"minAppVersion": "0.13.9",
"description": "Apply custom patterns of find-and-replace in succession to text.",
"author": "Jacob Levernier",
"authorUrl": "https://github.com/publicus",
Expand Down
Loading

0 comments on commit 68c505c

Please sign in to comment.