SHA256
1
0
forked from pool/xplr

Accepting request 1186719 from home:smolsheep:upgrades

- Remove deprecated cargo_audit -- Now part of cargo_vendor
- Update to version 0.21.9:
  * Limit scroll padding dynamically based on screen size
  * Fixed crashing on small screen

OBS-URL: https://build.opensuse.org/request/show/1186719
OBS-URL: https://build.opensuse.org/package/show/utilities/xplr?expand=0&rev=45
This commit is contained in:
Michael Vetter 2024-07-15 04:47:21 +00:00 committed by Git OBS Bridge
commit 27d595d88d
11 changed files with 430 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

10
_service Normal file
View File

@ -0,0 +1,10 @@
<services>
<service name="download_files" mode="manual" />
<service name="cargo_vendor" mode="manual">
<param name="srctar">xplr-*.tar.gz</param>
<param name="compression">zst</param>
<param name="update">false</param>
</service>
<service name="source_validator" mode="manual" />
</services>

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a594826a8c559bfcf3ac778db839e12e18b9e523c0fcf0e578a49bfd20567b99
size 23128459

3
xplr-0.21.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fa6ab87cd9f48e531146e2f04c980f2ec90259b3e7b874bf9e165e613be0789
size 460554

16
xplr-0.21.8.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE1ZyhRxDBfGskcXr5D471JY3DgHcFAmY3zG4ACgkQD471JY3D
gHfptQ/8D5lcmaH8PchDdyNsEw+kD9HyABTMBzPoBNbiSmNzfpIShTmOUT/C5wmL
p6lLYLn4lcn4/8+zPzjLtpKHAiiISBcInvwNVZ6Fyj1jMpKuHMi0y5lbotpFX6Oc
d+XBwGvwHMN7E6msYUp+x5qCFqmUnMKaJId//RChRjTsqYBdd+C78Qcoyd5Ot6HC
YlPhErEezA8p5csTY6n3SRtXFa2FxFAd/8FuOCU0gtRr/M/I/jJ/wyaVV7hkVTo9
4Pjyy8EsO56TLsKehKgSMsXunX2za2al6g+nPCYYx8XoL+qq3d2fM9K+43y665Oo
ZZFjqzeJW6yiLFNBoSoVGWSgueif3a7uuIhy4JZiK8o97RV8LmyOU2SPQUVGRGfo
UOlvITp7kpyY3gyLLUS1xxCK4YbwlfZ+JxOj4n/3uG1WgJFnToTi7ebrffeJBl/L
lpYjIrzQ8f/XPzcwdkut5YlAXb/eBjNUTb4IwCWnjYeiVPEitkHgW+O/VQ+xobHc
MD83UUnvXczFhhjGWTx5MPeVdCLqft3Dnx3wVeCoHjCwi+ip/czRjXdULO8Afnug
vtZAertOFCUJHxsn6AUK1Ms0RpfbsZ/vA4ZH4tirVrOVCVo6l3k0BP1bbTZFthJb
RnFWFpJBe5Sozem0xLyiHdyXq1PpvWKjCmjRU2FvhLK2Q/LICvI=
=F8O3
-----END PGP SIGNATURE-----

3
xplr-0.21.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:345400c2fb7046963b2e0fcca8802b6e523e0fb742d0d893cb7fd42f10072a55
size 460663

