Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
374d191
feat(04-01): add --default-index plumbing through the menu select pay…
ButtercupRobrts Sep 15, 2026
56fd72e
fix(04-01): coerce non-finite --default-index values to 0
ButtercupRobrts Sep 15, 2026
8c2e973
feat(05-01): add optional quality tier arg to omarchy-transcode
ButtercupRobrts Sep 15, 2026
71d9080
test(05-01): pin medium-on-picture rejection; record review findings
ButtercupRobrts Sep 15, 2026
f4a7d88
test(06-01): scope the --default-index caller pin to omarchy-transcode
ButtercupRobrts Sep 15, 2026
76db752
feat(06-01): add interactive quality prompt with size estimates
ButtercupRobrts Sep 15, 2026
39000aa
test(07): guard notification-ordering assertion against empty grep re…
ButtercupRobrts Sep 16, 2026
233af99
feat(07-01): report actual output size in the transcode completion no…
ButtercupRobrts Sep 16, 2026
5989248
fix(07): round sub-10 MiB size estimates instead of flooring them
ButtercupRobrts Sep 16, 2026
c3e6b49
fix(07): label sub-1 MiB outputs <1 MB instead of 0 MB
ButtercupRobrts Sep 16, 2026
861a503
fix: guard non-finite width/maxHeight in omarchy-menu-select
ButtercupRobrts Sep 16, 2026
76fc255
fix: validate transcode format/resolution before prompts and start no…
ButtercupRobrts Sep 16, 2026
0886701
refactor: compute tier bitrate once per quality row
ButtercupRobrts Sep 16, 2026
027a042
feat(08-01): add --target size targeting to omarchy-transcode
ButtercupRobrts Sep 17, 2026
a5d9ce0
fix(08-01): make pass-2/2 toast non-fatal under set -e (WR-01)
ButtercupRobrts Sep 17, 2026
1bf589b
feat(09-01): add Custom size… row to mp4 quality menu
ButtercupRobrts Sep 17, 2026
0b78c3e
fix(09-01): format-gate the Custom size sentinel branch (WR-01)
ButtercupRobrts Sep 17, 2026
5b6090f
transcode: report and parse sizes in decimal MB
ButtercupRobrts Sep 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions bin/omarchy-menu-select
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# menu shows the glyph but never returns it. A plain option returns the label
# alone; an option with a subtext returns "<label><TAB><subtext>", so callers
# with same-named rows get the subtext back as the stable key.
#
# Passing "--default-index N" after "--" pre-highlights row N of the menu.

set -euo pipefail

Expand All @@ -25,6 +27,7 @@ shift
options=()
menu_width=""
menu_maxheight=""
menu_defaultindex=""

while (( $# > 0 )); do
if [[ $1 == "--" ]]; then
Expand All @@ -48,6 +51,14 @@ while (( $# > 0 )); do
fi
menu_maxheight="$1"
;;
--default-index)
shift
if (( $# == 0 )); then
echo "omarchy-menu-select: --default-index requires a value" >&2
exit 1
fi
menu_defaultindex="$1"
;;
esac
shift
done
Expand Down Expand Up @@ -81,10 +92,20 @@ payload=$(perl -MEncode=decode -MJSON::PP=encode_json,decode_json -e '
selectionFile => decode("UTF-8", $ARGV[2]),
doneFile => decode("UTF-8", $ARGV[3])
};
$payload->{width} = int($ARGV[4]) if length($ARGV[4] // "");
$payload->{maxHeight} = int($ARGV[5]) if length($ARGV[5] // "");
if (length($ARGV[4] // "")) {
my $w = int($ARGV[4]);
$payload->{width} = ("$w" =~ /^-?[0-9]+$/) ? $w + 0 : 0;
}
if (length($ARGV[5] // "")) {
my $mh = int($ARGV[5]);
$payload->{maxHeight} = ("$mh" =~ /^-?[0-9]+$/) ? $mh + 0 : 0;
}
if (length($ARGV[6] // "")) {
my $di = int($ARGV[6]);
$payload->{defaultIndex} = ("$di" =~ /^-?[0-9]+$/) ? $di + 0 : 0;
}
print encode_json($payload)
' "$prompt" "$options_json" "$selection_file" "$done_file" "$menu_width" "$menu_maxheight")
' "$prompt" "$options_json" "$selection_file" "$done_file" "$menu_width" "$menu_maxheight" "$menu_defaultindex")

omarchy-shell shell summon omarchy.menu "$payload" >/dev/null

Expand Down
Loading