~mil/sxmo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH sxmo-utils] sxmo_files: add "open in st" for current directory

Details
Message ID
<20210603013604.14984-1-anjan@momi.ca>
DKIM signature
pass
Download raw message
Patch: +3 -2
---
 scripts/appscripts/sxmo_files.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/appscripts/sxmo_files.sh b/scripts/appscripts/sxmo_files.sh
index 2536cab..3c71e3d 100755
--- a/scripts/appscripts/sxmo_files.sh
+++ b/scripts/appscripts/sxmo_files.sh
@@ -29,7 +29,7 @@ sort_loop() {
while true; do
	# shellcheck disable=SC2086
	FILES="$(ls -1p $SORT $REVERSE)"
	CHOICES="$(printf %b 'Reload\nClose Menu\nSort By\n../\n*\n'"$FILES")"
	CHOICES="$(printf %b 'Reload\nOpen in st\nClose Menu\nSort By\n../\n*\n'"$FILES")"
	DIR="$(basename "$(pwd)")"
	TRUNCATED="$(printf %.7s "$DIR")"
	if [ "$DIR" != "$TRUNCATED" ]; then
@@ -43,11 +43,12 @@ while true; do
	)" || exit

	echo "$PICKED" | grep "Sort By" && sort_loop
	echo "$PICKED" | grep "Open in st" && cd "$(pwd)" && st
	echo "$PICKED" | grep "Close Menu" && exit 0
	echo "$PICKED" | grep "Reload" && continue
	[ -d "$PICKED" ] && cd "$PICKED" && continue
	echo "$PICKED" | grep -E '^[*]$' && sxmo_open.sh -a ./*
	if [ -f "$PICKED" ]; then
	if [ -f "$PICKED" ] || [ "$PICKED" =  "Open in st" ]; then
		echo "$FILES" | sed -n -e "/$PICKED/,\$p" | tr '\n' '\0' | xargs -0 sxmo_open.sh -a
	fi
done
-- 
2.30.2

[sxmo-utils/patches/.build.yml] build success

builds.sr.ht
Details
Message ID
<CBTLJVUD47HJ.R0NSRAIKEMTG@cirno2>
In-Reply-To
<20210603013604.14984-1-anjan@momi.ca> (view parent)
DKIM signature
missing
Download raw message
sxmo-utils/patches/.build.yml: SUCCESS in 22s

[sxmo_files: add "open in st" for current directory][0] from [Anjandev Momi][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/23140
[1]: mailto:anjan@momi.ca

✓ #518451 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/518451
Details
Message ID
<20210604195152.2lb26r6xamkhg2iy@worker.anaproy.lxd>
In-Reply-To
<20210603013604.14984-1-anjan@momi.ca> (view parent)
DKIM signature
missing
Download raw message
Merged!

--

Maarten van Gompel (proycon)
https://proycon.anaproy.nl
Reply to thread Export thread (mbox)