priv-kweihmann / oelint-adv

Advanced oelint
BSD 2-Clause "Simplified" License
54 stars 27 forks source link

[feature] Give link to wiki pages in output #535

Closed jo-so closed 5 months ago

jo-so commented 5 months ago

Following up on #530 I would like to ask if it's possible to enhance the output of oelint-adv to print a weblink to the wiki page (maybe with an option --show-wiki-link).

And would it be possible to get an enhanced message format (e.g. --urls-in-message) to get links to the wiki and the path? Maybe add new placeholder path-link and id-link they emit the required escape sequences (Hyperlinks in Terminal Emulators, Alhadis/OSC8-Adoption: List of terminal emulators that support hyperlinks (OSC 8 escape sequences).). While this could always be done, it would be more handy to have options to emit all these sequences.

oelint-adv --quiet --relpaths --color --messageformat $'\033]8;;file://$PWD/{path}\033\\{path}\033]8;;\033\\:{line}:{severity}:\033]8;;https://github.com/priv-kweihmann/oelint-adv/blob/master/docs/wiki/{id}.md\033\\{id}\033]8;;\033\\:{msg}'
priv-kweihmann commented 5 months ago

I guess that wouldn't be that complicated if a new messageformat placeholder "wikiurl" would be added. By default it would be off, but could be added in the way you described above - will take that later that week (if time allows)