16
xplr-0.21.9.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE1ZyhRxDBfGskcXr5D471JY3DgHcFAmZuva4ACgkQD471JY3D
gHcKRRAAlh/xM53QyYKlsDHvQFm6Uu6SVx+l304ULNVdMilkkME7yq8js3WL8HlM
tq0zMwej3zqwlWO2+JTZG5J6tKu51slhDy6UFaqrJx91BlDzn1lytkAUXmIIpWEe
ZE03NqwdA96FUGDXdbvXJOuuGO0WERiHuVFPMXeGNdi7m5ElZOcCnTwVb/BpmkAh
RZDQOGL3oXrUMGliLUZ7f3BBJcDfsIL7n2AAIPIuwq+qd108aOdjv1bpkyrYFEaG
JBnvMb4Az1uKWm0DlUrX6wSOTVsv6+oQi3hTTYlYyTTrbWfnmbY9dsrWBtp1/LVI
yJFC5VpGkqfmV/tQSaKCfK12NKkAq0QGp46lXq2boBYkFhewMvcArt1jZp6EbcOQ
yD+HupmX+MrThPjdyl2xVvm/H0pV33SJDOMVKFHBsUA+c21JVR0VU7Yfef1Hp1Dj
f1wbDSUW4+pYb1yOHaoptHz+nYgw6YA0FuMFAtBy5LOxDf/JpqOgRXKeqo7Z9Trh
s4un09Q6LMZ092d19P1O82rrp/JO0Y4UP/Osk2hA3dGq9tknk27Rn+nQ4Z2hyBH2
QqvBkWbezcz92GH8BCrRmXQo+51X+xxJ+ipdIM1hirsJgY+7Cj4ud3p7oYyd1iuh
ABCa1LNLj/Ekt4VKV9bR1c9zRU+lhgRApQa5GFZHCKPmtxnqk7A=
=2SXh
-----END PGP SIGNATURE-----

216
xplr.changes Normal file
View File

