#config #lib #file #tp-note

tpnote-lib

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

71 releases (31 breaking)

new 0.41.1 Mar 27, 2025
0.40.1 Mar 20, 2025
0.37.1 Dec 25, 2024
0.36.3 Nov 9, 2024
0.11.0 Nov 29, 2022

#339 in Template engine

Download history 302/week @ 2024-12-06 83/week @ 2024-12-13 157/week @ 2024-12-20 34/week @ 2024-12-27 299/week @ 2025-01-03 38/week @ 2025-01-10 5/week @ 2025-01-17 15/week @ 2025-01-31 181/week @ 2025-02-07 60/week @ 2025-02-14 4/week @ 2025-02-21 151/week @ 2025-02-28 130/week @ 2025-03-07 191/week @ 2025-03-14 137/week @ 2025-03-21

611 downloads per month
Used in tpnote

MIT/Apache

475KB
8K 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. The library provides a default configuration in the static variable LIB_CFG that can be customized at runtime.


lib.rs:

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.

Dependencies

~10–42MB
~651K SLoC