You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
The documentation -- which is great btw -- doesn't seem to address how to import a large number of files into a Supertag collection, and I couldn't find any script of program in the repo tree that would help.
Do you have any best practices to share ?
Could we imagine a helper tool for this ?
I guess what I'm thinking of, is a program (or a subcommand) that would take as arguments:
a name of a Supertag collection, or a mount point;
a <path> to the directory to import
a tag name that would be affected to all imported files (e.g. inbox)
an optional number of path components to strip (e.g. --strip-components=2)
and that would
find all files from <path> (possibly ignoring .git dirs using the ignore crate)
treat all path components as tags (excluding the leading components if necessary)
add the files to the Supertag collection, tagging them with the tags corresponding to the path components, plus the tag given as a parameter (e.g.inbox).
What do you think ?
The text was updated successfully, but these errors were encountered:
A helper tool that does that sounds awesome. It would make it much more convenient to manage lots of files that way. There's no way to do that currently. In addition to skipping common ignorable directories, there could be a field in the default config toml for additional ignore patterns. Or maybe just the ability to pass those ignore patterns in on the commandline.
I think it would be pretty straightforward to implement:
The documentation -- which is great btw -- doesn't seem to address how to import a large number of files into a Supertag collection, and I couldn't find any script of program in the repo tree that would help.
Do you have any best practices to share ?
Could we imagine a helper tool for this ?
I guess what I'm thinking of, is a program (or a subcommand) that would take as arguments:
<path>
to the directory to importinbox
)--strip-components=2
)and that would
<path>
(possibly ignoring.git
dirs using the ignore crate)inbox
).What do you think ?
The text was updated successfully, but these errors were encountered: