From 05d6e70d2bc3546c88774fa8012c92b61179cb91 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Sun, 26 Apr 2026 19:46:45 +0200 Subject: [PATCH] update dwim-shell-command --- .../README-elpa | 7 + .../dwim-shell-command-autoloads.el | 460 +++++++++--------- .../dwim-shell-command-pkg.el | 6 +- .../dwim-shell-command.el | 4 +- .../dwim-shell-commands.el | 34 +- 5 files changed, 274 insertions(+), 237 deletions(-) create mode 100644 elpa/dwim-shell-command-20260123.1157/README-elpa rename elpa/{dwim-shell-command-20251211.1325 => dwim-shell-command-20260123.1157}/dwim-shell-command-autoloads.el (61%) rename elpa/{dwim-shell-command-20251211.1325 => dwim-shell-command-20260123.1157}/dwim-shell-command-pkg.el (55%) rename elpa/{dwim-shell-command-20251211.1325 => dwim-shell-command-20260123.1157}/dwim-shell-command.el (99%) rename elpa/{dwim-shell-command-20251211.1325 => dwim-shell-command-20260123.1157}/dwim-shell-commands.el (98%) diff --git a/elpa/dwim-shell-command-20260123.1157/README-elpa b/elpa/dwim-shell-command-20260123.1157/README-elpa new file mode 100644 index 00000000..5dd07607 --- /dev/null +++ b/elpa/dwim-shell-command-20260123.1157/README-elpa @@ -0,0 +1,7 @@ +Provides `dwim-shell-command' as an opinionated DWIM alternative to +`shell-command'. + +Use `dwim-shell-command-on-marked-files' to create your own command +line utilities, invoked via M-x. + +See examples at https://github.com/xenodium/dwim-shell-command/blob/main/dwim-shell-commands.el diff --git a/elpa/dwim-shell-command-20251211.1325/dwim-shell-command-autoloads.el b/elpa/dwim-shell-command-20260123.1157/dwim-shell-command-autoloads.el similarity index 61% rename from elpa/dwim-shell-command-20251211.1325/dwim-shell-command-autoloads.el rename to elpa/dwim-shell-command-20260123.1157/dwim-shell-command-autoloads.el index cc9921d6..ec2dfc54 100644 --- a/elpa/dwim-shell-command-20251211.1325/dwim-shell-command-autoloads.el +++ b/elpa/dwim-shell-command-20260123.1157/dwim-shell-command-autoloads.el @@ -11,8 +11,8 @@ ;;; Generated autoloads from dwim-shell-command.el -(autoload 'dwim-shell-command "dwim-shell-command" "\ -Execute DWIM shell command asynchronously using noweb templates. +(autoload 'dwim-shell-command "dwim-shell-command" +"Execute DWIM shell command asynchronously using noweb templates. Which files @@ -90,208 +90,212 @@ Prefix ;;; Generated autoloads from dwim-shell-commands.el -(autoload 'dwim-shell-commands-audio-to-mp3 "dwim-shell-commands" "\ -Convert all marked audio to mp3(s)." t) -(autoload 'dwim-shell-extract-har-content "dwim-shell-commands" "\ -Extract all har content fields to files. +(autoload 'dwim-shell-commands-audio-to-mp3 "dwim-shell-commands" +"Convert all marked audio to mp3(s)." t) +(autoload 'dwim-shell-extract-har-content "dwim-shell-commands" +"Extract all har content fields to files. (fn PREFIX)" t) -(autoload 'dwim-shell-extract-har-urls "dwim-shell-commands" "\ -Get all request URLs." t) -(autoload 'dwim-shell-view-open-ports-per-app "dwim-shell-commands" "\ -View open ports per app" t) -(autoload 'dwim-shell-commands-open-clipboard-url "dwim-shell-commands" "\ -Open clipboard URL. Offer to stream if possible." t) -(autoload 'dwim-shell-commands-stream-clipboard-url "dwim-shell-commands" "\ -Stream clipboard URL using mpv." t) -(autoload 'dwim-shell-commands-download-clipboard-stream-url "dwim-shell-commands" "\ -Download clipboard URL." t) -(autoload 'dwim-shell-commands-image-clear-exif-metadata "dwim-shell-commands" "\ -Clear EXIF metadata in image(s)." t) -(autoload 'dwim-shell-commands-image-scan-code "dwim-shell-commands" "\ -Scan any code (ie. qr, bar, etc) from image(s)." t) -(autoload 'dwim-shell-commands-image-exif-metadata "dwim-shell-commands" "\ -View EXIF metadata in image(s)." t) -(autoload 'dwim-shell-commands-tesseract-ocr-text-from-image "dwim-shell-commands" "\ -Extract text from image via tesseract." t) -(autoload 'dwim-shell-commands-image-view-location-in-openstreetmap "dwim-shell-commands" "\ -Open image(s) location in map/browser." t) -(autoload 'dwim-shell-commands-image-reverse-geocode-location "dwim-shell-commands" "\ -Reverse geocode image(s) location." t) -(autoload 'dwim-shell-commands-image-horizontal-flip "dwim-shell-commands" "\ -Horizontally flip image(s)." t) -(autoload 'dwim-shell-commands-image-vertical-flip "dwim-shell-commands" "\ -Horizontally flip image(s)." t) -(autoload 'dwim-shell-commands-image-to-jpg "dwim-shell-commands" "\ -Convert all marked images to jpg(s)." t) -(autoload 'dwim-shell-commands-image-to-png "dwim-shell-commands" "\ -Convert all marked images to png(s)." t) -(autoload 'dwim-shell-commands-image-to-webp "dwim-shell-commands" "\ -Convert all marked images to webp(s)." t) -(autoload 'dwim-shell-commands-svg-to-png "dwim-shell-commands" "\ -Convert all marked svg(s) to png(s)." t) -(autoload 'dwim-shell-commands-svg-to-favicons "dwim-shell-commands" "\ -Convert svg to common favicons." t) -(autoload 'dwim-shell-commands-make-transparent-png "dwim-shell-commands" "\ -Create a transparent png." t) -(autoload 'dwim-shell-commands-join-as-pdf "dwim-shell-commands" "\ -Join all marked images as a single pdf." t) -(autoload 'dwim-shell-commands-keep-pdf-page "dwim-shell-commands" "\ -Keep a page from pdf." t) -(autoload 'dwim-shell-commands-join-images-horizontally "dwim-shell-commands" "\ -Join all marked images horizontally as a single image." t) -(autoload 'dwim-shell-commands-join-images-vertically "dwim-shell-commands" "\ -Join all marked images vertically as a single image." t) -(autoload 'dwim-shell-commands-image-to-grayscale "dwim-shell-commands" "\ -Convert all marked images to grayscale." t) -(autoload 'dwim-shell-commands-reorient-image "dwim-shell-commands" "\ -Reorient images." t) -(autoload 'dwim-shell-commands-gif-to-video "dwim-shell-commands" "\ -Convert all marked gif(s) to video(s)." t) -(autoload 'dwim-shell-commands-extract-first-video-frame "dwim-shell-commands" "\ -Extract first frame from video(s)." t) -(autoload 'dwim-shell-commands-set-video-framerate "dwim-shell-commands" "\ -Set framerate for marked video(s)." t) -(autoload 'dwim-shell-commands-macos-empty-trash "dwim-shell-commands" "\ -Empty macOS trash." t) -(autoload 'dwim-shell-commands-macos-ocr-text-from-desktop-region "dwim-shell-commands" "\ -Select a macOS desktop area to OCR and copy recognized text to kill ring." t) -(autoload 'dwim-shell-commands-macos-ocr-text-from-image "dwim-shell-commands" "\ -OCR file and copy recognized text to kill ring." t) -(autoload 'dwim-shell-commands-macos-convert-to-mp4 "dwim-shell-commands" "\ -Convert to mov to mp4" t) -(autoload 'dwim-shell-commands-video-to-gif "dwim-shell-commands" "\ -Convert all marked videos to gif(s)." t) -(autoload 'dwim-shell-commands-video-to-mov "dwim-shell-commands" "\ -Convert all marked videos to mov(s)." t) -(autoload 'dwim-shell-commands-video-to-webp "dwim-shell-commands" "\ -Convert all marked videos to webp(s)." t) -(autoload 'dwim-shell-commands-webp-to-video "dwim-shell-commands" "\ -Convert all marked webp(s) to video(s)." t) -(autoload 'dwim-shell-commands-webp-to-gif "dwim-shell-commands" "\ -Convert all marked webp(s) to gif(s)." t) -(autoload 'dwim-shell-commands-video-to-hevc-mkv "dwim-shell-commands" "\ -Convert all marked videos to hevc mkv." t) -(autoload 'dwim-shell-commands-video-to-optimized-gif "dwim-shell-commands" "\ -Convert all marked videos to optimized gif(s)." t) -(autoload 'dwim-shell-commands-unzip "dwim-shell-commands" "\ -Unzip all marked archives (of any kind) using `atool'." t) -(autoload 'dwim-shell-commands-zip "dwim-shell-commands" "\ -Zip all marked files into archive.zip." t) -(autoload 'dwim-shell-commands-zip-password-protect "dwim-shell-commands" "\ -Protect/encrypt zip file(s) with password." t) -(autoload 'dwim-shell-commands-optimize-gif "dwim-shell-commands" "\ -Convert all marked videos to optimized gif(s)." t) -(autoload 'dwim-shell-commands-speed-up-gif "dwim-shell-commands" "\ -Speeds up gif(s)." t) -(autoload 'dwim-shell-commands-image-apply-ios-round-corners "dwim-shell-commands" "\ -Apply iOS round corners to image(s)." t) -(autoload 'dwim-shell-commands-clip-round-rect-gif "dwim-shell-commands" "\ -Clip gif(s) with round rectangle." t) -(autoload 'dwim-shell-commands-resize-gif "dwim-shell-commands" "\ -Resize marked gif(s)." t) -(autoload 'dwim-shell-commands-epub-to-org "dwim-shell-commands" "\ -Convert epub(s) to org." t) -(autoload 'dwim-shell-commands-docx-to-pdf "dwim-shell-commands" "\ -Convert docx(s) to pdf (via latex)." t) -(autoload 'dwim-shell-commands-kill-process "dwim-shell-commands" "\ -Select and kill process." t) -(autoload 'dwim-shell-commands-macos-add-to-photos "dwim-shell-commands" "\ -Add to Photos.app." t) -(autoload 'dwim-shell-commands-macos-toggle-bluetooth-device-connection "dwim-shell-commands" "\ -Toggle Bluetooth device connection." t) -(autoload 'dwim-shell-commands-macos-bin-plist-to-xml "dwim-shell-commands" "\ -Convert binary plist to xml." t) -(autoload 'dwim-shell-commands-macos-toggle-dark-mode "dwim-shell-commands" "\ -Toggle macOS dark mode." t) -(autoload 'dwim-shell-commands-macos-toggle-menu-bar-autohide "dwim-shell-commands" "\ -Toggle macOS dark mode." t) -(autoload 'dwim-shell-commands-pdf-to-txt "dwim-shell-commands" "\ -Convert pdf to txt." t) -(autoload 'dwim-shell-commands-resize-image-by-factor "dwim-shell-commands" "\ -Resize marked image(s) by factor." t) -(autoload 'dwim-shell-commands-resize-image-in-pixels "dwim-shell-commands" "\ -Resize marked image(s) in pixels." t) -(autoload 'dwim-shell-commands-pdf-password-protect "dwim-shell-commands" "\ -Add a password to pdf(s)." t) -(autoload 'dwim-shell-commands-pdf-password-unprotect "dwim-shell-commands" "\ -Remove a password from pdf(s)." t) -(autoload 'dwim-shell-commands-video-to-mp3 "dwim-shell-commands" "\ -Convert video(s) to mp3." t) -(autoload 'dwim-shell-commands-video-to-mp3-with-artwork "dwim-shell-commands" "\ -Convert video(s) to mp3 (keep frame as artwork)." t) -(autoload 'dwim-shell-commands-ndjson-to-org "dwim-shell-commands" "\ -Convert ndjson file to org." t) -(autoload 'dwim-shell-commands-set-media-artwork-image-metadata "dwim-shell-commands" "\ -Set image artwork metadata for media file(s)." t) -(autoload 'dwim-shell-commands-video-trim-beginning "dwim-shell-commands" "\ -Drop audio from all marked videos." t) -(autoload 'dwim-shell-commands-video-trim-end "dwim-shell-commands" "\ -Drop audio from all marked videos." t) -(autoload 'dwim-shell-commands-video-to-thumbnail "dwim-shell-commands" "\ -Generate a thumbnail for marked video(s)." t) -(autoload 'dwim-shell-commands-drop-video-audio "dwim-shell-commands" "\ -Drop audio from all marked videos." t) -(autoload 'dwim-shell-commands-ping-google "dwim-shell-commands" "\ -Ping google.com." t) -(autoload 'dwim-shell-commands-speed-up-video "dwim-shell-commands" "\ -Speed up video(s)." t) -(autoload 'dwim-shell-commands-speed-up-video-fragment "dwim-shell-commands" "\ -Speed up fragment in video(s)." t) -(autoload 'dwim-shell-commands-resize-video "dwim-shell-commands" "\ -Resize marked images." t) -(autoload 'dwim-shell-commands-clipboard-to-qr "dwim-shell-commands" "\ -Generate a QR code from clipboard." t) -(autoload 'dwim-shell-commands-sha-256-hash-file-at-clipboard-url "dwim-shell-commands" "\ -Download file at clipboard URL and generate SHA-256 hash." t) -(autoload 'dwim-shell-commands-view-sqlite-schema-diagram "dwim-shell-commands" "\ -View sqlite schema diagram." t) -(autoload 'dwim-shell-commands-open-externally "dwim-shell-commands" "\ -Open file(s) externally." t) -(autoload 'dwim-shell-commands-macos-caffeinate "dwim-shell-commands" "\ -Invoke caffeinate to prevent mac from sleeping." t) -(autoload 'dwim-shell-commands-macos-make-finder-alias "dwim-shell-commands" "\ -Make macOS Finder alias." t) -(autoload 'dwim-shell-commands-macos-version-and-hardware-overview-info "dwim-shell-commands" "\ -View macOS version and hardware overview info." t) -(autoload 'dwim-shell-commands-macos-reveal-in-finder "dwim-shell-commands" "\ -Reveal selected files in macOS Finder." t) -(autoload 'dwim-shell-commands-macos-share "dwim-shell-commands" "\ -Share selected files from macOS." t) -(autoload 'dwim-shell-commands-macos-toggle-display-rotation "dwim-shell-commands" "\ -Rotate display." t) -(autoload 'dwim-shell-commands-make-swift-package-library "dwim-shell-commands" "\ -Create a swift package library" t) -(autoload 'dwim-shell-commands-make-swift-package-executable "dwim-shell-commands" "\ -Create a swift package executable" t) -(autoload 'dwim-shell-commands-macos-set-default-app "dwim-shell-commands" "\ -Set default app for file(s)." t) -(autoload 'dwim-shell-commands-macos-open-with "dwim-shell-commands" "\ -Open file(s) with specific external app." t) -(autoload 'dwim-shell-commands-macos-open-with-firefox "dwim-shell-commands" "\ -Open file(s) in Firefox." t) -(autoload 'dwim-shell-commands-macos-open-with-safari "dwim-shell-commands" "\ -Open file(s) in Safari." t) -(autoload 'dwim-shell-commands-macos-start-recording-window "dwim-shell-commands" "\ -Select and start recording a macOS window." t) -(autoload 'dwim-shell-commands-macos-end-recording-window "dwim-shell-commands" "\ -Stop recording a macOS window." t) -(autoload 'dwim-shell-commands-macos-abort-recording-window "dwim-shell-commands" "\ -Stop recording a macOS window." t) -(autoload 'dwim-shell-commands-macos-screenshot-window "dwim-shell-commands" "\ -Select and screenshot macOS window." t) -(autoload 'dwim-shell-commands-files-combined-size "dwim-shell-commands" "\ -Get files combined file size." t) -(autoload 'dwim-shell-commands-image-to-icns "dwim-shell-commands" "\ -Convert png to icns icon." t) -(autoload 'dwim-shell-commands-image-add-drop-shadow "dwim-shell-commands" "\ -Add a drop shadow." t) -(autoload 'dwim-shell-commands-image-trim-borders "dwim-shell-commands" "\ -Trim image(s) border (useful for video screenshots)." t) -(autoload 'dwim-shell-commands-http-serve-dir "dwim-shell-commands" "\ -HTTP serve current directory." t) -(autoload 'dwim-shell-commands-git-clone-clipboard-url "dwim-shell-commands" "\ -Clone git URL in clipboard to a directory. +(autoload 'dwim-shell-extract-har-urls "dwim-shell-commands" +"Get all request URLs." t) +(autoload 'dwim-shell-view-open-ports-per-app "dwim-shell-commands" +"View open ports per app" t) +(autoload 'dwim-shell-commands-open-clipboard-url "dwim-shell-commands" +"Open clipboard URL. Offer to stream if possible." t) +(autoload 'dwim-shell-commands-stream-clipboard-url "dwim-shell-commands" +"Stream clipboard URL using mpv." t) +(autoload 'dwim-shell-commands-download-clipboard-stream-url "dwim-shell-commands" +"Download clipboard URL." t) +(autoload 'dwim-shell-commands-image-clear-exif-metadata "dwim-shell-commands" +"Clear EXIF metadata in image(s)." t) +(autoload 'dwim-shell-commands-image-scan-code "dwim-shell-commands" +"Scan any code (ie. qr, bar, etc) from image(s)." t) +(autoload 'dwim-shell-commands-image-exif-metadata "dwim-shell-commands" +"View EXIF metadata in image(s)." t) +(autoload 'dwim-shell-commands-tesseract-ocr-text-from-image "dwim-shell-commands" +"Extract text from image via tesseract." t) +(autoload 'dwim-shell-commands-image-view-location-in-openstreetmap "dwim-shell-commands" +"Open image(s) location in map/browser." t) +(autoload 'dwim-shell-commands-image-reverse-geocode-location "dwim-shell-commands" +"Reverse geocode image(s) location." t) +(autoload 'dwim-shell-commands-image-horizontal-flip "dwim-shell-commands" +"Horizontally flip image(s)." t) +(autoload 'dwim-shell-commands-image-vertical-flip "dwim-shell-commands" +"Horizontally flip image(s)." t) +(autoload 'dwim-shell-commands-image-to-jpg "dwim-shell-commands" +"Convert all marked images to jpg(s)." t) +(autoload 'dwim-shell-commands-image-to-png "dwim-shell-commands" +"Convert all marked images to png(s)." t) +(autoload 'dwim-shell-commands-image-to-webp "dwim-shell-commands" +"Convert all marked images to webp(s)." t) +(autoload 'dwim-shell-commands-svg-to-png "dwim-shell-commands" +"Convert all marked svg(s) to png(s)." t) +(autoload 'dwim-shell-commands-svg-to-favicons "dwim-shell-commands" +"Convert svg to common favicons." t) +(autoload 'dwim-shell-commands-make-transparent-png "dwim-shell-commands" +"Create a transparent png." t) +(autoload 'dwim-shell-commands-join-as-pdf "dwim-shell-commands" +"Join all marked images as a single pdf." t) +(autoload 'dwim-shell-commands-kdeconnect-share "dwim-shell-commands" +"Send file(s) to a device through KDE Connect." t) +(autoload 'dwim-shell-commands-keep-pdf-page "dwim-shell-commands" +"Keep a page from pdf." t) +(autoload 'dwim-shell-commands-join-images-horizontally "dwim-shell-commands" +"Join all marked images horizontally as a single image." t) +(autoload 'dwim-shell-commands-join-images-vertically "dwim-shell-commands" +"Join all marked images vertically as a single image." t) +(autoload 'dwim-shell-commands-image-to-grayscale "dwim-shell-commands" +"Convert all marked images to grayscale." t) +(autoload 'dwim-shell-commands-reorient-image "dwim-shell-commands" +"Reorient images." t) +(autoload 'dwim-shell-commands-gif-to-video "dwim-shell-commands" +"Convert all marked gif(s) to video(s)." t) +(autoload 'dwim-shell-commands-extract-first-video-frame "dwim-shell-commands" +"Extract first frame from video(s)." t) +(autoload 'dwim-shell-commands-set-video-framerate "dwim-shell-commands" +"Set framerate for marked video(s)." t) +(autoload 'dwim-shell-commands-macos-empty-trash "dwim-shell-commands" +"Empty macOS trash." t) +(autoload 'dwim-shell-commands-macos-ocr-text-from-desktop-region "dwim-shell-commands" +"Select a macOS desktop area to OCR and copy recognized text to kill ring." t) +(autoload 'dwim-shell-commands-macos-ocr-text-from-image "dwim-shell-commands" +"OCR file and copy recognized text to kill ring." t) +(autoload 'dwim-shell-commands-macos-convert-to-mp4 "dwim-shell-commands" +"Convert to mov to mp4" t) +(autoload 'dwim-shell-commands-video-to-gif "dwim-shell-commands" +"Convert all marked videos to gif(s)." t) +(autoload 'dwim-shell-commands-video-to-mov "dwim-shell-commands" +"Convert all marked videos to mov(s)." t) +(autoload 'dwim-shell-commands-video-to-webp "dwim-shell-commands" +"Convert all marked videos to webp(s)." t) +(autoload 'dwim-shell-commands-webp-to-video "dwim-shell-commands" +"Convert all marked webp(s) to video(s)." t) +(autoload 'dwim-shell-commands-webp-to-gif "dwim-shell-commands" +"Convert all marked webp(s) to gif(s)." t) +(autoload 'dwim-shell-commands-video-to-hevc-mkv "dwim-shell-commands" +"Convert all marked videos to hevc mkv." t) +(autoload 'dwim-shell-commands-video-to-optimized-gif "dwim-shell-commands" +"Convert all marked videos to optimized gif(s)." t) +(autoload 'dwim-shell-commands-unzip "dwim-shell-commands" +"Unzip all marked archives (of any kind) using `atool'." t) +(autoload 'dwim-shell-commands-zip "dwim-shell-commands" +"Zip all marked files into archive.zip." t) +(autoload 'dwim-shell-commands-zip-password-protect "dwim-shell-commands" +"Protect/encrypt zip file(s) with password." t) +(autoload 'dwim-shell-commands-optimize-gif "dwim-shell-commands" +"Convert all marked videos to optimized gif(s)." t) +(autoload 'dwim-shell-commands-speed-up-gif "dwim-shell-commands" +"Speeds up gif(s)." t) +(autoload 'dwim-shell-commands-image-apply-ios-round-corners "dwim-shell-commands" +"Apply iOS round corners to image(s)." t) +(autoload 'dwim-shell-commands-clip-round-rect-gif "dwim-shell-commands" +"Clip gif(s) with round rectangle." t) +(autoload 'dwim-shell-commands-resize-gif "dwim-shell-commands" +"Resize marked gif(s)." t) +(autoload 'dwim-shell-commands-epub-to-org "dwim-shell-commands" +"Convert epub(s) to org." t) +(autoload 'dwim-shell-commands-docx-to-pdf "dwim-shell-commands" +"Convert docx(s) to pdf (via latex)." t) +(autoload 'dwim-shell-commands-kill-process "dwim-shell-commands" +"Select and kill process." t) +(autoload 'dwim-shell-commands-macos-add-to-photos "dwim-shell-commands" +"Add to Photos.app." t) +(autoload 'dwim-shell-commands-macos-toggle-bluetooth-device-connection "dwim-shell-commands" +"Toggle Bluetooth device connection." t) +(autoload 'dwim-shell-commands-macos-bin-plist-to-xml "dwim-shell-commands" +"Convert binary plist to xml." t) +(autoload 'dwim-shell-commands-macos-toggle-dark-mode "dwim-shell-commands" +"Toggle macOS dark mode." t) +(autoload 'dwim-shell-commands-macos-toggle-menu-bar-autohide "dwim-shell-commands" +"Toggle macOS dark mode." t) +(autoload 'dwim-shell-commands-pdf-to-txt "dwim-shell-commands" +"Convert pdf to txt." t) +(autoload 'dwim-shell-commands-resize-image-by-factor "dwim-shell-commands" +"Resize marked image(s) by factor." t) +(autoload 'dwim-shell-commands-resize-image-in-pixels "dwim-shell-commands" +"Resize marked image(s) in pixels." t) +(autoload 'dwim-shell-commands-pdf-password-protect "dwim-shell-commands" +"Add a password to pdf(s)." t) +(autoload 'dwim-shell-commands-pdf-password-unprotect "dwim-shell-commands" +"Remove a password from pdf(s)." t) +(autoload 'dwim-shell-commands-video-to-mp3 "dwim-shell-commands" +"Convert video(s) to mp3." t) +(autoload 'dwim-shell-commands-video-to-mp3-with-artwork "dwim-shell-commands" +"Convert video(s) to mp3 (keep frame as artwork)." t) +(autoload 'dwim-shell-commands-ndjson-to-org "dwim-shell-commands" +"Convert ndjson file to org." t) +(autoload 'dwim-shell-commands-set-media-artwork-image-metadata "dwim-shell-commands" +"Set image artwork metadata for media file(s)." t) +(autoload 'dwim-shell-commands-video-trim-beginning "dwim-shell-commands" +"Drop audio from all marked videos." t) +(autoload 'dwim-shell-commands-video-trim-end "dwim-shell-commands" +"Drop audio from all marked videos." t) +(autoload 'dwim-shell-commands-video-to-thumbnail "dwim-shell-commands" +"Generate a thumbnail for marked video(s)." t) +(autoload 'dwim-shell-commands-drop-video-audio "dwim-shell-commands" +"Drop audio from all marked videos." t) +(autoload 'dwim-shell-commands-ping-google "dwim-shell-commands" +"Ping google.com." t) +(autoload 'dwim-shell-commands-speed-up-video "dwim-shell-commands" +"Speed up video(s)." t) +(autoload 'dwim-shell-commands-speed-up-video-fragment "dwim-shell-commands" +"Speed up fragment in video(s)." t) +(autoload 'dwim-shell-commands-resize-video "dwim-shell-commands" +"Resize marked images." t) +(autoload 'dwim-shell-commands-clipboard-to-qr "dwim-shell-commands" +"Generate a QR code from clipboard." t) +(autoload 'dwim-shell-commands-sha-256-hash-file-at-clipboard-url "dwim-shell-commands" +"Download file at clipboard URL and generate SHA-256 hash." t) +(autoload 'dwim-shell-commands-view-sqlite-schema-diagram "dwim-shell-commands" +"View sqlite schema diagram." t) +(autoload 'dwim-shell-commands-open-externally "dwim-shell-commands" +"Open file(s) externally." t) +(autoload 'dwim-shell-commands-macos-caffeinate "dwim-shell-commands" +"Invoke caffeinate to prevent mac from sleeping." t) +(autoload 'dwim-shell-commands-macos-make-finder-alias "dwim-shell-commands" +"Make macOS Finder alias." t) +(autoload 'dwim-shell-commands-macos-version-and-hardware-overview-info "dwim-shell-commands" +"View macOS version and hardware overview info." t) +(autoload 'dwim-shell-commands-macos-reveal-in-finder "dwim-shell-commands" +"Reveal selected files in macOS Finder." t) +(autoload 'dwim-shell-commands-macos-share "dwim-shell-commands" +"Share selected files from macOS." t) +(autoload 'dwim-shell-commands-macos-toggle-display-rotation "dwim-shell-commands" +"Rotate display." t) +(autoload 'dwim-shell-commands-make-swift-package-library "dwim-shell-commands" +"Create a swift package library" t) +(autoload 'dwim-shell-commands-make-swift-package-executable "dwim-shell-commands" +"Create a swift package executable" t) +(autoload 'dwim-shell-commands-macos-set-default-app "dwim-shell-commands" +"Set default app for file(s)." t) +(autoload 'dwim-shell-commands-macos-open-app "dwim-shell-commands" +"Open a macOS app." t) +(autoload 'dwim-shell-commands-macos-open-with "dwim-shell-commands" +"Open file(s) with specific external app." t) +(autoload 'dwim-shell-commands-macos-open-with-firefox "dwim-shell-commands" +"Open file(s) in Firefox." t) +(autoload 'dwim-shell-commands-macos-open-with-safari "dwim-shell-commands" +"Open file(s) in Safari." t) +(autoload 'dwim-shell-commands-macos-start-recording-window "dwim-shell-commands" +"Select and start recording a macOS window." t) +(autoload 'dwim-shell-commands-macos-end-recording-window "dwim-shell-commands" +"Stop recording a macOS window." t) +(autoload 'dwim-shell-commands-macos-abort-recording-window "dwim-shell-commands" +"Stop recording a macOS window." t) +(autoload 'dwim-shell-commands-macos-screenshot-window "dwim-shell-commands" +"Select and screenshot macOS window." t) +(autoload 'dwim-shell-commands-files-combined-size "dwim-shell-commands" +"Get files combined file size." t) +(autoload 'dwim-shell-commands-image-to-icns "dwim-shell-commands" +"Convert png to icns icon." t) +(autoload 'dwim-shell-commands-image-add-drop-shadow "dwim-shell-commands" +"Add a drop shadow." t) +(autoload 'dwim-shell-commands-image-trim-borders "dwim-shell-commands" +"Trim image(s) border (useful for video screenshots)." t) +(autoload 'dwim-shell-commands-http-serve-dir "dwim-shell-commands" +"HTTP serve current directory." t) +(autoload 'dwim-shell-commands-git-clone-clipboard-url "dwim-shell-commands" +"Clone git URL in clipboard to a directory. With C-u ARG, prompt for directory from `dwim-shell-commands-git-clone-dirs'. @@ -301,42 +305,42 @@ Without prefix, use the first directory in `dwim-shell-commands-git-clone-dirs'. (fn &optional ARG)" t) -(autoload 'dwim-shell-commands-pass-git-pull "dwim-shell-commands" "\ -Pass git pull." t) -(autoload 'dwim-shell-commands-git-list-untracked-files "dwim-shell-commands" "\ -List untracked git files in `default-directory'." t) -(autoload 'dwim-shell-commands-git-delete-untracked-files "dwim-shell-commands" "\ -Delete untracked git files in `default-directory'." t) -(autoload 'dwim-shell-commands-external-ip "dwim-shell-commands" "\ -Copy external IP to kill ring." t) -(autoload 'dwim-shell-commands-macos-install-iphone-device-ipa "dwim-shell-commands" "\ -Install iPhone device .ipa. +(autoload 'dwim-shell-commands-pass-git-pull "dwim-shell-commands" +"Pass git pull." t) +(autoload 'dwim-shell-commands-git-list-untracked-files "dwim-shell-commands" +"List untracked git files in `default-directory'." t) +(autoload 'dwim-shell-commands-git-delete-untracked-files "dwim-shell-commands" +"Delete untracked git files in `default-directory'." t) +(autoload 'dwim-shell-commands-external-ip "dwim-shell-commands" +"Copy external IP to kill ring." t) +(autoload 'dwim-shell-commands-macos-install-iphone-device-ipa "dwim-shell-commands" +"Install iPhone device .ipa. Needs ideviceinstaller and libmobiledevice installed." t) -(autoload 'dwim-shell-commands-copy-to-downloads "dwim-shell-commands" "\ -Copy file to ~/Downloads." t) -(autoload 'dwim-shell-commands-duplicate "dwim-shell-commands" "\ -Duplicate file. +(autoload 'dwim-shell-commands-copy-to-downloads "dwim-shell-commands" +"Copy file to ~/Downloads." t) +(autoload 'dwim-shell-commands-duplicate "dwim-shell-commands" +"Duplicate file. With prefix, duplicate it n TIMES. (fn TIMES)" t) -(autoload 'dwim-shell-commands-rename-all "dwim-shell-commands" "\ -Rename all marked file(s)." t) -(autoload 'dwim-shell-commands-move-to-downloads "dwim-shell-commands" "\ -Move file to ~/Downloads." t) -(autoload 'dwim-shell-commands-copy-to-desktop "dwim-shell-commands" "\ -Copy file to ~/Desktop." t) -(autoload 'dwim-shell-commands-move-to-desktop "dwim-shell-commands" "\ -Move file to ~/Desktop." t) -(autoload 'dwim-shell-commands-kill-gpg-agent "dwim-shell-commands" "\ -Kill (thus restart) gpg agent. +(autoload 'dwim-shell-commands-rename-all "dwim-shell-commands" +"Rename all marked file(s)." t) +(autoload 'dwim-shell-commands-move-to-downloads "dwim-shell-commands" +"Move file to ~/Downloads." t) +(autoload 'dwim-shell-commands-copy-to-desktop "dwim-shell-commands" +"Copy file to ~/Desktop." t) +(autoload 'dwim-shell-commands-move-to-desktop "dwim-shell-commands" +"Move file to ~/Desktop." t) +(autoload 'dwim-shell-commands-kill-gpg-agent "dwim-shell-commands" +"Kill (thus restart) gpg agent. Useful for when you get this error: gpg: public key decryption failed: No pinentry gpg: decryption failed: No pinentry" t) -(autoload 'dwim-shell-commands-upload-to-0x0 "dwim-shell-commands" "\ -Upload the marked files to 0x0.st" t) +(autoload 'dwim-shell-commands-upload-to-0x0 "dwim-shell-commands" +"Upload the marked files to 0x0.st" t) (register-definition-prefixes "dwim-shell-commands" '("dwim-shell-commands-")) ;;; End of scraped data diff --git a/elpa/dwim-shell-command-20251211.1325/dwim-shell-command-pkg.el b/elpa/dwim-shell-command-20260123.1157/dwim-shell-command-pkg.el similarity index 55% rename from elpa/dwim-shell-command-20251211.1325/dwim-shell-command-pkg.el rename to elpa/dwim-shell-command-20260123.1157/dwim-shell-command-pkg.el index 6521d43e..e112fad7 100644 --- a/elpa/dwim-shell-command-20251211.1325/dwim-shell-command-pkg.el +++ b/elpa/dwim-shell-command-20260123.1157/dwim-shell-command-pkg.el @@ -1,7 +1,7 @@ ;; -*- no-byte-compile: t; lexical-binding: nil -*- -(define-package "dwim-shell-command" "20251211.1325" +(define-package "dwim-shell-command" "20260123.1157" "Shell commands with DWIM behaviour." '((emacs "28.1")) :url "https://github.com/xenodium/dwim-shell-command" - :commit "35ca64d529987578dbbdf3f07d34310ee727b4a5" - :revdesc "35ca64d52998") + :commit "a408b7826bb4535e7a14e16848ad41820d63411f" + :revdesc "a408b7826bb4") diff --git a/elpa/dwim-shell-command-20251211.1325/dwim-shell-command.el b/elpa/dwim-shell-command-20260123.1157/dwim-shell-command.el similarity index 99% rename from elpa/dwim-shell-command-20251211.1325/dwim-shell-command.el rename to elpa/dwim-shell-command-20260123.1157/dwim-shell-command.el index b4ed1f34..f5cbdfa9 100644 --- a/elpa/dwim-shell-command-20251211.1325/dwim-shell-command.el +++ b/elpa/dwim-shell-command-20260123.1157/dwim-shell-command.el @@ -5,8 +5,8 @@ ;; Author: Alvaro Ramirez ;; Package-Requires: ((emacs "28.1")) ;; URL: https://github.com/xenodium/dwim-shell-command -;; Package-Version: 20251211.1325 -;; Package-Revision: 35ca64d52998 +;; Package-Version: 20260123.1157 +;; Package-Revision: a408b7826bb4 ;; This package is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by diff --git a/elpa/dwim-shell-command-20251211.1325/dwim-shell-commands.el b/elpa/dwim-shell-command-20260123.1157/dwim-shell-commands.el similarity index 98% rename from elpa/dwim-shell-command-20251211.1325/dwim-shell-commands.el rename to elpa/dwim-shell-command-20260123.1157/dwim-shell-commands.el index 06f78261..af0ef70e 100644 --- a/elpa/dwim-shell-command-20251211.1325/dwim-shell-commands.el +++ b/elpa/dwim-shell-command-20260123.1157/dwim-shell-commands.el @@ -155,8 +155,8 @@ Optional argument ARGS as per `browse-url-default-browser'" (cl-assert (string-match-p "^http[s]?://" (current-kill 0)) nil "Not a URL") (dwim-shell-command-on-marked-files "Downloading" - "youtube-dl --newline -o \"~/Downloads/%(title)s.%(ext)s\" \"<>\"" - :utils "youtube-dl" + "yt-dlp --newline -o \"~/Downloads/%(title)s.%(ext)s\" \"<>\"" + :utils "yt-dlp" :no-progress t :error-autofocus t :monitor-directory "~/Downloads" @@ -357,6 +357,17 @@ Optional argument ARGS as per `browse-url-default-browser'" :default "joined.pdf")) :utils "convert")) +;;;###autoload +(defun dwim-shell-commands-kdeconnect-share () + "Send file(s) to a device through KDE Connect." + (interactive) + (let* ((devices (process-lines "kdeconnect-cli" "--list-available" "--name-only")) + (device (completing-read "Device: " devices nil t))) + (dwim-shell-command-on-marked-files + "Send file(s) to DEVICE through KDE Connect." + (format "kdeconnect-cli -n '%s' --share '<>'" device) + :utils "kdeconnect-cli"))) + ;;;###autoload (defun dwim-shell-commands-keep-pdf-page () "Keep a page from pdf." @@ -1244,10 +1255,10 @@ echo \"<>.svg\" "Share selected files from macOS." (interactive) (let* ((services (dwim-shell-commands--macos-sharing-services)) - (service-name (completing-read "Share via: " services)) + (service-name (completing-read "macOS share via: " services)) (selection (seq-position services service-name #'string-equal))) (dwim-shell-command-on-marked-files - "Share" + "macOS Share" (format "import AppKit @@ -1353,6 +1364,21 @@ echo \"<>.svg\" :no-progress t :utils "duti"))) +;;;###autoload +(defun dwim-shell-commands-macos-open-app () + "Open a macOS app." + (interactive) + (let* ((apps (dwim-shell-commands--macos-apps)) + (selection (progn + (cl-assert apps nil "No apps found") + (completing-read "Open with: " apps nil t)))) + (dwim-shell-command-on-marked-files + "Open with" + (format "open '%s'" (map-elt apps selection)) + :silent-success t + :no-progress t + :utils "open"))) + ;;;###autoload (defun dwim-shell-commands-macos-open-with () "Open file(s) with specific external app." -- 2.47.3