Skip to content

phastmike/tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tags Icon

Tags

Add color to your logs

tagger

A GNOME text tagger inspired by the TextAnalysisTool.NET 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

Download on Flathub

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:

$ meson build && cd build && ninja

Install with:

$ ninja install

Then, test it with:

$ tags

Additional Notes

Filters have a top down priority. Only works with text files and uses string matching rules or regular expressions.