Markdown Link Synchronizer
linksyncer
This is a command-line utility that helps you organize your Markdown files. It tracks and updates the links in your .md notes.
Installation (with Go)
Go should be installed in the system.
go install github.com/flytaly/linksyncer@latest
Usage
Caution
Before using, back up your notes or use version control systems such as Git in case something goes wrong.
Running in manual mode
- In the root directory of your notes, run
linksyncer
. It will search for all files and nested directories with notes.
- Rename or move files and images in the nested directories.
- Press
Enter
to check for changes and then y
(or Enter
again) to automatically modify paths in the .md
files.
linksyncer
Running in watch mode
You can run linksyncer
in "watch mode" so it will automatically check for changes and update links.
However, try not to use the watch mode in folders with a huge number of files, such as your home directory.
linksyncer watch
[note](./note1.md)
![img](/path/to/image)
<img src="path/to/image" >
Flags and Commands
-l, --log string path to the log file
-p, --path string path to the watched directory (default is the working directory)
--size int maximum file size in KB (default 1024)
-v, --version version for linksyncer
Example