Skip to content

Commit 7145c18

Browse files
committed
renamed stag to stagfs
1 parent a2cb1e7 commit 7145c18

File tree

6 files changed

+1174
-23
lines changed

6 files changed

+1174
-23
lines changed

README.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<br/>
22
<p align="center"> <img src="icon.png" alt="Logo" width="150"> </p>
3-
<h3 align="center"> Stag </h3>
3+
<h3 align="center"> StagFS </h3>
44
<h3 align="center"> Upgrade your hierarchical filesystem with a tag-based structure </h3>
55
<br/>
66

77
# Overview
88

9-
**Stag** (**S**imple **Tag**ger) is a FUSE-based filesystem that upgrades your filesystem to support a tag-based structure. It turns tags into folders and remains compatible with a standard Unix utilities and file managers.
9+
**StagFS** (**S**imple **Tag**ger) is a FUSE-based filesystem that upgrades your filesystem to support a tag-based structure. It turns tags into folders and remains compatible with a standard Unix utilities and file managers.
1010

1111
Key features are:
1212

1313
- **Tags are Folder**: Each tag corresponds to a folder in your filesystem, which stack recursively for files with multiple tags.
1414
- **Files are Files**: Each file that you tag will show up in one or more folders, integrating seamlessly with any file manager.
1515
- **Same Tools as Usual**: Browse and manage your files the same way you would before, using your favorite file manager or the CLI.
1616

17-
Stag is fully functional, but it's **still in alpha**, so things might change a bit before the first full release. Once everything settles down, I'll start putting out official versions.
17+
StagFS is fully functional, but it's **still in alpha**, so things might change a bit before the first full release. Once everything settles down, I'll start putting out official versions.
1818

1919
# Installation
2020

2121
## Requirements
2222

23-
Before running Stag, ensure you have the following dependencies installed
23+
Before running StagFS, ensure you have the following dependencies installed
2424

2525
- [FUSE](https://github.com/libfuse/libfuse)
2626
- [Python 3](https://www.python.org/) (version 3.6 or newer recommended)
@@ -29,51 +29,49 @@ Before running Stag, ensure you have the following dependencies installed
2929

3030
## Manual Installation
3131

32-
First, download the Stag script
32+
StagFS is distributed as a standalone Python script that you can easily download with
3333

3434
```console
35-
$ wget https://github.com/jpmvferreira/stag/raw/refs/heads/master/stag
35+
$ wget https://github.com/jpmvferreira/stagfs/raw/refs/heads/master/stagfs
3636
```
3737

3838
make it executable
3939

4040
```console
41-
$ chmod +x stag
41+
$ chmod +x stagfs
4242
```
4343

4444
and move it to a directory in your `$PATH`, e.g.
4545

4646
```console
47-
$ mv stag ~/usr/bin/stagfs
47+
$ mv stagfs ~/usr/bin/stagfs
4848
```
4949

50-
To run Stag in the background with Systemd, download the provided unit file and place it in your user systemd directory:
50+
To run StagFS in the background with Systemd, download the provided unit file and place it in your user systemd directory
5151

5252
```console
53-
$ wget https://github.com/jpmvferreira/stag/raw/refs/heads/master/stag@.service -O ~/.config/systemd/user/stagfs@.service
53+
$ wget https://github.com/jpmvferreira/stagfs/raw/refs/heads/master/stagfs@.service -O ~/.config/systemd/user/stagfs@.service
5454
$ systemctl --user daemon-reload
5555
```
5656

57-
this enables you to easily manage Stag mounts using Systemd commands.
58-
5957
# Usage
6058

61-
To begin using Stag, first create a repository. For example, to create a repository named `myrepo`
59+
To get started with StagFS, begin by creating a new repository. For example, to create a repository called `myrepo`
6260

6361
```console
6462
$ stagfs init myrepo
6563
```
6664

6765
> [!NOTE]
68-
> Stag assumes the repository is located in `~/.local/share/stag` by default. This can be overwritten using the flag `-r`.
66+
> StagFS assumes the repository is located in `~/.local/share/stagfs` by default. This can be overwritten using the flag `-r`.
6967
7068
You can list all repositories at any time with
7169

7270
```console
7371
$ stagfs ls
7472
```
7573

76-
Stag works by mounting your repository as a virtual filesystem. To do this, create a mount point and mount your repository
74+
StagFS works by mounting your repository as a virtual filesystem. To do this, create a mount point and mount your repository
7775

7876
```console
7977
$ mkdir mnt
@@ -97,7 +95,7 @@ Add files to your repository as you would in any directory, by copying or moving
9795
$ touch lisbon.txt bern.txt venice.txt
9896
```
9997
100-
Tags in Stag are represented as directories. To create tags such as `city`, `mountains`, and `ocean`
98+
In StagFS, tags are directories. To create tags such as `city`, `mountains`, and `ocean`
10199

102100
```console
103101
$ mkdir city ocean mountains
@@ -168,7 +166,7 @@ $ mv <tags>/<tag> <tags_alt>/<tag_new>
168166
where `<tags>` and `<tags_alt>` are ignored and `<tag>` will be renamed to `<tag_new>`. If `<tag_new>` already exists, they will be merged.
169167

170168
> [!NOTE]
171-
> To avoid ghost overwrites, Stag does not allow you to change the name of a file to one that already exists. As for tags, it will refuse to change the name to a tag that is not visible in the current subdirectory to avoid ghost merges.
169+
> To avoid ghost overwrites, StagFS does not allow you to change the name of a file to one that already exists. As for tags, it will refuse to change the name to a tag that is not visible in the current subdirectory to avoid ghost merges.
172170
173171
# Motivation
174172

@@ -202,7 +200,7 @@ This is a small program developed by somebody who is not an experienced programm
202200

203201
# Disclaimer
204202

205-
Stag is a personal project, not enterprise grade software. I use it myself and it works well for me, but bugs can happen, so don’t trust it with important files unless you’ve got backups (which you should have anyways!). Stag repositories are kept in a single folder, so backing up is very straight forward.
203+
StagFS is a personal project, not enterprise grade software. I use it myself and it works well for me, but bugs can happen, so don’t trust it with important files unless you’ve got backups (which you should have anyways!). StagFS repositories are kept in a single folder, so backing up is very straight forward.
206204

207205
# References
208206

stag renamed to stagfs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ class StagFS(Operations):
966966

967967
@click.group()
968968
@click.option("-d", "--debug", is_flag=True, help="Enable debug logging")
969-
@click.option("-r", "--repo", type=click.STRING, nargs=1, metavar=" <PATH>", help="Use <PATH> instead of ~/.local/share/stag")
969+
@click.option("-r", "--repo", type=click.STRING, nargs=1, metavar=" <PATH>", help="Use <PATH> instead of ~/.local/share/stagfs")
970970
@click.pass_context
971971
def main(ctx, debug, repo):
972972
ctx.ensure_object(dict)
@@ -982,7 +982,7 @@ def main(ctx, debug, repo):
982982
if repo:
983983
repo = os.path.abspath(repo)
984984
else:
985-
repo = os.getenv("HOME") + "/.local/share/stag"
985+
repo = os.getenv("HOME") + "/.local/share/stagfs"
986986

987987
ctx.obj["REPO"] = repo
988988

File renamed without changes.

tests/stag.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)