{"id":17153152,"url":"https://github.com/axect/rustag","last_synced_at":"2025-04-13T12:43:53.777Z","repository":{"id":212028185,"uuid":"730547943","full_name":"Axect/Rustag","owner":"Axect","description":"Rustag, a Rust-built command-line tool, simplifies file organization through custom tagging and swift fuzzy search, enhancing file management directly from your terminal.","archived":false,"fork":false,"pushed_at":"2023-12-12T07:24:40.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T16:10:15.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Axect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-12T06:56:16.000Z","updated_at":"2023-12-12T07:05:40.000Z","dependencies_parsed_at":"2023-12-12T07:05:31.219Z","dependency_job_id":"898057b4-9e74-45ec-808c-771103f8515f","html_url":"https://github.com/Axect/Rustag","commit_stats":null,"previous_names":["axect/rustag"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axect%2FRustag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axect%2FRustag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axect%2FRustag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axect%2FRustag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Axect","download_url":"https://codeload.github.com/Axect/Rustag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717240,"owners_count":21150387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T21:45:25.283Z","updated_at":"2025-04-13T12:43:53.755Z","avatar_url":"https://github.com/Axect.png","language":"Rust","readme":"# Rustag\n\nRustag is a Rust-based command-line tool for organizing and tagging files on your system. It allows users to tag files with custom labels and retrieve them easily using a fuzzy search interface.\n\n## Features\n\n- **File Tagging**: Assign custom tags to your files for easy organization.\n- **Fuzzy Search**: Easily find your files using a fuzzy search interface.\n- **File Management**: Open files or their containing folders directly from the command line.\n\n## Installation\n\nTo install Rustag, ensure you have Rust and Cargo installed on your system.\nThen run the following command:\n\n```bash\ncargo install rustag\n```\n\nAnd for additional features, add the following to your `~/.bashrc` or `~/.zshrc`:\n\n```bash\nrtg() {\n  RUSTAG=$(rustag $@)\n  \n  # RUSTAG contains \"Error\" then just print else cd $(RUSTAG)\n  if [[ $RUSTAG == *\"Error\"* ]]; then\n    echo $RUSTAG\n  else\n    cd $RUSTAG\n  fi\n}\n```\n\nThen run `rtg` to get started.\n\n## Setup\n\nUpon first run, Rustag will create a `.rustag` directory in your home folder to store its data. This includes a `tagfile` that maintains the tag information.\n\n## Usage\n\n### Tagging a File\n\nTo tag a file, run Rustag with the file name as an argument:\n\n```bash\nrtg filename.ext\n```\n\nFollow the prompts to select existing tags or create a new one.\n\n### Retrieving Files\n\nTo view and open files associated with a tag:\n\n1. Run Rustag without any arguments.\n2. Select a tag from the list.\n3. Choose a file to open or a related action.\n\n## Data Structure\n\nRustag uses several custom data structures:\n\n- `AGFile`: Represents a tagged file, including metadata such as creation date and file path.\n- `AGTag`: Represents a tag, associated with multiple `AGFile` instances.\n- `AGTagList`: Manages the collection of tags and their associated files.\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxect%2Frustag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxect%2Frustag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxect%2Frustag/lists"}