lyts

command module
v0.0.0-...-dc025df Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

README

Lykso's Tagging System

Caveat

I threw most of this together in a single 24 hour period, so it's sloppy. Specifically, there's a lot of code duplication throughout. Pulling that duplicated code out into their own modules would help simplify things and reduce line count.

None of this has been tested yet, but the broad strokes of what I'm trying to achieve here have been captured.

What is it?

It allows adding, removing, and retrieving tags to files and directories as extended attributes using comma-delimited strings. It also allows adding and retrieving long-form notes as extended attributes. Finally, it allows searching for paths by their tags.

Adding tags:

lyts tag your,tags,here /some/path

Removing tags:

lyts untag your,tags,here /some/path

Editing notes:

lyts notes /some/path

Viewing notes:

lyts show notes /some/path

Listing tags:

lyts show tags /some/path

Using the SQLite cache is the fastest way to query for paths:

lyts cache search your,tags,here /some/path/prefix

This cache can be manually updated:

lyts cache scan /some/path/prefix

The cache can monitor a path for changes and update itself:

lyts cache watch /some/path/prefix

The cache must be created before it can be used:

lyts cache create

At the time of writing, attempts to use the cache before creating it result in this tool crashing.

Consider the current version a rough draft.

Documentation

Overview

Copyright © 2023 Lykso <lsd@lyk.so>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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