#note-taking #tpnote

tpnote-lib

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

52 releases (24 breaking)

new 0.32.1 Feb 27, 2024
0.31.0 Feb 16, 2024
0.30.7 Nov 27, 2023
0.21.2 Jul 28, 2023
0.11.0 Nov 29, 2022

#246 in Template engine

Download history 206/week @ 2023-11-06 175/week @ 2023-11-13 219/week @ 2023-11-20 194/week @ 2023-11-27 104/week @ 2023-12-04 199/week @ 2023-12-11 82/week @ 2023-12-18 149/week @ 2023-12-25 26/week @ 2024-01-01 80/week @ 2024-01-08 21/week @ 2024-01-15 13/week @ 2024-01-22 150/week @ 2024-01-29 54/week @ 2024-02-05 607/week @ 2024-02-12 1450/week @ 2024-02-19

2,264 downloads per month
Used in tpnote

MIT/Apache

390KB
7K 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, c.f. 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 in the tp-note crate.

Dependencies

~11–48MB
~722K SLoC