bundle the clickable-links plugin with Tabby

This commit is contained in:
Eugene Pankov
2021-12-08 19:54:26 +01:00
parent 3eaf46e09d
commit bbb02f4e64
25 changed files with 518 additions and 170 deletions

View File

@@ -0,0 +1,16 @@
import { BaseTerminalTabComponent } from 'tabby-terminal'
export abstract class LinkHandler {
regex: RegExp
priority = 1
convert (uri: string, _tab?: BaseTerminalTabComponent): Promise<string>|string {
return uri
}
verify (_uri: string, _tab?: BaseTerminalTabComponent): Promise<boolean>|boolean {
return true
}
abstract handle (uri: string, tab?: BaseTerminalTabComponent): void
}