You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+20-9
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,16 @@
1
1
## Obsidian Attachment Name Formatting
2
2
3
-
This plugin will format all attachments in the format: "notename attachmentFormat indexNumber.xxx"
3
+
This plugin will format all attachments in the format: "noteName attachmentFormat indexNumber.xxx"
4
4
5
-
The attachmentFormat are image, audio, video and pdf. IndexNumber is ascending number from 1 based on the attchmentFormat.You can change the default format for different type of attachments and the connector in the setting. Basically, there are three types of format:
5
+
The attachmentFormat are image, audio, video and pdf. IndexNumber is ascending number from 1 based on the attchmentFormat.You can change the default format for different type of attachments and the connector in the setting. Basically, there are three components can be enabled or disabled in attachment name: **noteName**, **time** (format time), and **pathHash** (absolute note path hash). Therefore, there could be seven types for the attachment name format:
4. noteName attachmentFormat indexNumber time pathHash.xxx
11
+
5. attachmentFormat indexNumber time.xxx
12
+
6. attachmentFormat indexNumber pathHash.xxx
13
+
7. attachmentFormat indexNumber time pathHash.xxx
10
14
11
15
The space in between can be set by your choice, even use nothing in between.
12
16
@@ -24,11 +28,11 @@ When using "Copy" mode, it will take a bit longer time than usual renaming time,
24
28
25
29
#### Core Function
26
30
27
-
- Format attachments in active file, such as "notename image 1.png". It can also add modify time after index, such as "notename image 1 20220101000000.png", defualt setting is not adding time. You can also exclude the notename in the attachment notename, but the time suffix will be added automatically.
31
+
- Format attachments in active file, such as "noteName image 1.png". Format time and absolute note path hash can add into attachment name, such as "noteName image 1 20220101000000.png", "noteName image 1 6666cd76.png". Defualt setting is not adding time and path hash. You can also exclude the noteName in the attachment noteName, but the time suffix will be added automatically.
28
32
- Format attachmnets in selected folder
29
33
- Format attachments with customize subfolder for each attachment type
30
34
- Attachment name can be customized for each type of attachment, you can use any character that allowed in a note name
31
-
- Connector (the character between notename, attachmentFormat, indexNumberand time) can be customized, you can use any character that allowed in a note name. You can also customized different connectors seperately or even don't use connector.
35
+
- Connector (the character between noteName, attachmentFormat, indexNumber, time and pathHash) can be customized, you can use any character that allowed in a note name. You can also customized different connectors seperately or even don't use connector.
32
36
- Add new attachment -> will rename the attachment based on type and index
33
37
- Change order -> will rename attachments with new order
34
38
- Delete attachment -> will rename attachments with new order
@@ -54,9 +58,8 @@ When using "Copy" mode, it will take a bit longer time than usual renaming time,
54
58
55
59
### Roadmap
56
60
57
-
- When deleting attachment in a file, rename it with "notename attachmentFormat unuse 1.xxx".
61
+
- When deleting attachment in a file, rename it with "noteName attachmentFormat unuse 1.xxx".
58
62
- When deleting an attachment that no other file using this attachment, delete it from vault. (Could be disable)
59
-
- Support the situation that attachments have same name but under different path.
60
63
61
64
### Development Setup
62
65
@@ -86,6 +89,14 @@ npm run version --new=<new_version>
86
89
git push origin --tag
87
90
```
88
91
92
+
## Thanks
93
+
94
+
I develop this plugin as a hobby, spending my free time doing this. If you find it valuable, then please say THANK YOU or buy me a coffee...
0 commit comments