From 8d12c458e15beac0de4b2570de8b2dc3bcb8fc8e Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:52:19 -0800 Subject: [PATCH] add: zsh-autocomplete (#2565) (#2570) Closes #2533 (cherry picked from commit 571cffb18e8499592b1de02a8659be5aa4e25a34) Co-authored-by: madomado --- anda/devs/zsh-autocomplete/anda.hcl | 5 +++ anda/devs/zsh-autocomplete/update.rhai | 1 + .../zsh-autocomplete/zsh-autocomplete.spec | 31 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 anda/devs/zsh-autocomplete/anda.hcl create mode 100644 anda/devs/zsh-autocomplete/update.rhai create mode 100644 anda/devs/zsh-autocomplete/zsh-autocomplete.spec diff --git a/anda/devs/zsh-autocomplete/anda.hcl b/anda/devs/zsh-autocomplete/anda.hcl new file mode 100644 index 0000000000..6385138a40 --- /dev/null +++ b/anda/devs/zsh-autocomplete/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "zsh-autocomplete.spec" + } +} diff --git a/anda/devs/zsh-autocomplete/update.rhai b/anda/devs/zsh-autocomplete/update.rhai new file mode 100644 index 0000000000..283d120101 --- /dev/null +++ b/anda/devs/zsh-autocomplete/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("marlonrichert/zsh-autocomplete")); diff --git a/anda/devs/zsh-autocomplete/zsh-autocomplete.spec b/anda/devs/zsh-autocomplete/zsh-autocomplete.spec new file mode 100644 index 0000000000..3a1efafcaf --- /dev/null +++ b/anda/devs/zsh-autocomplete/zsh-autocomplete.spec @@ -0,0 +1,31 @@ +%define debug_package %nil + +Name: zsh-autocomplete +Version: 24.09.04 +Release: 1%?dist +Summary: Real-time type-ahead completion for Zsh +License: MIT +URL: https://github.com/marlonrichert/zsh-autocomplete +Source0: %url/archive/refs/tags/%version.tar.gz +Packager: madonuko + +%description +This plugin for Zsh adds real-time type-ahead autocompletion to your command +line, similar to what you find desktop apps. While you type on the command +line, available completions are listed automatically; no need to press any +keyboard shortcuts. Press Tab to insert the top completion or ↓ to select a +different one. + +%prep +%autosetup + +%build + +%install +install -Dpm644 zsh-autocomplete.plugin.zsh -t %buildroot%_datadir/zsh-autocomplete/ +mv Completions Functions %buildroot%_datadir/zsh-autocomplete/ + +%files +%doc README.md +%license LICENSE +%_datadir/zsh-autocomplete/