Closed ondrovic closed 3 months ago
Maybe this is what you want: text/hyperlink.go
Maybe this is what you want: text/hyperlink.go
Ill give it a try and see
found another solution using another package ;-)
Can you share it here for posterity?
sure "github.com/logrusorgru/aurora/v4" is the package
in my case they are both set to the dir column
aurora.Hyperlink(label, link),
It does allow for doing the ctrl+click and open (although there is some formatting issues, which I am trying to figure out still)
Update:
Even using the default text.Htyperlink(dir, dir)
as provided results in alignment issues
for _, result := range results.([]types.EntryResults) {
dir = commonFormatters.FormatPath(result.Directory, runtime.GOOS)
t.AppendRow(table.Row{
text.Hyperlink(dir, dir),
result.FileName,
result.FileSize,
})
}
Is your feature request related to a problem? Please describe. No really a problem, not sure it even can be done
Describe the solution you'd like Using Table I would find it helpful if you somehow make it so the rows are clickable, I know you can open a file using
But for example
I so I am thinking I would love it if somehow you could click the directory path and it would open. This might be way out of the scope of the table tool, since it would almost need to register some type of callback action to handle the clicks
Describe alternatives you've considered None yet
Additional context Add any other context or screenshots about the feature request here.