@ -0,0 +1,216 @@
-------------------------------------------------------------------
Thu Jul 11 00:14:10 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
- Remove deprecated cargo_audit -- Now part of cargo_vendor
- Update to version 0.21.9:
* Limit scroll padding dynamically based on screen size
* Fixed crashing on small screen
-------------------------------------------------------------------
Thu May 23 16:14:34 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Update to version 0.21.8:
* Added vim-like scrolling as the default scrolling method. Set
xplr.config.general.paginated_scrolling = true to disable
* Added xplr.config.general.scroll_padding config option to set the padding
in vim-like scrolling
* Fixed some color rendering issues
* Added feature flag so that xplr can be built with system Lua
* Fixed ScrollUpHalf behavior.
* xplr.util.lscolor() won't return nil anymore.
* Arguments passed to the custom dynamic layout Lua function will include
scrolltop field.
* Fixed node_type resolution for directories with . in their name
* Dependency updates.
-------------------------------------------------------------------
Thu Mar 21 22:44:53 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Update to version 0.21.7:
* Added new key bindings c and m in default mode to quickly copy and move files,
without using the selection ops mode.
* Added xplr.util.debug() to see and debug Lua values.
* Fixed ScrollUpHalf operation.
* Dependency and docs updates.
-------------------------------------------------------------------
Thu Feb 15 02:41:41 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- We need to always switch to newer versions so we use `cargo` instead of `rust+cargo`
-------------------------------------------------------------------
Tue Jan 30 06:17:05 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Update to version 0.21.5:
* Added new messages to make it easier to jump between the deep level
directories from history (as an alternative to runtime bookmarking).
- PreviousVisitedDeepBranch
- NextVisitedDeepBranch
* New key bindings ( and ) bound to the new messages.
* Added support for function keys upto F24.
* Added selection count indicator in Input/Logs panel, so that selection
panel can be hidden without losing the indicator.
* Dependency updates.
-------------------------------------------------------------------
Sat Dec 2 10:39:19 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Disable updates. Seems crates are not happy with updating
- Revendor dependencies
-------------------------------------------------------------------
Fri Nov 24 03:58:36 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Update vendored dependencies.
- Remove cargo_config. cargo_config file is now part of vendored tarball.
-------------------------------------------------------------------
Sun Aug 13 13:26:52 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Replace obsoleted `disabled` option with `manual`
-------------------------------------------------------------------
Thu Aug 10 06:58:13 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update vendored dependencies.
- Always update vendored deps in _service.
- Add signature xplr-0.21.3.tar.gz.asc
-------------------------------------------------------------------
Thu Aug 10 06:51:36 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 0.21.3:
* Fixed "Illegal format character q" error seen on non GNU (including macOS and BSD) systems
* Fixed a UI issue causing lower priority styles being fully ignored
* Press f1 to see the global help menu from any mode, without leaving the mode.
* Current mode help menu will be displayed on top of the global help menu.
* Added hook: on_selection_change.
* Documentation improvements.
-------------------------------------------------------------------
Fri Jun 2 09:30:47 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Disable update of vendored deps
-------------------------------------------------------------------
Thu Jun 1 02:43:52 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 0.21.2:
* Added CustomLayout, a new custom panel type to allow nesting other layouts inside a static or dynamic
layout. This will allow switching between different layouts dynamically, without having to switch modes.
* $LS_COLORS will have lesser priority than xplr.config.node_types.*.style.
* Now, there's no default color set in xplr.config.node_types.*.style, so xplr will default to $LS_COLORS.
* xplr -m now uses jf to render and pass messages. This allows for a more flexible template syntax.
* xplr will now ask before delete.
* For copy, move or symlink operations, xplr will ask what to do if a file with the same name exists.
* CLI help menu improvements
* Several fixes and improvements in documentation
-------------------------------------------------------------------
Mon May 15 21:16:32 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 0.21.1:
* SelectAll and ToggleSelectAll (i.e. ctrl-a) in a new directory
will extend, instead of replace, the existing selected paths.
* Fixed a UI bug causing random characters to turn bold.
-------------------------------------------------------------------
Mon Feb 20 01:31:56 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update vendored dependencies.
- Use zstd compression for vendored deps.
-------------------------------------------------------------------
Fri Jan 13 11:12:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to v0.20.2:
* Updated UI to be more light theme and NO_COLOR friendly.
* Fixed creating files inside multiple subdirectories (e.g.
foo/bar/test.txt) (thanks to @soryeigeton for reporting and help
debugging).
* Added new hooks (contribution by @emsquid).
* on_mode_switch
* on_layout_switch
-------------------------------------------------------------------
Sat Dec 17 19:31:23 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to v0.20.1:
* xplr shell will default to $SHELL, using bash as a fallback. oh-my-zsh
users please add TRAPEXIT() { echoti rmkx; } in your .zshrc (see #499
for more info).
* (experiment) xplr will now display full-screen help menu in intermediate
modes. Set xplr.config.modes.builtin[mode].layout = nil to disable. e.g.
xplr.config.modes.builtin.create.layout = nil
* Added new utility functions to work with json and yaml data.
* xplr.util.from_json()
* xplr.util.to_json()
* xplr.util.from_yaml()
* xplr.util.to_yaml()
* Added new utility function xplr.util.version() to get the currently
running binary version (semantic versioning fields).
* Fixed displaying multispace characters (Japanese, Chinese...), thanks to
@Elvyria for contributing to tui-input.
* Fixed a bug causing the creation of a new directory
* Minor UI updates.
-------------------------------------------------------------------
Sat Nov 12 23:20:54 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Verify signatures from public keyring by adding author's public pgp key.
-------------------------------------------------------------------
Wed Nov 9 09:10:56 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Add default configuration in /etc/xplr/
-------------------------------------------------------------------
Thu Nov 3 08:32:34 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Remove marketing blether from descriptions.
-------------------------------------------------------------------
Wed Nov 2 09:02:52 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 0.20.0:
* BREAKING: xplr shell (:!) will default to null (\0) delimited pipes, as
opposed to newline (\n) delimited ones (i.e. will use Call0 instead of
Call).
* Use new messages for safer file path handling (\0 delimited):
- Call0
- CallSilently0
- BashExec0
- BashExecSilently0
* Use new sub-commands for safer message passing:
- -m FORMAT [ARGUMENT]... / --pipe-msg-in FORMAT [ARGUMENT]...
- -M FORMAT [ARGUMENT]... / --print-msg-in FORMAT [ARGUMENT]...
- Where FORMAT is a YAML string that may contain %s, %q and %%
- placeholders and ARGUMENT is the value per placeholder. See init.lua
* Use --vroot to isolate navigation of an xplr session inside a specific
directory. Interaction still requires passing full path, and shell,
lua functions etc still can access paths outside vroot.
* Use the following messages to switch vroot at runtime, or the use key
bindings available in the new builtin mode "vroot" (mapped to : v).
- SetVroot
- UnsetVroot
- ToggleVroot
- ResetVroot
* Use $XPLR_INITIAL_PWD and Lua equivalent to implement workspace like
features without using virtual root. Use keys gi to go to the initial
working directory from anywhere.
* Use the convenient xplr.util utility functions in your Lua function calls.
See xplr.util API docs.
* Improved CLI errors.
* Finished documentation.
* UI updates to handle newlines in path.
-------------------------------------------------------------------
Fri Oct 28 23:20:47 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update vendored dependencies.
- Add _service file for OBS cargo vendor and cargo audit.
-------------------------------------------------------------------
Thu Oct 27 14:53:26 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Initial spec for xplr 0.19.4

