- Add new "v" prefix to tag in URL
- Update to 0.54.0: * Implemented line wrap of long items * Updated shell integration scripts to leverage line wrap * Added --info-command option for customizing the info line * Pointer and marker signs can be set to empty strings * Better cache management and improved rendering for --tail * Improved --sync behavior: When --sync is provided, fzf will not render the interface until the initial filtering and the associated actions (bound to any of start, load, result, or focus) are complete. * GET endpoint is now available from execute and transform actions (it used to timeout due to lock conflict) * Added offset-middle action to place the current item is in the middle of the screen * fzf will not start the initial reader when reload or reload-sync is bound to start event. fzf < /dev/null or : | fzf are no longer required and extraneous load event will not fire due to the empty list. * Fixed crash when using --tiebreak=end with very long items * zsh 5.0 compatibility * Fixed --walker-skip to also skip symlinks to directories * Fixed result event not fired when input stream is not complete * New tags will have v prefix OBS-URL: https://build.opensuse.org/package/show/utilities/fzf?expand=0&rev=120
This commit is contained in:
commit
173299be5e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
7
_service
Normal file
7
_service
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<services>
|
||||||
|
<service name="download_files" mode="manual"/>
|
||||||
|
<service name="go_modules" mode="manual">
|
||||||
|
<param name="compression">zst</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
|
3
fzf-0.53.0.tar.gz
Normal file
3
fzf-0.53.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d45abbfb64f21913c633d46818d9d3eb3d7ebc7e94bd16f45941958aa5480e1d
|
||||||
|
size 286797
|
3
fzf-0.54.0.tar.gz
Normal file
3
fzf-0.54.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ce658b153254e25cf4244365d639cf3ac5b91230a20f76bd6845d88e1267a2db
|
||||||
|
size 291944
|
1130
fzf.changes
Normal file
1130
fzf.changes
Normal file
File diff suppressed because it is too large
Load Diff
199
fzf.spec
Normal file
199
fzf.spec
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
#
|
||||||
|
# spec file for package fzf
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global _lto_cflags %{nil}
|
||||||
|
Name: fzf
|
||||||
|
Version: 0.54.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A command-line fuzzy finder
|
||||||
|
License: MIT
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
URL: https://github.com/junegunn/fzf
|
||||||
|
Source0: https://github.com/junegunn/fzf/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.zst
|
||||||
|
BuildRequires: zstd
|
||||||
|
BuildRequires: golang(API) >= 1.19
|
||||||
|
|
||||||
|
%description
|
||||||
|
fzf is an interactive Unix filter for command-line that can be used with any list; files,
|
||||||
|
command history, processes, hostnames, bookmarks, git commits, etc.
|
||||||
|
|
||||||
|
%package tmux
|
||||||
|
Summary: Tmux integration for fzf
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
Supplements: (fzf and tmux)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description tmux
|
||||||
|
Tmux integration for fzf. Includes a wrapper script, fzf-tmux, that opens your list in a
|
||||||
|
separate tmux pane.
|
||||||
|
|
||||||
|
%package bash-integration
|
||||||
|
Summary: Bash completion for fzf
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
Requires: bash-completion
|
||||||
|
Requires: fzf
|
||||||
|
Enhances: (fzf and bash-completion)
|
||||||
|
Provides: fzf-bash-completion = %{version}-%{release}
|
||||||
|
Obsoletes: fzf-bash-completion < %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description bash-integration
|
||||||
|
Bash shell completions for fzf
|
||||||
|
|
||||||
|
%package fish-integration
|
||||||
|
Summary: Fish completion for fzf
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
Requires: fish
|
||||||
|
Requires: fzf
|
||||||
|
Enhances: (fzf and fish)
|
||||||
|
Provides: fzf-fish-completion = %{version}-%{release}
|
||||||
|
Obsoletes: fzf-fish-completion < %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description fish-integration
|
||||||
|
fish shell completions for fzf
|
||||||
|
|
||||||
|
To enable it, ensure you have a file ~/.config/fish/functions/fish_user_key_bindings.fish
|
||||||
|
which contains:
|
||||||
|
function fish_user_key_bindings
|
||||||
|
fzf_key_bindings
|
||||||
|
end
|
||||||
|
|
||||||
|
(or append fzf_key_bindings to the fish_user_key_bindings function if the file already exists)
|
||||||
|
|
||||||
|
%package zsh-integration
|
||||||
|
Summary: ZSH completion for fzf
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
Requires: fzf
|
||||||
|
Requires: zsh
|
||||||
|
Enhances: (fzf and zsh)
|
||||||
|
Provides: fzf-zsh-completion = %{version}-%{release}
|
||||||
|
Obsoletes: fzf-zsh-completion < %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description zsh-integration
|
||||||
|
zsh shell completions for fzf
|
||||||
|
|
||||||
|
%define vimplugin_dir %{_datadir}/vim/site
|
||||||
|
|
||||||
|
%package -n vim-fzf
|
||||||
|
Summary: Vim plugin for fzf
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
Requires: (vim or neovim)
|
||||||
|
Enhances: (fzf and zsh)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n vim-fzf
|
||||||
|
Plugin for vim allowing use of fzf.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -a1
|
||||||
|
|
||||||
|
# fix E: env-script-interpreter
|
||||||
|
sed -i 's,#!%{_bindir}/env ,#!/bin/,' ./bin/fzf-tmux
|
||||||
|
|
||||||
|
%build
|
||||||
|
export FZF_VERSION=%{version} FZF_REVISION=tarball
|
||||||
|
export GOCACHE=$(readlink -f vendor/)
|
||||||
|
%ifarch ppc64
|
||||||
|
BUILDMOD=""
|
||||||
|
%else
|
||||||
|
BUILDMOD="-buildmode=pie"
|
||||||
|
%endif
|
||||||
|
export RPM_OPT_FLAGS="%{optflags}"
|
||||||
|
go build -v -x -mod=vendor $BUILDMOD -a -ldflags "-s -X main.revision=%{version}"
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm755 fzf %{buildroot}%{_bindir}/fzf
|
||||||
|
install -Dm755 bin/fzf-tmux %{buildroot}%{_bindir}/fzf-tmux
|
||||||
|
install -Dm644 man/man1/fzf.1 %{buildroot}%{_mandir}/man1/fzf.1
|
||||||
|
install -Dm644 man/man1/fzf-tmux.1 %{buildroot}%{_mandir}/man1/fzf-tmux.1
|
||||||
|
|
||||||
|
# shell completions
|
||||||
|
# Since 0.48 fzf can generate shell integration scripts, but the
|
||||||
|
# upstream still promotes "for finer control" availability of the
|
||||||
|
# real scripts
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/fzf
|
||||||
|
cp -p -r shell/ %{buildroot}%{_datadir}/fzf
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||||
|
echo 'if [ "${BASH_VERSION-}" ] && [[ $- == *i* ]]; then eval "$(fzf --bash 2>/dev/null)"; fi' > \
|
||||||
|
%{buildroot}%{_sysconfdir}/profile.d/fzf-bash.sh
|
||||||
|
install -Dm0644 shell/completion.zsh \
|
||||||
|
%{buildroot}%{_sysconfdir}/zsh_completion.d/fzf-key-bindings
|
||||||
|
install -Dm0644 shell/key-bindings.zsh \
|
||||||
|
%{buildroot}%{_datadir}/zsh/site-functions/_fzf
|
||||||
|
install -Dm0644 shell/key-bindings.fish \
|
||||||
|
%{buildroot}%{_datadir}/fish/vendor_functions.d/fzf_key_bindings.fish
|
||||||
|
|
||||||
|
# vim plugin
|
||||||
|
install -D -m0644 -t %{buildroot}%{vimplugin_dir}/doc doc/*
|
||||||
|
install -D -m0644 -t %{buildroot}%{vimplugin_dir}/plugin plugin/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
export SHELL=/bin/sh GOOS=
|
||||||
|
export GOCACHE=$(readlink -f vendor/)
|
||||||
|
%ifarch ppc64
|
||||||
|
BUILDMOD=""
|
||||||
|
%else
|
||||||
|
BUILDMOD="-buildmode=pie"
|
||||||
|
%endif
|
||||||
|
export CGO_CFLAGS="%{optflags}"
|
||||||
|
export CGO_CXXFLAGS="%{optflags}"
|
||||||
|
export CGO_CPPFLAGS="%{optflags}"
|
||||||
|
go test -v -x -mod=vendor ${BUILDMOD} -a \
|
||||||
|
-ldflags "-X main.revision=%{version}" \
|
||||||
|
github.com/junegunn/fzf/src \
|
||||||
|
github.com/junegunn/fzf/src/algo \
|
||||||
|
github.com/junegunn/fzf/src/tui \
|
||||||
|
github.com/junegunn/fzf/src/util
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/fzf
|
||||||
|
%{_mandir}/man1/fzf.1%{?ext_man}
|
||||||
|
%dir %{_datadir}/fzf
|
||||||
|
%{_datadir}/fzf/shell
|
||||||
|
|
||||||
|
%files tmux
|
||||||
|
%{_bindir}/fzf-tmux
|
||||||
|
%{_mandir}/man1/fzf-tmux.1%{?ext_man}
|
||||||
|
|
||||||
|
%files bash-integration
|
||||||
|
%config %{_sysconfdir}/profile.d/fzf-bash.sh
|
||||||
|
|
||||||
|
%files fish-integration
|
||||||
|
%dir %{_datadir}/fish
|
||||||
|
%dir %{_datadir}/fish/vendor_functions.d
|
||||||
|
%{_datadir}/fish/vendor_functions.d/fzf_key_bindings.fish
|
||||||
|
|
||||||
|
%files zsh-integration
|
||||||
|
%{_datadir}/zsh
|
||||||
|
%dir %{_sysconfdir}/zsh_completion.d
|
||||||
|
%config %{_sysconfdir}/zsh_completion.d/fzf-key-bindings
|
||||||
|
|
||||||
|
%files -n vim-fzf
|
||||||
|
%doc README-VIM.md
|
||||||
|
%dir %{_datadir}/vim
|
||||||
|
%dir %{vimplugin_dir}
|
||||||
|
%{vimplugin_dir}/doc
|
||||||
|
%{vimplugin_dir}/plugin
|
||||||
|
|
||||||
|
%changelog
|
3
vendor.tar.zst
Normal file
3
vendor.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:205e3bc8d6ad81f5b85969ff0afb4bc7f166956ed0c80f7619ab3193fa1526a7
|
||||||
|
size 1262424
|
Loading…
Reference in New Issue
Block a user