From cbf4044c70f3692002f7db4eafce7de9c52441c2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 8 May 2026 12:40:37 +0200 Subject: [PATCH] Omarchy menu helpers Get more stuff out of the terminal --- bin/omarchy-menu-file | 45 +++++++++++++++++++++++++++++++++++++++++ bin/omarchy-menu-input | 16 +++++++++++++++ bin/omarchy-menu-select | 38 ++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100755 bin/omarchy-menu-file create mode 100755 bin/omarchy-menu-input create mode 100755 bin/omarchy-menu-select diff --git a/bin/omarchy-menu-file b/bin/omarchy-menu-file new file mode 100755 index 00000000..37048e9e --- /dev/null +++ b/bin/omarchy-menu-file @@ -0,0 +1,45 @@ +#!/bin/bash + +# omarchy:summary=Pick a file with Walker +# omarchy:group=menu +# omarchy:name=file +# omarchy:args=label paths formats [walker args...] +# omarchy:examples=omarchy menu file "Select image" "$HOME/Pictures" "jpg png webp"|omarchy-menu-file "Select media" "$HOME/Pictures:$HOME/Videos" "jpg png mp4 mov" --width 800 + +set -euo pipefail + +if (( $# < 3 )); then + echo "Usage: omarchy-menu-file