Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ttscoff/gather-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.24b
Choose a base ref
...
head repository: ttscoff/gather-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -10,3 +10,6 @@ DerivedData/
build
*.pkg
package
.gitsecret/keys/random_seed
!*.secret
gather
Empty file added .gitmodules
Empty file.
1 change: 1 addition & 0 deletions .gitsecret/keys/crls.d/DIR.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v:1:
Binary file added .gitsecret/keys/pubring.kbx
Binary file not shown.
Binary file added .gitsecret/keys/trustdb.gpg
Binary file not shown.
1 change: 1 addition & 0 deletions .gitsecret/paths/mapping.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
buildnotes.md:ebd977eb3ba8a624388e00f3b0e05f2e7d48257f97243459b7aeae5b24bcc5b3
143 changes: 142 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,145 @@
## 2.0.24
## 2.1.6

## 2.1.5

## 2.1.4

## 2.1.3

## 2.1.2

#### IMPROVED

- Implement cleaned-up code from #16

## 2.1.1

## 2.0.48

#### NEW

- Use --save TITLE to save a set of command line flags for future use
- Use --config TITLE to restore a set of saved flags

## 2.0.47

#### IMPROVED

- Don't attempt to remove extraneous bits from SEO titles, leave as is

## 2.0.46

#### FIXED

- Incorrect handling of links with no protocol (`//github.com...`)
- Incorrect formatting of links with emphasis (`_[text_][5]`)

## 2.0.45

#### FIXED

- Incorrect handling of links with no protocol (`//github.com...`)
- Incorrect formatting of links with emphasis (`_[text_][5]`)

## 2.0.44

#### NEW

- --metadata-yaml option to include source info as YAML front matter

## 2.0.43

#### FIXED

- Missing h1 title with --no-include-source

## 2.0.42

#### FIXED

- Missing title if a rel=canonical url not found

## 2.0.40

#### FIXED

- Using --inline-links without --no-paragraph links would throw an error, which is just stupid. What was he thinking?
- Documentation refers to `--inline` instead of `--inline-links` (Thanks rand)

## 2.0.34

#### IMPROVED

- Documentation update

#### FIXED

- Double h1 headlines being inserted
- Respect --no-include-title better

## 2.0.33

#### NEW

- Use %date, %slugdate, %title, and %slug in --file paths
- %slug for url scheme templates

#### IMPROVED

- Sanitize filenames where needed

## 2.0.32

#### IMPROVED

- Rely more heavily on title tags instead of trying to parse h1/h2 effectively

## 2.0.31

#### IMPROVED

- Add %filename placeholder to url templates, which inserts a sanitized version of the page title

## 2.0.30

#### NEW

- Generate any url scheme using templates (`--url-template "handler://method?txt=%text&title=%title"`)
- Open generated urls automatically with `--url-open`
- Define a fallback title for various outputs in case one isn't found (usually in HTML snippets) `--fallback-title`

#### IMPROVED

- Better title detection for HTML snippets
- If a title can be detected from an HTML snippet, include it if requested
- If a canonical link can be found for the page, use it as the "source url" in output

#### FIXED

- Crash when HTML snippet is missing head
- URL encode ALL characters to avoid malformed url handlers
- Images wrapped in links missing opening bracket

## 2.0.29

#### CHANGED

- Moved the new --nv-add/url options to --nvu-add/url

#### NEW

- Generate nvALT urls and notes with --nv-url and --nv-add

## 2.0.28

#### NEW

- --nv-url to output results as an nvUltra url handler url
- --nv-add to immediately create a new note in nvUltra
- --nv-notebook to specify a path to the notebook folder you wish to use
- --title-only to output only the title of the page

## 2.0.27

#### NEW

17 changes: 13 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"location" : "https://github.com/ttscoff/html2text-swift.git",
"state" : {
"branch" : "master",
"revision" : "62b406a77ba6d7cdcfebe293d5e2d9ab1702fd66"
"revision" : "947f07f9a11a3439a8534ba9b604cfbd22c1b2be"
}
},
{
@@ -15,16 +15,16 @@
"location" : "https://github.com/ttscoff/read-swift.git",
"state" : {
"branch" : "master",
"revision" : "4b0ab8e676bc7d9bc371ad46422ebfb2eed1d48e"
"revision" : "55db904566502acac7fbe3fd9fe4c7f416a49afe"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "9f39744e025c7d377987f30b03770805dcb0bcd1",
"version" : "1.1.4"
"revision" : "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a",
"version" : "1.2.2"
}
},
{
@@ -35,6 +35,15 @@
"revision" : "6778575285177365cbad3e5b8a72f2a20583cfec",
"version" : "2.4.3"
}
},
{
"identity" : "yams",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/Yams.git",
"state" : {
"revision" : "f47ba4838c30dbd59998a4e4c87ab620ff959e8a",
"version" : "5.0.5"
}
}
],
"version" : 2
12 changes: 8 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -9,7 +9,10 @@ let package = Package(
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
.package(url: "https://github.com/ttscoff/read-swift.git", branch: "master"),
.package(url: "https://github.com/ttscoff/html2text-swift.git", branch: "master"),
// .package(path: "./read-swift"),
// .package(path: "./html2text-swift"),
.package(url: "https://github.com/ttscoff/SwiftSoup.git", from: "2.0.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.0.4"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -21,11 +24,12 @@ let package = Package(
.product(name: "SwiftSoup", package: "SwiftSoup"),
.product(name: "Readability", package: "read-swift"),
.product(name: "HTML2Text", package: "html2text-swift"),
.product(name: "Yams", package: "Yams"),
]
),
.testTarget(
name: "gather-cliTests",
dependencies: ["gather"]
),
// .testTarget(
// name: "gather-cliTests",
// dependencies: ["gather"]
// ),
]
)
Loading