Releases: savioxavier/termlink
v1.4.3
v1.4.2
What's Changed
- Add support for ghostty by @wagoodman in #13
- Fix Apple Terminal bug #11
New Contributors
- @wagoodman made their first contribution in #13
Full Changelog: v1.4.1...v1.4.2
v1.4.1
What's Changed
- feat: add support for windows terminal ssh session by @anosora233 in #10
New Contributors
- @anosora233 made their first contribution in #10
Full Changelog: v1.4.0...v1.4.1
v1.4.0
Description
This release adds supports for hyperlinks in JetBrains IDEs. It does this by checking whether the environment variable TERMINAL_EMULATOR is equal to JetBrains-JediTerm
What's Changed
New Contributors
Full Changelog: v1.3.0...v1.4.0
v1.3.0
Note
Remaking this because Go's semver is completely different
This was originally v2.0.0 but apparently Go accepts only v0 or v1
Either ways, a complete v2 package (with av2/directory) is not required as this fixes issues, mostly, not change the API
Information
- Release of termlink with a few breaking changes in the form of version parsing fixes
Hyperlink detection
- Hyperlink detection has been greatly improved
- New variables and variable checks have been introduced
TERM_PROGRAMvariable checking is stricter now, with the help ofTERM_PROGRAM_VERSIONconstraints. This is a breaking change- Multiple handling functions for environment variable detection such as
hasEnv,checkAllEnvs,matchesEnvetc., have been added - Version handling is now in a form of a struct called
Version.parseVersionnow returns this struct of three variables instead of three standalone variables calledmajor,minor, andpatch - Version scanning now works with version that don't even contain dots
os.Getenv()has been replaced withos.LookupEnv()- termlink now respects the
FORCE_HYPERLINKvariable, and forces hyperlinks as long as the variable's value is any of[]string{"1", "true", "always", "enabled"} - Added support for more terminals including vscode and alacritty (possibly fixes #7)
- Added support for
COLORTERMvariable - Fixed incorrect version condition for
VTE_VERSION
Color Handling
colorsListmap now has integer keys instead of strings- Keys have been arranged according to their ANSI escape code
- Detecting and adding valid colors from a termlink style color string has been refactored and simplified
- Colors are initially cleared upon entry to avoid redundant color codes
parseColor("reset")has been replaced with an escape code to avoid additional processing
Dependencies
fatih/colorandjwalton/go-supportscolorhave both been removed from the project. Checking for color support is unnecessary because this package only requires checking for basic colors.fatih/colorwasn't used in the main termlink code anyways- Currently, this package is dependency-free
- The only dependency is the
asserttesting library, which is only used for testing purposes and has no effect on main
Documentation
- godoc comments have been improved
README.mdhas been modified with more code snippets and examples for other utilities such asSupportsHyperlinksandshouldForce
Examples
examples/start.gohas been improved with more examples and texts
Tests
- The test that included the
fatih/colorpackage has been removed - Testing will be revamped in v2.1 or in a future version (TODO)
v1.2.1
Description
This release includes minor unit testing changes
- Remove unwanted zero width space character from tests
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Description
This release includes bug fixes and some improvements
- Removes the unwanted u200B, which caused an extra space to occur
- Adds an optional parameter called
shouldForceto theLinkandColorLinkfunctions, which allows you to programmatically force the non-linked behavior - Update docs (godoc and readme)
What's Changed
- chore: create
CODE_OF_CONDUCT.mdby @savioxavier in #3 - feat: add
shouldForceparameter to functions by @savioxavier in #6
Full Changelog: v1.1.0...v1.2.0
v1.1.0
This release adds unit tests to termlink using the assert package from stretchr/testify and Go's native testing library.
What's Changed
- chore: write basic tests for termlink by @savioxavier in #2
New Contributors
- @savioxavier made their first contribution in #2
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Initial release
Full Changelog: https://github.com/savioxavier/termlink/commits/v1.0.0