https://github.com/phastmike/tags
A simple text tagger
https://github.com/phastmike/tags
gnome gnome-app tagger text-analysis vala vala-applications
Last synced: 4 months ago
JSON representation
A simple text tagger
- Host: GitHub
- URL: https://github.com/phastmike/tags
- Owner: phastmike
- License: other
- Created: 2022-04-07T08:56:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T12:38:54.000Z (over 2 years ago)
- Last Synced: 2024-02-14T03:16:03.056Z (over 2 years ago)
- Topics: gnome, gnome-app, tagger, text-analysis, vala, vala-applications
- Language: Vala
- Homepage:
- Size: 979 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Tags
Add color to your logs

A GNOME text tagger inspired by the [TextAnalysisTool.NET](https://textanalysistool.github.io/) tool.
The main goal is to aid log analysis by tagging lines with user defined colors. Tags have a match pattern, description name, visibility toggle, color scheme and hit counter.
---
## Download
---
## Actions and Shortcuts
### General Actions
| Shortcut | Action |
|----------|--------|
| `Ctrl` + `A` | Add a Tag |
| `Ctrl` + `S` | Save tagged lines |
| `Ctrl` + `C` | Copy selected text lines to clipboard |
| `Ctrl` + `H` | Toggle untagged lines visibility |
| `F9` | Hide/Show Tag list (sidebar) |
| `Ctrl` + `L` | Hide/Show Line numbers |
| `Ctrl` + `M` | Hide/Show Minimap |
| `Alt` + `E` | Enable all tags |
| `Alt` + `D` | Disable all tags |
### Tags Toggle
Toggle the first ten tags with keyboard shortcuts:
| Shortcut | Action |
|----------|--------|
| `Alt` + `1` | Toggle enabled status for first tag |
| `Alt` + `2` | Toggle enabled status for second tag |
| ... | ... |
| `Alt` + `9` | Toggle enabled status for ninth tag |
| `Alt` + `0` | Toggle enabled status for tenth tag |
> **Note:** Using `Ctrl` instead of `Alt` will enable the respective tag and hide all the others.
### Navigation
*Requires a tag to be selected on the tag list*
| Shortcut | Action |
|----------|--------|
| `F2` | Previous tag hit |
| `F3` | Next tag hit |
| `Ctrl` + `M` | Toggle minimap visibility |
Check the available shortcuts in the application menu with `Ctrl` + `?`.
---
## Additional Features
- Load tags
- Save tags
- Remove all tags
- Open new window
- User defined color schemes
- Tags based on string comparison
- Support for regular expressions
- Case sensitive support
- Automatic load tags file (same filename + .tags`extension)
- Navigate thru hits with F2 and F3
- Random color scheme on tag creation
- Document minimap with tag colors
---
## Development
Developed in Vala + Gtk 4
### Dependencies
- meson
- ninja
- valac
- Gtk 4
- Libgee
- LibAdwaita-1
- json-glib-1.0
### Build
Clone the repository and inside it, compile with:
```bash
$ meson build && cd build && ninja
```
Install with:
```bash
$ ninja install
```
Then, test it with:
```bash
$ tags
```
---
## Additional Notes
Filters have a top down priority. Only works with text files and uses string matching rules or regular expressions.