imagesorter

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 14 Imported by: 0

README

imagesorter

Yet another very specific tool that only I need. By default it requires a terminal that supports terminal graphics protocol, but you can fallback to Sixel by passing --sixel to the command.

https://github.com/graynk/imagesorter/assets/3626328/7535af34-4030-4955-ad69-e5c4b9806156

You can install it by grabbing a binary from releases page, or by running

go install github.com/graynk/imagesorter@latest

You use it like this:

imagesorter [--sixel] /path/to/source cool_pictures not_so_cool_pictures can_be_deleted

or like this

imagesorter [--sixel] --scan /path/to/source /path/to/target

Then it will read every PNG/JPG in source directory, display it in the terminal and ask you to which of the target directories it should be moved. Then it will move it accordingly.

Optional --scan argument will scan every directory it target and create a list of target directories that way.

Note: it uses os.Rename to move the file because I am lazy, so it won't move the file between different drives.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL