summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Alexander Seistrup2024-03-31 13:49:20 +0200
committerKlaus Alexander Seistrup2024-03-31 13:49:20 +0200
commit36e6d5b5b8d5e1d52ef6807ff6ba9f653856d75d (patch)
tree4a82cb11f4abcc8e802e94e1ef66748c4d2eea30
parent312e578e600b01b395ad0d3b71b857d33c6085c6 (diff)
downloadaur-36e6d5b5b8d5e1d52ef6807ff6ba9f653856d75d.tar.gz
New upstream release: v4.0.0
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD6
-rw-r--r--docfd-bin.changelog61
3 files changed, 22 insertions, 53 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4198bc58ac1e..40cb77fa77ee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = docfd-bin
pkgdesc = TUI multiline fuzzy document finder (pre-compiled)
- pkgver = 3.0.0
+ pkgver = 4.0.0
pkgrel = 1
url = https://github.com/darrenldl/docfd
changelog = docfd-bin.changelog
@@ -8,15 +8,15 @@ pkgbase = docfd-bin
license = MIT
provides = docfd
conflicts = docfd
- source = https://github.com/darrenldl/docfd/releases/download/3.0.0/docfd-3.0.0-ubuntu-latest.tar.gz
+ source = https://github.com/darrenldl/docfd/releases/download/4.0.0/docfd-4.0.0-ubuntu-latest.tar.gz
source = https://raw.githubusercontent.com/darrenldl/docfd/main/CHANGELOG.md
source = https://raw.githubusercontent.com/darrenldl/docfd/main/LICENSE
source = https://raw.githubusercontent.com/darrenldl/docfd/main/README.md
- sha256sums = 9c767cfd958374747137308c81f697907a65d8ec011a3bfc95cbc075cb2522d1
+ sha256sums = 17f2a1c1551e44dce286d41f12dc576d5b8293cdc9d07a7db0bb304bcd179fec
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
- b2sums = 1199f38a4f45b9e192c36a92fa5ec7442e9dd42bba05417b3dde250d36169ff6dc99343098a853429db6059d566dd29a95bc553a3308bf4d7dc80120f749301e
+ b2sums = 2eddbd3002c6e0673d16c15647b056b01382d5343b8e207e6a4794bc5a10f5bf1fbb331663e3b155b0c1e23ff63ed34d100f97571b93db6c0bb8713e087fc599
b2sums = SKIP
b2sums = SKIP
b2sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 61a38c7c32c1..2c98ddb77558 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname='docfd-bin'
_pkgname="${pkgname/-bin/}"
_flavour='ubuntu-latest'
-pkgver=3.0.0
+pkgver=4.0.0
pkgrel=1
pkgdesc='TUI multiline fuzzy document finder (pre-compiled)'
arch=('x86_64')
@@ -31,11 +31,11 @@ package() {
}
sha256sums=(
- '9c767cfd958374747137308c81f697907a65d8ec011a3bfc95cbc075cb2522d1'
+ '17f2a1c1551e44dce286d41f12dc576d5b8293cdc9d07a7db0bb304bcd179fec'
'SKIP' 'SKIP' 'SKIP'
)
b2sums=(
- '1199f38a4f45b9e192c36a92fa5ec7442e9dd42bba05417b3dde250d36169ff6dc99343098a853429db6059d566dd29a95bc553a3308bf4d7dc80120f749301e'
+ '2eddbd3002c6e0673d16c15647b056b01382d5343b8e207e6a4794bc5a10f5bf1fbb331663e3b155b0c1e23ff63ed34d100f97571b93db6c0bb8713e087fc599'
'SKIP' 'SKIP' 'SKIP'
)
diff --git a/docfd-bin.changelog b/docfd-bin.changelog
index ccc322d78451..9e4e7a1a828c 100644
--- a/docfd-bin.changelog
+++ b/docfd-bin.changelog
@@ -1,55 +1,24 @@
-## 3.0.0
+## 4.0.0
-- Fixed crash from search result snippet being bigger the content view pane
+- Made document search asynchronous to search field input, so UI remains
+ smooth even if search is slow
- - Crash was from `Content_and_search_result_render.color_word_image_grid`
+- Added status to search bar:
-- Added key bindings
+ - `OK` means Docfd is idling
+ - `...` means Docfd is searching
+ - `ERR` means Docfd failed to parse the search expression
- - `p`: exit and print search result to stderr
- - `Shift+P`: exit and print file path to stderr
+- Added search cancellation. Triggered by editing or clearing search field.
-- Changed `--debug-log -` to use stderr instead of stdout
+- Added dynamic search distance adjustment based on notion of linked tokens
-- Added non-interactive search mode where search results are printed to stdout
+ - Two tokens are linked if there is no space between them,
+ e.g. `-` and `>` are linked in `->`, but not in `- >`
- - `--search EXP` invokes non-interactive search mode with search expression `EXP`
- - `--search-result-count-per-document` sets the number of top search results printed per document
- - `--search-result-print-text-width` sets the text width to use when printing
+- Replaced `word` with `token` in the following options for consistency
-- Added `--start-with-search` to prefill the search field in interactive mode
+ - `--max-word-search-dist`
+ - `--index-chunk-word-count`
-- Removed content requirement expression from multi-file view
-
- - Originally designed for file filtering, but I have almost never used
- it since its addition in 1.0.0
-
-- Added word based line wrapping to following components of document list in multi-file view
-
- - Document title
- - Document path
- - Document content preview
-
-- Added word breaking in word based line wrapping logic so all of the original characters
- are displayed even when the terminal width is very small or when a word/token is very long
-
-- Added `--paths-from` to specify a file containing list of paths to (also) be scanned
-
-- Fixed search result centering in presence of line wrapping
-
-- Renamed `--max-fuzzy-edit` to `--max-fuzzy-edit-dist` for consistency
-
-- Changed error messages to not be capitalized to follow Rust's and Go's
- guidelines on error messages
-
-- Added fallback rendering text so Docfd does not crash from trying
- to render invalid text.
-
-- Added pandoc integration
-
-- Changed the logic of determining when to use stdin as document source
-
- - Now if any paths are specified, stdin is ignored
- - This change mostly came from Dune's cram test mechanism
- not providing a tty to stdin, so previously Docfd would keep
- trying to source from stdin even when explicit paths are provided
+- Replaced `word` with `token` in user-facing text