Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n3xed/logseq2obsdn
Convert logseq to obsidian
https://github.com/n3xed/logseq2obsdn
obsidian-md
Last synced: 18 days ago
JSON representation
Convert logseq to obsidian
- Host: GitHub
- URL: https://github.com/n3xed/logseq2obsdn
- Owner: N3xed
- License: mit
- Created: 2022-09-23T11:48:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-29T19:56:30.000Z (about 2 years ago)
- Last Synced: 2024-10-25T20:12:18.827Z (2 months ago)
- Topics: obsidian-md
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Convert logseq files to obsidian
**Use at your own risk!**1. Install the [Rust programming language](https://www.rust-lang.org/tools/install).
2. Run
```bash
cargo run -- "/pages" "" --extract-ids
```
- This will extract all IDs and create a `ids.json` file in the current directory.
3. Run
```bash
cargo run -- "/pages/" ""
```
for each `` in the `pages` dir.## Notes
The script gets the name of the converted file from the `title:: ` property at the beginning of the logseq file (this property only exists if the file is in a namespace), or from the file name otherwise. It copies all assets of the logseq file into the `assets` subdirectory of the destination folder. **The assets folder must be created manually, otherwise the script will fail to copy the assets.**
A block that is tagged with `#.self-border` (see [logtools](https://github.com/cannibalox/logtools)) will be converted to a callout (using the obsidian Admonition extension) in the form:
````
```ad-def
****
```````