tagger/tagger.1

89 lines
2.1 KiB
Groff
Raw Normal View History

2024-07-21 20:30:51 +02:00
.Dd July 21, 2024
2024-07-19 13:40:45 +02:00
.Dt tagger 1
.Os
.Sh NAME
.Nm tagger
2024-07-21 20:30:51 +02:00
.Nd Show and edit file system tags, stored as extended attribute
2024-07-19 13:40:45 +02:00
.Sh SYNOPSIS
.Nm
.Fl h
.Nm
.Fl \-version
.Nm
2024-07-21 20:30:51 +02:00
.Op Fl a Ar tag
.Op Fl d Ar tag
.Op Fl c Ar tag Fl i Ar tag
.Op Fl l
.Op Fl s
2024-07-19 13:40:45 +02:00
.Op Ar
.Sh DESCRIPTION
2024-07-21 20:30:51 +02:00
On Linux file systems that support extended attributes, the XDG desktop uses the
attribute `user.xdg.tags' to store a comma-separated list of user-defined tags.
File browsers such as Dolphin on KDE have user interface to manipulate them.
Unfortunately, it is inconvenient if one wishes to change tags for many files or
directories at once.
2024-07-19 13:40:45 +02:00
The
.Nm
2024-07-21 20:30:51 +02:00
tool allows you to list and/or edit tags in bulk, with a convenient command line
interface.
2024-07-19 13:40:45 +02:00
.Pp
The options are as follows:
2024-07-21 20:30:51 +02:00
.Ss General Options
2024-07-19 13:40:45 +02:00
.Bl -tag -width Ds
.It Fl h, \-help
Print help text and exit.
.It Fl \-version
Print version info and exit.
.El
2024-07-21 20:30:51 +02:00
.Ss Listing tags
.Bl -tag -width Ds
.It Fl l, \-list
List tags.
If you also specify any
.Sx Editing Options
(see below),
.Nm
reports tags before and after applying any changes.
.El
.Ss Editing Options
.Bl -tag -width Ds
.It Fl a, \-add Ar tag
Add the specified tag.
This option can be used multiple times.
.It Fl c, \-change Ar tag
Change the given tag, into a new value supplied as an argument for the
.Fl i
option (see below).
.It Fl i, \-into Ar tag
Change the value given with the last
.Fl c
option into the new value given here.
These pairs of
.Fl c
and
.Fl i
options can be used multiple times.
.It Fl d, \-delete Ar tag
Delete the given tag, if it exists.
This option can be used multiple times.
.It Fl s, \-sort
With this flag, changes will be written back for the file of directory in
alphabetically sorted order.
.El
.Sh ENVIRONMENT
.Nm
uses libscterm for its color output support, and as such honors the NO_COLOR
environment variable.
Color output is also automatically suppressed when it is not written to a tty,
such as when writing to a pipe, or when using output redirection.
2024-07-19 13:40:45 +02:00
.Sh EXIT STATUS
.Nm
exits 0 on success, and 1 if an error occurs.
.\" .Sh EXAMPLES
.\" .Sh DIAGNOSTICS
.\" For sections 1, 4, 6, 7, 8, and 9 printf/stderr messages only.
2024-07-21 20:30:51 +02:00
.Sh SEE ALSO
.Xr xattr 7
2024-07-19 13:40:45 +02:00
.Sh AUTHORS
Bob Polis