Skip to content

Commit

Permalink
Prepare tpnote version v1.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
getreu committed Nov 12, 2023
1 parent 9c1eec5 commit 80d2af2
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 25 deletions.
48 changes: 40 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://gitlab.com/getreu/tp-note"
rust-version = "1.70.0"
version = "1.22.13"
version = "1.23.0"

[profile.release]
strip = "symbols"
Expand Down
43 changes: 35 additions & 8 deletions docs/build/man/man1/tpnote.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "TP-NOTE" "1" "2023-11-08" "Version 1.22.13" "Tp-Note documentation"
.TH "TP-NOTE" "1" "2023-11-12" "Version 1.23.0" "Tp-Note documentation"
.hy
.SH NAME
.PP
Expand Down Expand Up @@ -616,8 +616,8 @@ be available or work as expected.
.RE
.RS
.PP
Use `\f[V]-b -d trace\f[R]' for debugging templates and configuration
files.
Use `\f[V]-b -d trace\f[R]' for debugging templates and
`\f[V]-V -b -d trace\f[R]' for debugging configuration files.
If the HTTP server (viewer) does not work as expected:
`\f[V]-n -d debug\f[R]'.
If your text editor does not open as expected:
Expand Down Expand Up @@ -804,6 +804,8 @@ As most users do not expect the viewed file to change,
Print Tp-Note\[cq]s version, its built-in features and the path to the
sourced configuration file.
The output is YAML formatted for further automatic processing.
In addition, use `\f[V]-V -b -d trace\f[R]' for configuration file
debugging.
.RE
.PP
\f[B]-x\f[R] \f[I]DIRECTORY\f[R], \f[B]--export\f[R]=\f[I]DIRECTORY\f[R]
Expand Down Expand Up @@ -1533,10 +1535,12 @@ into the default configuration.
Then the resulting syntax is checked.
If not correct, the last sourced configuration file is renamed (thus
disabled) and Tp-Note starts with its internal default configuration.
For debugging, you can print out the merge result with
`\f[V]-V -b -d trace\f[R]'.
.PP
To write a custom configuration file, first start with a complete
default configuration you can generate by invoking Tp-Note with
`\f[V]-V -b -c\f[R]'.
`\f[V]-V -b -c\f[R]' (no `\f[V]-d\f[R]').
.IP
.nf
\f[C]
Expand Down Expand Up @@ -1675,6 +1679,7 @@ Consider the following example:
.IP
.nf
\f[C]
[app_args]
windows.editor = [
[
\[aq]{{ get_env(name=\[dq]LOCALAPPDATA\[dq]) }}\[rs]Programs\[rs]Microsoft VS Code\[rs]Code.exe\[aq],
Expand All @@ -1691,6 +1696,7 @@ Windows for a user with the username `\f[V]Joe\f[R]' to
.IP
.nf
\f[C]
[app_args]
windows.editor = [
[
\[aq]C:\[rs]User\[rs]Joe\[rs]AppData\[rs]Local\[rs]Programs\[rs]Microsoft VS Code\[rs]Code.exe\[aq],
Expand Down Expand Up @@ -1952,6 +1958,8 @@ extensions, that are regarded as Markdown files:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.filename]
extensions = [
[ \[dq]txt\[dq], \[dq]Markdown\[dq] ],
Expand All @@ -1968,16 +1976,20 @@ The default file extension for new note files is defined as:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.filename]
extension_default = \[aq]md\[aq]
\f[R]
.fi
.PP
If you prefer rather the file extension `\f[V].markdown\f[R]' for new
notes, change this to:
notes, write a configuration file with:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.filename]
extension_default = \[aq]markdown\[aq]
\f[R]
Expand Down Expand Up @@ -2005,6 +2017,8 @@ candidates, e.g.:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.tmpl]
filter.get_lang = [
\[aq]en\[aq],
Expand All @@ -2028,6 +2042,8 @@ for \[lq]add all languages\[rq]:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.tmpl]
filter.get_lang = [
\[aq]+all\[aq],
Expand All @@ -2052,6 +2068,8 @@ The corresponding configuration looks like this:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.tmpl]
filter.map_lang = [
[
Expand Down Expand Up @@ -2145,6 +2163,8 @@ Consider the following simplified example:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
fm_vars.localization = [
[\[dq]fm_title\[dq], \[dq]title\[dq]],
[\[dq]fm_subtitle\[dq], \[dq]subtitle\[dq]],
Expand All @@ -2161,6 +2181,8 @@ Example:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
fm_vars.localization = [
[\[dq]fm_title\[dq], \[dq]Titel\[dq]],
[\[dq]fm_subtitle\[dq], \[dq]Untertitel\[dq]],
Expand Down Expand Up @@ -2196,20 +2218,24 @@ There is one little exception though.
The following configuration variables affect the way new notes are
created:
.IP "1." 3
Change the default file extension for new notes from:
The file extension for new notes is defined as:
.RS 4
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.filename]
extension_default=\[aq]md\[aq]
\f[R]
.fi
.PP
to:
Overwrite this setting with the configuration file:
.IP
.nf
\f[C]
[[scheme]]
name = \[dq]default\[dq]
[scheme.filename]
extension_default=\[aq]rst\[aq]
\f[R]
Expand Down Expand Up @@ -2545,7 +2571,8 @@ the text source with clickable hyperlinks:
.IP
.nf
\f[C]
[viewer_error]
[tmpl_html]
viewer_error = \[aq]\[aq]\[aq]
<!DOCTYPE html>
<html lang=\[rs]\[dq]en\[rs]\[dq]>
<head>
Expand Down
6 changes: 3 additions & 3 deletions docs/source/tpnote--manpage.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: TP-NOTE(1) Version 1.22.13 | Tp-Note documentation
title: TP-NOTE(1) Version 1.23.0 | Tp-Note documentation
subtitle: manpage
author: Jens Getreu
version: 1.22.13
version: 1.23.0
filename_sync: false
date: 2023-11-08
date: 2023-11-12
lang: en-GB
---

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tpnote--manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Tp-Note: save and edit your clipboard content as a note file"
subtitle: Organize your notes with your favourite editor and markup language
author: Jens Getreu
date: 2023-11-08
version: 1.22.13
date: 2023-11-12
version: 1.23.0
filename_sync: false
lang: en-GB
---
Expand Down
2 changes: 1 addition & 1 deletion tpnote-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rst_parser = { version = "0.4.0", optional = true }
# ReStructuredText renderer.
rst_renderer = { version = "0.4.0", optional = true }
sanitize-filename-reader-friendly.workspace = true
self_cell = "1.0.1"
self_cell = "1.0.2"
serde_json = "1.0.108"
serde.workspace = true
serde_yaml.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions tpnote/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ thiserror.workspace = true
time = "0.3.30"
tera.workspace = true
toml.workspace = true
tpnote-lib = { path = "../tpnote-lib", default-features = false }
# tpnote-lib = { version = "0.30.4", default-features = false}
# tpnote-lib = { path = "../tpnote-lib", default-features = false }
tpnote-lib = { version = "0.30.4", default-features = false}
webbrowser = { version = "0.8.12", optional = true }

[target.'cfg(windows)'.dependencies]
Expand Down

0 comments on commit 80d2af2

Please sign in to comment.