1
Fork 0
mirror of https://github.com/Steffo99/obsidian-file-index.git synced 2024-10-16 05:07:26 +00:00
obsidian-file-index/README.md

48 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2024-05-29 02:52:02 +00:00
<div align="center">
2023-10-28 17:51:31 +00:00
# Obsidian File Index
2023-10-28 16:05:49 +00:00
2024-05-29 02:52:02 +00:00
Obsidian plugin to create a metadata file about the files present in the Vault
</div>
2023-10-29 00:55:41 +00:00
## About
2023-11-17 13:46:34 +00:00
This [Obsidian] plugin creates and keeps updated a `file-index.json` file at the root of your Vault, containing a list of all file paths and a map of all basenames to file paths.
2023-10-28 16:05:49 +00:00
2024-07-02 17:08:34 +00:00
Useful to externally render Wikilinks with no knowledge of the file structure of the vault, for example in [Glassflame].
2023-10-29 00:55:41 +00:00
2023-10-28 16:05:49 +00:00
```json
{
2023-10-28 17:51:31 +00:00
"paths": [
"README.md",
"Garas/moto.md",
"Garas/auto.md"
],
"basenames": {
"moto": "Garas/moto.md",
"auto": "Garas/auto.md"
}
2023-10-28 16:05:49 +00:00
}
```
2023-10-29 00:55:41 +00:00
[Obsidian]: https://obsidian.md/
2024-07-02 17:08:34 +00:00
[Glassflame]: https://glassflame.github.io/
2023-10-29 00:55:41 +00:00
## Ignore
2023-11-17 13:46:34 +00:00
Files can be excluded by the index by adding a `file-index-ignore.json` file at the root of your Vault, containing a JSON array of regular expressions that will prevent matching files from being added to the list:
2023-10-29 00:55:41 +00:00
```json
[
"^Garas",
".*HelloWorld.*"
]
```
## Known issues
2023-10-28 16:05:49 +00:00
2023-11-19 03:51:18 +00:00
> [!WARNING]
2023-10-28 17:51:31 +00:00
>
> May have some trouble distinguishing between files with the same basename, but in different folders.