Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtmrz committed Sep 21, 2023
1 parent 8df9e29 commit 62c4660
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 73 deletions.
80 changes: 39 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The plugin for picking and putting hidden files.

You can dump your files which are stored in the specified directory, or put dumped files into any path under your vault.


Note: Since v0.0.7, We can use properties to control this plug-in!
![screenshot2](https://github.com/vrtmrz/obsidian-screwdriver/assets/45774780/7c9b2a08-e3d2-498a-8678-60e009fcb6e1)


### How to use

#### Install
Expand All @@ -16,60 +21,53 @@ Install this plugin via [BRAT](https://github.com/TfTHacker/obsidian42-brat).

As like this:

```md
---
# --- Select a directory to dump. ---
target: .obsidian/snippets

# --- Prefixes to ignore. ---
```yaml
targets:
- .obsidian/plugins/tagfolder
urls: []
ignores:
- /node_modules
- /.git

# --- Regular expressions to filter files
- /node_modules
- /.git
filters:
# - \.js
---

- main\.js$
- manifest\.json$
- styles\.css$
comment: "'Add target directory' to add targets"
tags: []
```
Don't worry. You can make this file by `Ctrl+P` -> `Screwdriver: Create dump template` in an empty file.
All you have to do is pick the target directory.
All you have to do is pick the target directory by `Ctrl+P` -> `Screwdriver: Add target directory`.

#### Dump

`Ctrl+P` -> `Dump files` to dump files to note.

```md
```yaml
---
# --- Select a directory to dump. ---
target: .obsidian/snippets

# --- Or, specify URLs to fetch.
urls:
# - https://gist.githubusercontent.com/vrtmrz/8b638347f56d1dad25414953bb95d7b6/raw/77f2965f79e9390b88dd17d5f23475b1f8b8085a/ninja-cursor-snippets.css

# --- Prefixes to ignore. ---
targets:
- .obsidian/plugins/tagfolder
urls: []
ignores:
- /node_modules
- /.git

# --- Regular expressions to filter files
- /node_modules
- /.git
filters:
# - \.js
- main\.js$
- manifest\.json$
- styles\.css$
comment: "'Add target directory' to add targets"
tags: []
---

# .obsidian/snippets/fonts_jp.css
- Created :2021/4/01 04:11:10
- Modified:2022/1/10 06:34:03

```screwdriver:.obsidian/snippets/fonts_jp.css
:root {
--default-font: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
--editor-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
--override-font: "HackGen35";

```
```md
# .obsidian/plugins/tagfolder/main.js
- Created :2023/7/12 9:28:27
- Modified:2023/8/25 17:52:29
```screwdriver:.obsidian/plugins/tagfolder/main.js:plain
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
```

Note: Dumped files can be modifiable by editing the doc.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-screwdriver",
"name": "Screwdriver",
"version": "0.0.6",
"version": "0.0.7",
"minAppVersion": "0.12.0",
"description": "Utility to put any files in and out under your vault.",
"author": "vorotamoroz",
Expand Down
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-screwdriver",
"version": "0.0.6",
"version": "0.0.7",
"description": "Utility to put any files in and out under your vault.",
"main": "main.js",
"scripts": {
Expand All @@ -17,7 +17,7 @@
"@typescript-eslint/parser": "^5.2.0",
"builtin-modules": "^3.2.0",
"esbuild": "0.13.12",
"obsidian": "^0.16.3",
"obsidian": "^1.4.11",
"tslib": "2.3.1",
"typescript": "4.4.4"
}
Expand Down

0 comments on commit 62c4660

Please sign in to comment.