61
xplr.keyring Normal file
View File

@ -0,0 +1,61 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGC4hLUBEACkP28hjvD7Bn5S3R/EAnl7F5aoW7CbOFt/HR+5UNtQpV//23sJ
82dvxzD/oIhW+ivAvIHwYfjy8GJadKg4claLAeXbdvECIPqHW3M1U7f9+GPOGXai
QFRuxUhV++3gJNnBd2Qk/eGteFPFzGbNayJMB9pBDCN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iC7Sg5x80AA/32o5Gx2X1t4GF9QwyfA1HuCX5/wBAU0JAFYSW2oLTOWHTM
9By7FiC2EV+yMmjMZHuK54kr1dx6XTVUDCAOTmgaQUVMukC9vfXNrSWl/nKrHawK
SmYekq26woAdW7FnDndM6je09GCnleMvgZnVFw9Cc8q+hj2BnpTs4dqm5uaEmfEZ
Z5UXmC9JAfKTCiCEw5v5zmWbpTiTsb55gEzFeD9Q70gcpgRQbyvkOuK5r/OJKwR1
5zvi7f00d2V43US/VJXeaCy3NZ8=
=YqDG
-----END PGP PUBLIC KEY BLOCK-----

78
xplr.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package xplr
#
# 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/
#
Name: xplr
Version: 0.21.9
Release: 0
Summary: TUI file explorer
License: MIT
Group: Productivity/File utilities
URL: https://github.com/sayanarijit/xplr
Source0: https://github.com/sayanarijit/xplr/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
Source2: https://github.com/sayanarijit/xplr/releases/download/v%{version}/source.tar.gz.asc#/v%{version}.tar.gz.asc#/%{name}-%{version}.tar.gz.asc
Source4: https://arijitbasu.in/gpg.txt#/%{name}.keyring
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: hicolor-icon-theme
BuildRequires: zstd
%description
xplr is a terminal UI based file explorer for command-line utilities
that work with the file-system.
xplr integrates shell commands and GUI file managers and exposes a
scriptable, keyboard-controlled, real-time visual interface.
%prep
%autosetup -a1
sed -i 's/-- version = "0.0.0"/version = "%{version}"/' src/init.lua
# This conflicts with vendored cargo
rm .cargo/config
%build
%{cargo_build} --all-features
%install
%{cargo_install} --all-features
install -Dm644 -T \
%{_builddir}/%{name}-%{version}/assets/desktop/%{name}.desktop \
%{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm644 -T \
%{_builddir}/%{name}-%{version}/src/init.lua \
%{buildroot}%{_sysconfdir}/%{name}/init.lua
for i in 128 16 32 64; do
install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}${i}.png" "%{buildroot}/%{_datadir}/icons/hicolor/${i}-${i}/apps/%{name}.png"
done
install -Dm644 "%{_builddir}/%{name}-%{version}/assets/icon/%{name}.svg" -t "%{buildroot}/%{_datadir}/icons/hicolor/scalable/apps"
%files
%license LICENSE
%doc CONTRIBUTING.md README.md RELEASE.md
%{_bindir}/%{name}
%{_datadir}/icons/*
%{_datadir}/applications/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/init.lua
%changelog