ranger gcode preview script

This commit is contained in:
Emmet
2025-03-19 11:04:07 -05:00
parent 1fb21a0543
commit 1a2ac810e3
2 changed files with 17 additions and 0 deletions

View File

@ -52,6 +52,9 @@ SQLITE_ROW_LIMIT=5 # Display only the first and the last (<limit> - 1) recor
handle_extension() {
case "${FILE_EXTENSION_LOWER}" in
gcode)
gcode-stats "${FILE_PATH}" && exit 5
exit 1;;
## Archive
a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)