Crates.io | tagr |
lib.rs | tagr |
version | 0.1.2 |
source | src |
created_at | 2022-04-24 10:50:55.236928 |
updated_at | 2022-04-24 11:20:35.097473 |
description | A simple, UNIX-friendly tag manager |
homepage | |
repository | https://github.com/nebulaeandstars/tagr |
max_upload_size | |
id | 573047 |
size | 53,855 |
tagr is a very simple tool for organising your files into tags, as a supplement to directories.
Let's imagine that you're taking a class. Where do you store your lectures?
~/Documents/school/<course_id>/lectures/ ?
~/Videos/lectures/<course_id>/ ?
/mnt/drive/some_other_location/ ?
Ideally, you'd be able to use a combination of all 3, but as we're stuck with tree-like directory structure, you'll always have to commit to one.
tagr aims to solve that problem. The goal is to provide an interface through
which you can manage tags for files on any platform. This can then be combined
with other UNIX-friendly tools, working similarly to programs like ls
, find
,
mv
, and the like.
Let's take the scenario above. Using tagr, you might solve this dilemma like so:
$ mv ./lecture.mp4 /mnt/disk/
$ tagr add lectures /mnt/disk/lecture.mp4
$ tagr add $COURSE_ID /mnt/disk/lecture.mp4
$ tagr add $COURSE_ID-media /mnt/disk/lecture.mp4
Now, the lecture is physically stored on your external disk, but can be accessed in multiple ways:
tagr ls lectures
(for all lectures)tagr ls $COURSE_ID
(for all course materials)tagr ls $COURSE_ID-media
(for all course-related media)tagr is still in early development, and is currently very minimal. It's supposed to stay that way, but there are some more features planned:
tagr get $COURSE_ID/lecture.mp4