#env-var #input #template #clipboard #content #editor #file

tpnote-lib

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

66 releases (29 breaking)

new 0.39.1 Feb 11, 2025
0.38.0 Jan 5, 2025
0.37.1 Dec 25, 2024
0.36.3 Nov 9, 2024
0.11.0 Nov 29, 2022

#251 in Template engine

Download history 177/week @ 2024-10-27 80/week @ 2024-11-03 84/week @ 2024-11-10 17/week @ 2024-11-17 4/week @ 2024-11-24 22/week @ 2024-12-01 365/week @ 2024-12-08 20/week @ 2024-12-15 177/week @ 2024-12-22 11/week @ 2024-12-29 318/week @ 2025-01-05 20/week @ 2025-01-12 4/week @ 2025-01-19 54/week @ 2025-02-02 161/week @ 2025-02-09

219 downloads per month
Used in tpnote

MIT/Apache and maybe GPL-3.0+

445KB
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, 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 tpnote crate.

Dependencies

~11–42MB
~658K SLoC