Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purpose of the program #20

Closed
muralikodali opened this issue Mar 15, 2021 · 5 comments
Closed

purpose of the program #20

muralikodali opened this issue Mar 15, 2021 · 5 comments

Comments

@muralikodali
Copy link

Can we perform any file operations like copy,remove etc on the files based on tags ?
If not, is it intended for viewing tags only ?

is there a way to pipe file names only to stdout , to perform file operations ?

I request you to provide that feature ( just printing file names only) to make the program more useful.

@vv9k
Copy link
Owner

vv9k commented Mar 15, 2021

Thanks for your feedback!

For now you cant perform any operations directly through wutag but you can surely use the search sub command to search for files that contain certain tags and use the —raw flag to make the output pipeable to other command.

I will have to think more on how to expand the functionality as for now it’s not very useful other than tagging and searching for files that are tagged.

If you have any other suggestions then please do share :) thanks.

@muralikodali
Copy link
Author

using -raw flag giving following error

./wutag  -raw -d ~/Downloads/epubs search amazon                                                                                                                                                                                                                          20:45
error: Found argument '-a' which wasn't expected, or isn't valid in this context

If you tried to supply `-a` as a PATTERN use `-- -a`

USAGE:
    wutag [FLAGS] [OPTIONS] <SUBCOMMAND>

For more information try --help

@vv9k
Copy link
Owner

vv9k commented Mar 15, 2021

The --raw flag should be prefixed with two - dashes, sorry for my typo in first comment I was typing from my phone. If you type ./wutag search --help it will show you how to achieve what you need.

❯ wutag search --help
wutag-search
Searches for files that have all of the provided `tags`

USAGE:
    wutag search [FLAGS] <tags>...

ARGS:
    <tags>...

FLAGS:
    -h, --help       Prints help information
        --raw        If provided output will be raw so that it can be easily piped to other commands

@vv9k
Copy link
Owner

vv9k commented Mar 15, 2021

So for example if you tag some files with wutag set '*' photos you can later do something like this:
ls -l $(wutag search --raw photos)

I will add a shortcut -r for this in next release.

@muralikodali
Copy link
Author

thanks for your suggestion.

now we can apply xargs or other command line utilities to process the output, which is very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants