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

tpnote-lib

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

63 releases (28 breaking)

new 0.37.0 Dec 8, 2024
0.36.3 Nov 9, 2024
0.36.2 Oct 29, 2024
0.35.3 Jul 16, 2024
0.11.0 Nov 29, 2022

#240 in Template engine

Download history 263/week @ 2024-08-21 27/week @ 2024-08-28 3/week @ 2024-09-04 35/week @ 2024-09-11 53/week @ 2024-09-18 154/week @ 2024-09-25 22/week @ 2024-10-02 2/week @ 2024-10-09 4/week @ 2024-10-16 104/week @ 2024-10-23 82/week @ 2024-10-30 143/week @ 2024-11-06 21/week @ 2024-11-13 12/week @ 2024-11-20 6/week @ 2024-11-27 165/week @ 2024-12-04

213 downloads per month
Used in tpnote

MIT/Apache

410KB
7.5K 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

~10–43MB
~712K SLoC