diff --git a/docs/docs/config-example.md b/docs/docs/config-example.md index 51adc468..ab692079 100644 --- a/docs/docs/config-example.md +++ b/docs/docs/config-example.md @@ -50,8 +50,7 @@ sidebar_label: Sample "style": "folder", "exclude_folders": [ "/super/secret/project" - ], - "enable_hyperlink": false + ] } }, { diff --git a/docs/docs/segment-owm.md b/docs/docs/segment-owm.md index 3dee4c5c..b74fac2e 100644 --- a/docs/docs/segment-owm.md +++ b/docs/docs/segment-owm.md @@ -27,7 +27,6 @@ The free tier for *Current weather and forecasts collection* is sufficient. "apikey": "", "location": "AMSTERDAM,NL", "units": "metric", - "enable_hyperlink" : false, "http_timeout": 20, "cache_timeout": 10, "template": "{{.Weather}} ({{.Temperature}}{{.UnitIcon}})" @@ -43,7 +42,6 @@ The free tier for *Current weather and forecasts collection* is sufficient. Please, refer to ISO 3166 for the state codes or country codes - defaults to `DE BILT,NL` - units: `string` - Units of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit) - defaults to `standard` -- enable_hyperlink: `bool` - Displays an hyperlink to get openweathermap data - http_timeout: `int` - The default timeout for http request is 20ms. - cache_timeout: `int` - The default timeout for request caching is 10m. A value of 0 disables the cache. - template: `string` - A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the diff --git a/docs/docs/segment-path.md b/docs/docs/segment-path.md index cdd75953..f6aeb8ea 100644 --- a/docs/docs/segment-path.md +++ b/docs/docs/segment-path.md @@ -33,8 +33,6 @@ Display the current path. - folder_icon: `string` - the icon to use as a folder indication - defaults to `..` - windows_registry_icon: `string` - the icon to display when in the Windows registry - defaults to `\uE0B1` - style: `enum` - how to display the current path - -- enable_hyperlink: `boolean` - displays an hyperlink for the path - defaults to `false` - mixed_threshold: `number` - the maximum length of a path segment that will be displayed when using `Mixed` - defaults to `4` - max_depth: `number` - maximum path depth to display before shortening when using `Agnoster Short` - defaults to `1` diff --git a/docs/docs/segment-php.md b/docs/docs/segment-php.md index 2b1697fd..6bc0f1f4 100644 --- a/docs/docs/segment-php.md +++ b/docs/docs/segment-php.md @@ -19,7 +19,6 @@ Display the currently active php version. "background": "#4063D8", "properties": { "prefix": " \ue73d ", - "enable_hyperlink": false } } ``` @@ -33,7 +32,6 @@ Display the currently active php version. - display_mode: `string` - determines when the segment is displayed - `always`: the segment is always displayed - `files`: the segment is only displayed when `*.php, composer.json, composer.lock, .php-version` files are present (default) -- enable_hyperlink: `bool` - display an hyperlink to the php release notes - defaults to `false` ## [Template][templates] Properties diff --git a/docs/docs/segment-strava.mdx b/docs/docs/segment-strava.mdx index 540e647a..1a27b72f 100644 --- a/docs/docs/segment-strava.mdx +++ b/docs/docs/segment-strava.mdx @@ -68,7 +68,6 @@ if that color is visible against any of your backgrounds. - SkiingIcon - defaults to `\ue213` - WorkOutIcon - defaults to `\ue213` - UnknownActivityIcon - defaults to `\ue213` -- enable_hyperlink - display an hyperlink to activities - defaults to `false` ## [Template][templates] Properties diff --git a/src/config.go b/src/config.go index 4cdd30e3..f469ec8e 100644 --- a/src/config.go +++ b/src/config.go @@ -39,8 +39,6 @@ type TransientPrompt struct { } const ( - // EnableHyperlink enable hyperlink - EnableHyperlink Property = "enable_hyperlink" // HTTPTimeout timeout used when executing http request HTTPTimeout Property = "http_timeout" // DefaultHTTPTimeout default timeout used when executing http request diff --git a/src/segment_angular.go b/src/segment_angular.go index 5fda5e0b..fc57b511 100644 --- a/src/segment_angular.go +++ b/src/segment_angular.go @@ -48,7 +48,7 @@ func (a *angular) init(props Properties, env Environment) { }, }, }, - versionURLTemplate: "[%s](https://github.com/angular/angular/releases/tag/%s.%s.%s)", + versionURLTemplate: "https://github.com/angular/angular/releases/tag/{{.Full}}", } } diff --git a/src/segment_crystal.go b/src/segment_crystal.go index ca22cc6c..34b9f8bf 100644 --- a/src/segment_crystal.go +++ b/src/segment_crystal.go @@ -24,7 +24,7 @@ func (c *crystal) init(props Properties, env Environment) { regex: `Crystal (?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, }, }, - versionURLTemplate: "[%s](https://github.com/crystal-lang/crystal/releases/tag/%s.%s.%s)", + versionURLTemplate: "https://github.com/crystal-lang/crystal/releases/tag/{{ .Full }}", } } diff --git a/src/segment_dart.go b/src/segment_dart.go index 968ff191..6014d62a 100644 --- a/src/segment_dart.go +++ b/src/segment_dart.go @@ -24,7 +24,7 @@ func (d *dart) init(props Properties, env Environment) { regex: `Dart SDK version: (?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, }, }, - versionURLTemplate: "[%s](https://dart.dev/guides/language/evolution#dart-%s%s)", + versionURLTemplate: "https://dart.dev/guides/language/evolution#dart-{{ .Major }}{{ .Minor }}", } } diff --git a/src/segment_deprecated.go b/src/segment_deprecated.go index c38e45d5..b360a4c8 100644 --- a/src/segment_deprecated.go +++ b/src/segment_deprecated.go @@ -353,25 +353,6 @@ func (l *language) string() string { return err.Error() } - if l.props.getBool(EnableHyperlink, false) { - versionURLTemplate := l.props.getString(VersionURLTemplate, "") - // backward compatibility - if versionURLTemplate == "" { - text = l.buildVersionURL(text) - } else { - template := &textTemplate{ - Template: versionURLTemplate, - Context: l.version, - Env: l.env, - } - url, err := template.render() - if err != nil { - return err.Error() - } - text = url - } - } - if l.props.getBool(EnableVersionMismatch, false) { l.setVersionFileMismatch() } diff --git a/src/segment_dotnet.go b/src/segment_dotnet.go index bd11d9bb..7906fd61 100644 --- a/src/segment_dotnet.go +++ b/src/segment_dotnet.go @@ -30,7 +30,7 @@ func (d *dotnet) init(props Properties, env Environment) { `(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?))`, }, }, - versionURLTemplate: "[%1s](https://github.com/dotnet/core/blob/master/release-notes/%[2]s.%[3]s/%[2]s.%[3]s.%[4]s/%[2]s.%[3]s.%[4]s.md)", + versionURLTemplate: "https://github.com/dotnet/core/blob/master/release-notes/{{ .Major }}.{{ .Minor }}/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/{{ .Major }}.{{ .Minor }}.{{ .Patch }}.md)", // nolint: lll } } diff --git a/src/segment_golang.go b/src/segment_golang.go index 3ab7574e..1aecdcd1 100644 --- a/src/segment_golang.go +++ b/src/segment_golang.go @@ -36,7 +36,7 @@ func (g *golang) init(props Properties, env Environment) { regex: `(?:go(?P((?P[0-9]+).(?P[0-9]+)(.(?P[0-9]+))?)))`, }, }, - versionURLTemplate: "[%s](https://golang.org/doc/go%s.%s)", + versionURLTemplate: "https://golang.org/doc/go{{ .Major }}.{{ .Minor }})", } } diff --git a/src/segment_julia.go b/src/segment_julia.go index ad6ce24a..6fb6cbae 100644 --- a/src/segment_julia.go +++ b/src/segment_julia.go @@ -24,7 +24,7 @@ func (j *julia) init(props Properties, env Environment) { regex: `julia version (?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, }, }, - versionURLTemplate: "[%s](https://github.com/JuliaLang/julia/releases/tag/v%s.%s.%s)", + versionURLTemplate: "https://github.com/JuliaLang/julia/releases/tag/v{{ .Full }})", } } diff --git a/src/segment_language.go b/src/segment_language.go index 4244971f..58b381c5 100644 --- a/src/segment_language.go +++ b/src/segment_language.go @@ -3,7 +3,6 @@ package main import ( "errors" "fmt" - "strings" ) type loadContext func() @@ -20,6 +19,7 @@ type version struct { Patch string Prerelease string BuildMetadata string + URL string } type cmd struct { @@ -93,25 +93,6 @@ func (l *language) renderTemplate(segmentTemplate string, context SegmentWriter) if err != nil { return err.Error() } - - // TODO: this needs to be removed or refactored - if !l.props.getBool(EnableHyperlink, false) { - return text - } - versionURLTemplate := l.props.getString(VersionURLTemplate, "") - // backward compatibility - if versionURLTemplate == "" { - return l.buildVersionURL(text) - } - template = &textTemplate{ - Template: versionURLTemplate, - Context: l.version, - Env: l.env, - } - text, err = template.render() - if err != nil { - return err.Error() - } return text } @@ -196,6 +177,7 @@ func (l *language) setVersion() error { return fmt.Errorf("err parsing info from %s with %s", command.executable, versionStr) } l.version = *version + l.buildVersionURL() return nil } return errors.New(l.props.getString(MissingCommandText, "")) @@ -226,27 +208,19 @@ func (l *language) setVersionFileMismatch() { l.colorMismatch() } -func (l *language) buildVersionURL(text string) string { - if l.versionURLTemplate == "" { - return text +func (l *language) buildVersionURL() { + versionURLTemplate := l.props.getString(VersionURLTemplate, l.versionURLTemplate) + if len(versionURLTemplate) == 0 { + return } - truncatingSprintf := func(str string, args ...interface{}) (string, error) { - n := strings.Count(str, "%s") - if n > len(args) { - return "", errors.New("Too many parameters") - } - if n == 0 { - return fmt.Sprintf(str, args...), nil - } - arguments := make([]interface{}, 0, n) - for i := 0; i < n; i++ { - arguments = append(arguments, args[i]) - } - return fmt.Sprintf(str, arguments...), nil + template := &textTemplate{ + Template: versionURLTemplate, + Context: l.version, + Env: l.env, } - version, err := truncatingSprintf(l.versionURLTemplate, text, l.version.Major, l.version.Minor, l.version.Patch) + url, err := template.render() if err != nil { - return text + return } - return version + l.version.URL = url } diff --git a/src/segment_language_test.go b/src/segment_language_test.go index fb24fb22..7107a803 100644 --- a/src/segment_language_test.go +++ b/src/segment_language_test.go @@ -353,9 +353,6 @@ func TestLanguageEnabledCommandExitCode(t *testing.T) { } func TestLanguageHyperlinkEnabled(t *testing.T) { - props := properties{ - EnableHyperlink: true, - } args := &languageArgs{ commands: []*cmd{ { @@ -369,22 +366,19 @@ func TestLanguageHyperlinkEnabled(t *testing.T) { regex: `(?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, }, }, - versionURLTemplate: "[%s](https://unicor.org/doc/%s.%s.%s)", + versionURLTemplate: "https://unicor.org/doc/{{ .Full }}", extensions: []string{uni, corn}, enabledExtensions: []string{corn}, enabledCommands: []string{"corn"}, version: universion, - properties: props, + properties: properties{}, } lang := bootStrapLanguageTest(args) assert.True(t, lang.enabled()) - assert.Equal(t, "[1.3.307](https://unicor.org/doc/1.3.307)", lang.string()) + assert.Equal(t, "https://unicor.org/doc/1.3.307", lang.version.URL) } func TestLanguageHyperlinkEnabledWrongRegex(t *testing.T) { - props := properties{ - EnableHyperlink: true, - } args := &languageArgs{ commands: []*cmd{ { @@ -398,47 +392,18 @@ func TestLanguageHyperlinkEnabledWrongRegex(t *testing.T) { regex: `wrong`, }, }, - versionURLTemplate: "[%s](https://unicor.org/doc/%s.%s.%s)", + versionURLTemplate: "https://unicor.org/doc/{{ .Full }}", extensions: []string{uni, corn}, enabledExtensions: []string{corn}, enabledCommands: []string{"corn"}, version: universion, - properties: props, + properties: properties{}, } lang := bootStrapLanguageTest(args) assert.True(t, lang.enabled()) assert.Equal(t, "err parsing info from corn with 1.3.307", lang.string()) } -func TestLanguageHyperlinkEnabledLessParamInTemplate(t *testing.T) { - props := properties{ - EnableHyperlink: true, - } - args := &languageArgs{ - commands: []*cmd{ - { - executable: "uni", - args: []string{"--version"}, - regex: `(?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, - }, - { - executable: "corn", - args: []string{"--version"}, - regex: `(?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, - }, - }, - versionURLTemplate: "[%s](https://unicor.org/doc/%s)", - extensions: []string{uni, corn}, - enabledExtensions: []string{corn}, - enabledCommands: []string{"corn"}, - version: universion, - properties: props, - } - lang := bootStrapLanguageTest(args) - assert.True(t, lang.enabled()) - assert.Equal(t, "[1.3.307](https://unicor.org/doc/1)", lang.string()) -} - func TestLanguageEnabledInHome(t *testing.T) { cases := []struct { Case string @@ -471,32 +436,3 @@ func TestLanguageEnabledInHome(t *testing.T) { assert.Equal(t, tc.ExpectedEnabled, lang.enabled(), tc.Case) } } - -func TestLanguageHyperlinkEnabledMoreParamInTemplate(t *testing.T) { - props := properties{ - EnableHyperlink: true, - } - args := &languageArgs{ - commands: []*cmd{ - { - executable: "uni", - args: []string{"--version"}, - regex: `(?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, - }, - { - executable: "corn", - args: []string{"--version"}, - regex: `(?P((?P[0-9]+).(?P[0-9]+).(?P[0-9]+)))`, - }, - }, - versionURLTemplate: "[%s](https://unicor.org/doc/%s.%s.%s.%s)", - extensions: []string{uni, corn}, - enabledExtensions: []string{corn}, - enabledCommands: []string{"corn"}, - version: universion, - properties: props, - } - lang := bootStrapLanguageTest(args) - assert.True(t, lang.enabled()) - assert.Equal(t, "1.3.307", lang.string()) -} diff --git a/src/segment_owm_test.go b/src/segment_owm_test.go index 709673dd..6ab07625 100644 --- a/src/segment_owm_test.go +++ b/src/segment_owm_test.go @@ -218,7 +218,6 @@ func TestOWMSegmentIcons(t *testing.T) { Location: "AMSTERDAM,NL", Units: "metric", CacheTimeout: 0, - EnableHyperlink: true, SegmentTemplate: "[{{.Weather}} ({{.Temperature}}{{.UnitIcon}})]({{.URL}})", }, env: env, @@ -264,7 +263,6 @@ func TestOWMSegmentFromCacheWithHyperlink(t *testing.T) { APIKey: "key", Location: "AMSTERDAM,NL", Units: "metric", - EnableHyperlink: true, SegmentTemplate: "[{{.Weather}} ({{.Temperature}}{{.UnitIcon}})]({{.URL}})", }, env: env, diff --git a/src/segment_path.go b/src/segment_path.go index 0a2d33fb..6f8079c1 100644 --- a/src/segment_path.go +++ b/src/segment_path.go @@ -14,6 +14,7 @@ type path struct { pwd string Path string StackCount int + Location string } const ( @@ -79,12 +80,10 @@ func (pt *path) enabled() bool { pt.Path = fmt.Sprintf("Path style: %s is not available", style) } pt.Path = pt.formatWindowsDrive(pt.Path) - if pt.props.getBool(EnableHyperlink, false) { - // wsl check - if pt.env.isWsl() { - pt.pwd, _ = pt.env.runCommand("wslpath", "-m", pt.pwd) - } - pt.Path = fmt.Sprintf("[%s](file://%s)", pt.Path, pt.pwd) + if pt.env.isWsl() { + pt.Location, _ = pt.env.runCommand("wslpath", "-m", pt.pwd) + } else { + pt.Location = pt.pwd } pt.StackCount = pt.env.stackCount() diff --git a/src/segment_path_test.go b/src/segment_path_test.go index 21d89bec..908ba9ef 100644 --- a/src/segment_path_test.go +++ b/src/segment_path_test.go @@ -429,6 +429,7 @@ func TestAgnosterPathStyles(t *testing.T) { env.On("pwd").Return(tc.Pwd) env.On("getRuntimeGOOS").Return(tc.GOOS) env.On("stackCount").Return(0) + env.On("isWsl").Return(false) args := &args{ PSWD: &tc.Pswd, } @@ -551,6 +552,7 @@ func TestGetFullPath(t *testing.T) { env.On("pwd").Return(tc.Pwd) env.On("getRuntimeGOOS").Return(tc.GOOS) env.On("stackCount").Return(tc.StackCount) + env.On("isWsl").Return(false) args := &args{ PSWD: &tc.Pswd, } diff --git a/src/segment_strava.go b/src/segment_strava.go index 2ed16cfb..efcb38c0 100644 --- a/src/segment_strava.go +++ b/src/segment_strava.go @@ -20,6 +20,7 @@ type strava struct { Hours int Authenticate bool Error string + URL string } const ( @@ -130,9 +131,7 @@ func (s *strava) string() string { if err != nil { return err.Error() } - if s.props.getBool(EnableHyperlink, false) { - text = fmt.Sprintf("[%s](https://www.strava.com/activities/%d)", text, s.ID) - } + s.URL = fmt.Sprintf("https://www.strava.com/activities/%d", s.ID) return text } diff --git a/themes/atomic.omp.json b/themes/atomic.omp.json index 7bb92806..e2ce8167 100644 --- a/themes/atomic.omp.json +++ b/themes/atomic.omp.json @@ -40,8 +40,7 @@ "home_icon": "", "folder_icon": " \uf07b ", "style": "folder", - "prefix": " \uf07b\uf553", - "enable_hyperlink": true + "prefix": " \uf07b\uf553" } }, { diff --git a/themes/atomicBit.omp.json b/themes/atomicBit.omp.json index 38a5f20f..df1a1d49 100644 --- a/themes/atomicBit.omp.json +++ b/themes/atomicBit.omp.json @@ -22,9 +22,7 @@ "foreground": "#ff5555", "properties": { "prefix": "<#ffffff>[", - "postfix": "<#ffffff>]", - "style": "folder", - "enable_hyperlink": true + "postfix": "<#ffffff>]" } }, { diff --git a/themes/clean-detailed.omp.json b/themes/clean-detailed.omp.json index 8250c5c4..e3f0cf4c 100644 --- a/themes/clean-detailed.omp.json +++ b/themes/clean-detailed.omp.json @@ -141,9 +141,7 @@ "properties": { "folder_separator_icon": " \uf554 ", "home_icon": "\uf7db ", - "folder_icon": "\uf07b ", - "style": "agnoster_full", - "enable_hyperlink": true + "folder_icon": "\uf07b " } } ] diff --git a/themes/jonnychipz.omp.json b/themes/jonnychipz.omp.json index b5fa8257..b1e6dc80 100644 --- a/themes/jonnychipz.omp.json +++ b/themes/jonnychipz.omp.json @@ -109,7 +109,6 @@ "properties": { "prefix": "<#000000> \ue5ff ", "style": "agnoster_short", - "enable_hyperlink": true, "home_icon": "\uF7DB ", "folder_icon": "<#000000>\ue5fe ", "folder_separator_icon": "<#000000>\uE0B1 " diff --git a/themes/jv_sitecorian.omp.json b/themes/jv_sitecorian.omp.json index aca523e8..1144bd4c 100644 --- a/themes/jv_sitecorian.omp.json +++ b/themes/jv_sitecorian.omp.json @@ -58,8 +58,7 @@ "properties": { "style": "mixed", "home_icon": "\uf7dd ", - "prefix": "", - "enable_hyperlink": true + "prefix": "" } }, { diff --git a/themes/markbull.omp.json b/themes/markbull.omp.json index b2796255..662e34ad 100644 --- a/themes/markbull.omp.json +++ b/themes/markbull.omp.json @@ -45,9 +45,7 @@ "foreground": "#fffef9", "background": "#C678DD", "properties": { - "style": "full", - "prefix": "", - "enable_hyperlink": false + "style": "full" } }, { diff --git a/themes/mojada.omp.json b/themes/mojada.omp.json index 5957e1e0..b7a65ef2 100644 --- a/themes/mojada.omp.json +++ b/themes/mojada.omp.json @@ -58,7 +58,6 @@ "folder_separator_icon": "/", "prefix": " \uE5FE ", "home_icon": "~", - "enable_hyperlink": true, "max_depth": 2 } }, diff --git a/themes/night-owl.omp.json b/themes/night-owl.omp.json index 8d62ce38..09e1229e 100644 --- a/themes/night-owl.omp.json +++ b/themes/night-owl.omp.json @@ -49,8 +49,7 @@ "folder_separator_icon": " <#011627>\uE0B1 ", "home_icon": "\uf7db ", "folder_icon": "\uf07c ", - "style": "agnoster", - "enable_hyperlink": true + "style": "agnoster" } }, { diff --git a/themes/nu4a.omp.json b/themes/nu4a.omp.json index 348eeb74..4d4386c5 100644 --- a/themes/nu4a.omp.json +++ b/themes/nu4a.omp.json @@ -37,7 +37,6 @@ "folder_separator_icon": "\ue0b9", "mixed_threshold": 8, "style": "mixed", - "enable_hyperlink": true, "mapped_locations": { "C:\\Users": "\uf007", "C:\\Windows": "\ue62a" diff --git a/themes/pixelrobots.omp.json b/themes/pixelrobots.omp.json index 78c7a538..75be8d74 100644 --- a/themes/pixelrobots.omp.json +++ b/themes/pixelrobots.omp.json @@ -103,7 +103,6 @@ "properties": { "prefix": "<#f2f200> \ue5ff ", "style": "agnoster_short", - "enable_hyperlink": true, "home_icon": "\uF7DB ", "folder_icon": "<#B5B2C2>\ue5fe ", "folder_separator_icon": "<#ffea00>\uE0B1 " diff --git a/themes/schema.json b/themes/schema.json index 22e70954..2ed6d45b 100644 --- a/themes/schema.json +++ b/themes/schema.json @@ -39,12 +39,6 @@ "description": "Fetch the version number", "default": true }, - "enable_hyperlink": { - "type": "boolean", - "title": "Enable hyperlink", - "description": "Displays an hyperlink for the current segment", - "default": false - }, "http_timeout": { "type": "integer", "title": "Http request timeout", @@ -407,9 +401,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -614,9 +605,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -643,9 +631,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -672,9 +657,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -701,9 +683,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -730,9 +709,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -907,9 +883,6 @@ "title": "NPM Icon", "description": "Icon/text to use for NPM", "default": " \uE71E" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -1167,9 +1140,6 @@ "title": "Enable the Mapped Locations feature", "description": "Replace known locations in the path with the replacements before applying the style.", "default": true - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -1199,9 +1169,6 @@ }, "missing_command_text": { "$ref": "#/definitions/missing_command_text" - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } @@ -1444,9 +1411,6 @@ "default": "standard", "enum": ["standard", "metric", "imperial"] }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" - }, "http_timeout": { "$ref": "#/definitions/http_timeout" }, @@ -1595,9 +1559,6 @@ "title": "cache timeout", "description": "The number of minutes the response is cached. A value of 0 disables the cache.", "default": 10 - }, - "enable_hyperlink": { - "$ref": "#/definitions/enable_hyperlink" } } } diff --git a/themes/slim.omp.json b/themes/slim.omp.json index be54c0f4..5d3e6dd0 100644 --- a/themes/slim.omp.json +++ b/themes/slim.omp.json @@ -63,7 +63,6 @@ "properties": { "prefix": "<#f2f200> \ue5ff ", "style": "agnoster_short", - "enable_hyperlink": true, "home_icon": "\uf015", "folder_icon": "<#B5B2C2>\ue5fe ", "folder_separator_icon": "<#B5B2C2>\ue0bf " diff --git a/themes/slimfat.omp.json b/themes/slimfat.omp.json index 93320b27..0f42c8bb 100644 --- a/themes/slimfat.omp.json +++ b/themes/slimfat.omp.json @@ -63,7 +63,6 @@ "properties": { "prefix": "<#f2f200> \ue5ff ", "style": "full", - "enable_hyperlink": false, "folder_icon": "<#B5B2C2>\ue5fe " } }, diff --git a/themes/smoothie.omp.json b/themes/smoothie.omp.json index f8a4fc6f..2ece5492 100644 --- a/themes/smoothie.omp.json +++ b/themes/smoothie.omp.json @@ -24,8 +24,7 @@ "home_icon": "\u2764", "folder_separator_icon": " 🢖 ", "prefix": "<#eaeaea>⎧ ⟨", - "postfix": "⟩ ", - "enable_hyperlink": false + "postfix": "⟩ " } }, { diff --git a/themes/sonicboom_dark.omp.json b/themes/sonicboom_dark.omp.json index 99f3ef1a..109dcb58 100644 --- a/themes/sonicboom_dark.omp.json +++ b/themes/sonicboom_dark.omp.json @@ -50,8 +50,7 @@ "home_icon": "\uF7DB", "folder_icon": "\ue5fe", "folder_separator_icon": " \uE0BD ", - "style": "agnoster_short", - "enable_hyperlink": true + "style": "agnoster_short" } }, { diff --git a/themes/sonicboom_light.omp.json b/themes/sonicboom_light.omp.json index 434aed14..29f78b31 100644 --- a/themes/sonicboom_light.omp.json +++ b/themes/sonicboom_light.omp.json @@ -50,8 +50,7 @@ "home_icon": "\uF7DB", "folder_icon": "\ue5fe", "folder_separator_icon": " \uE0BD ", - "style": "agnoster_short", - "enable_hyperlink": true + "style": "agnoster_short" } }, { diff --git a/themes/stelbent.minimal.omp.json b/themes/stelbent.minimal.omp.json index 0f62338b..0a38469a 100644 --- a/themes/stelbent.minimal.omp.json +++ b/themes/stelbent.minimal.omp.json @@ -58,8 +58,7 @@ "foreground": "#100e23", "background": "#91ddff", "properties": { - "style": "folder", - "enable_hyperlink": false + "style": "folder" } }, { diff --git a/themes/thecyberden.omp.json b/themes/thecyberden.omp.json index e2186f32..355f1203 100644 --- a/themes/thecyberden.omp.json +++ b/themes/thecyberden.omp.json @@ -30,8 +30,7 @@ "background": "#0080ff", "properties": { "prefix": " \uE5FF ", - "style": "full", - "enable_hyperlink": true + "style": "full" } }, {