importnotes

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 24 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(ctx context.Context, db bun.IDB, store silo.Store, input Input) *run

Process imports markdown files as notes and their directories as folders, all or nothing: a folder name already taken stops it. Titles, #tags and [[links]] come from the text, as for any note; the images a note cites by a relative path or by ![[name]] become files of the account, exportnotes.FilesDir no folder; a [label](path.md) link to a note of the import becomes a link to it.

Types

type Input

type Input struct {
	Dir      fs.FS
	ParentID string
}

Input is what to import: every directory and .md file of Dir, into the folder ParentID ("" = the root).

type Result

type Result struct {
	Folders int `json:"folders"`
	Notes   int `json:"notes"`
}

Result counts what was created.

Jump to

Keyboard shortcuts

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