longdown 2023.4.26 → 2024.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/lib/cljs-runtime/cljs.core.js +334 -334
- package/lib/cljs-runtime/clojure.string.js +32 -32
- package/lib/cljs-runtime/clojure.string.js.map +1 -1
- package/lib/cljs-runtime/clojure.tools.cli.js +481 -481
- package/lib/cljs-runtime/clojure.tools.cli.js.map +1 -1
- package/lib/cljs-runtime/longdown.cli.js +57 -57
- package/lib/cljs-runtime/longdown.cli.js.map +1 -1
- package/lib/cljs-runtime/longdown.lib.js +14 -14
- package/lib/cljs-runtime/longdown.lib.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,8 @@ Install with:
|
|
|
43
43
|
npm install -g longdown
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
#### Converting files
|
|
47
|
+
|
|
46
48
|
It is a good idea to make a backup of the input files first before running the script!
|
|
47
49
|
|
|
48
50
|
Specify output directory with `-d` flag and pass input files:
|
|
@@ -58,6 +60,22 @@ cd ..
|
|
|
58
60
|
meld my-notes out
|
|
59
61
|
```
|
|
60
62
|
|
|
63
|
+
#### Converting text snippets
|
|
64
|
+
|
|
65
|
+
Use `longdown -` to read from standard input and print result to standard output.
|
|
66
|
+
|
|
67
|
+
It can be useful to converting text snippets from clipboard and pasting them directly to Logseq without needing to create intermediate files.
|
|
68
|
+
|
|
69
|
+
For example on Linux:
|
|
70
|
+
```
|
|
71
|
+
xclip -selection clipboard -out | longdown - | xclip -selection clipboard -in
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
On macOS:
|
|
75
|
+
```
|
|
76
|
+
pbpaste | longdown - | pbcopy
|
|
77
|
+
```
|
|
78
|
+
|
|
61
79
|
## License
|
|
62
80
|
|
|
63
81
|
0BSD
|