linksyncer

command module
v0.0.0-...-d07a634 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 2 Imported by: 0

README

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
  1. In the root directory of your notes, run linksyncer. It will search for all files and nested directories with notes.
  2. Rename or move files and images in the nested directories.
  3. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL