Github messages for voidlinux
 help / color / mirror / Atom feed
From: zen0bit <zen0bit@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: tere-1.5.1
Date: Fri, 29 Dec 2023 00:09:40 +0100	[thread overview]
Message-ID: <20231228230940.UxfYOVUGdmzmSSLCAH3eyNx-2DTDdKEZPF8LeDzAxns@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47947@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

There is an updated pull request by zen0bit against master on the void-packages repository

https://github.com/oSoWoSo/VUR tere
https://github.com/void-linux/void-packages/pull/47947

New package: tere-1.5.1
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x64 glibc

A patch file from https://github.com/void-linux/void-packages/pull/47947.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tere-47947.patch --]
[-- Type: text/x-diff, Size: 2742 bytes --]

From 76d55c8bb3da952bdb9a643d04cc7964d5303fc0 Mon Sep 17 00:00:00 2001
From: zenobit <zenobit@disroot.org>
Date: Thu, 28 Dec 2023 18:25:02 +0100
Subject: [PATCH] New package: tere-1.5.1

---
 .../patches/case_sensitive_mode_test.patch    | 43 +++++++++++++++++++
 srcpkgs/tere/template                         | 11 +++++
 2 files changed, 54 insertions(+)
 create mode 100644 srcpkgs/tere/patches/case_sensitive_mode_test.patch
 create mode 100644 srcpkgs/tere/template

diff --git a/srcpkgs/tere/patches/case_sensitive_mode_test.patch b/srcpkgs/tere/patches/case_sensitive_mode_test.patch
new file mode 100644
index 0000000000000..01b54e8b80266
--- /dev/null
+++ b/srcpkgs/tere/patches/case_sensitive_mode_test.patch
@@ -0,0 +1,43 @@
+From 8cadf56d5a835da844c70c54f026a22f6c640c8f Mon Sep 17 00:00:00 2001
+From: mgunyho <20118130+mgunyho@users.noreply.github.com>
+Date: Thu, 21 Dec 2023 15:21:37 +0200
+Subject: [PATCH] Fix and improve case sensitive mode test
+
+Not sure why it was broken in the first place...
+
+See also discussion in Github issue #93
+---
+ src/app_state.rs | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/src/app_state.rs b/src/app_state.rs
+index 5dcdc52e..eb17465b 100644
+--- a/src/app_state.rs
++++ b/src/app_state.rs
+@@ -1696,20 +1696,20 @@ mod tests {
+     fn test_case_sensitive_mode_change() {
+         let tmp = TempDir::new().unwrap();
+         let mut s = create_test_state_with_folders(&tmp, 10, vec!["A", "a"]);
+-        s.cursor_pos = 2;
++        s.cursor_pos = 1;
+         s.advance_search("a");
+ 
+         // current state: ('*' shows the matches)
+         //   ..
+-        //   A  *
+-        // > a  *
++        // > A  *
++        //   a  *
+ 
+         assert_eq!(s.visible_match_indices(), vec![1, 2]);
+-        assert_eq!(s.cursor_pos, 2);
++        assert_eq!(s.cursor_pos, 1);
+ 
+         s.set_case_sensitive(CaseSensitiveMode::CaseSensitive);
+-        assert_eq!(s.visible_match_indices(), vec![1]);
+-        assert_eq!(s.cursor_pos, 1);
++        assert_eq!(s.visible_match_indices(), vec![2]);
++        assert_eq!(s.cursor_pos, 2);
+     }
+ 
+     #[test]
diff --git a/srcpkgs/tere/template b/srcpkgs/tere/template
new file mode 100644
index 0000000000000..73f502bbb029b
--- /dev/null
+++ b/srcpkgs/tere/template
@@ -0,0 +1,11 @@
+# Template file for 'tere'
+pkgname=tere
+version=1.5.1
+revision=1
+build_style=cargo
+short_desc="Faster alternative to cd + ls"
+maintainer="zenobit <zenobit@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/mgunyho/tere"
+distfiles="https://github.com/mgunyho/tere/archive/refs/tags/v${version}.tar.gz"
+checksum=d7f657371ffbd469c4d8855c2a2734c20b53ae632fe3cbf9bb7cab94bd726326

  parent reply	other threads:[~2023-12-28 23:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-28 17:29 [PR PATCH] " zen0bit
2023-12-28 18:29 ` zen0bit
2023-12-28 23:09 ` zen0bit [this message]
2023-12-29 17:13 ` icp1994
2024-01-10  2:42 ` [PR PATCH] [Updated] " zen0bit
2024-04-10  1:45 ` github-actions
2024-04-11 14:57 ` [PR PATCH] [Updated] " zen0bit
2024-05-12  8:16 ` zen0bit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231228230940.UxfYOVUGdmzmSSLCAH3eyNx-2DTDdKEZPF8LeDzAxns@z \
    --to=zen0bit@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).