#lib #tp-note #file

tpnote-lib

Minimalistic note-taking: save and edit your clipboard content as a note file

76 releases (33 breaking)

Uses new Rust 2024

new 0.43.1 May 6, 2025
0.42.1 Apr 25, 2025
0.41.1 Mar 27, 2025
0.37.1 Dec 25, 2024
0.11.0 Nov 29, 2022

#320 in Template engine

Download history 15/week @ 2025-01-13 3/week @ 2025-01-20 55/week @ 2025-02-03 184/week @ 2025-02-10 17/week @ 2025-02-17 7/week @ 2025-02-24 168/week @ 2025-03-03 185/week @ 2025-03-10 182/week @ 2025-03-17 281/week @ 2025-03-24 180/week @ 2025-03-31 51/week @ 2025-04-07 26/week @ 2025-04-14 284/week @ 2025-04-21 34/week @ 2025-04-28

407 downloads per month
Used in tpnote

MIT/Apache

505KB
9K SLoC

The tpnote-lib library is designed to embed Tp-Note's core function in common text editors and text editor plugins. It is dealing with templates and input files and is also part of the command line application Tp-Note. This library also provides a default configuration in the static variable LIB_CFG that can be customized at runtime. The defaults for the variables grouped in LIB_CFG, are defined as constants in the module config (see Rustdoc). While LIB_CFG is sourced only once at the start of Tp-Note, the SETTINGS may be sourced more often. The latter contains configuration data originating form environment variables.

Tp-Note's high-level API, cf. module workflow, abstracts most implementation details. Roughly speaking, the input path correspond to Tp-Note's first positional command line parameter and the output path is the same that is printed to stdout after usage. The main consumer of tpnote-lib's high-level API is the module workflow and html_renderer in the tpnote crate.


The tpnote-lib library is designed to embed Tp-Note's core function in common text editors and text editor plugins. It is dealing with templates and input files and is also part of the command line application Tp-Note. The library provides a default configuration in the static variable LIB_CFG that can be customized at runtime.

Dependencies

~11–44MB
~660K SLoC