Closed noam-codefresh closed 1 year ago
@noam-codefresh I would disable shell integrations if they're enabled and report to the code team if it persists as there's no logic on our end that can cause this as for zsh tooltips are even a native implementation (thus no dark magic).
Code of Conduct
What happened?
this happens in my vscode zsh terminal (and not in zsh in iterm) when i start typing commands that cause my tooltips to appear, it seems that they cause my caret to "jump" left and when i continue to type i overwrite my prompt. when i delete the "tooltips" section of the theme, things seem to behave fine in vscode terminal.
it might also be related to vscode. i am in the insiders build
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "version": 2, "console_title_template": "{{if .Root}}\uf0e7 {{end}}{{.User}}@{{.Host}} {{.Folder}}", "final_space": true, "palette": { "black": "#111111", "white": "#FFFFFF", "blue-grey": "#193549", "iterm-foreground": "#80FFEA", "os": "#546E7A", "os-foreground": "#26C6DA", "shell": "#0077C2", "root": "#FFFF66", "path": "#61AFEF", "battery": "#F36943", "battery-foreground": "#193549", "battery-charging": "#40C4FF", "battery-discharging": "#FF5722", "battery-charged": "#4CAF50", "connection": "#8822ee", "connection-foreground": "#222222", "time": "#8800DD", "time-foreground": "#FEFEFE", "exit": "#00897B", "exit-error": "#E91E63", "aws": "#FFA400", "gcp": "#47888d", "git": "#FFFB38", "git-modified": "#FF9248", "git-diverged": "#FF4500", "git-ahead": "#B388FF", "git-behind": "#B388FF", "go": "#8ED1F7", "ipify": "#C386F1", "kubectl": "#EBCC34", "node": "#6CA35E", "npm": "#FFEB3B" }, "blocks": [ { "alignment": "left", "type": "prompt", "segments": [ { "type": "iterm", "interactive": true, "style": "plain", "foreground": "#80ffea", "template": "{{ .PromptMark }}" }, { "type": "os", "background": "p:os", "foreground": "p:os-foreground", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} " }, { "type": "connection", "powerline_symbol": "\uE0B0", "background": "p:connection", "foreground": "p:connection-foreground", "style": "powerline" }, { "type": "shell", "background": "p:shell", "foreground": "p:white", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " {{ .Name }} " }, { "type": "root", "background": "p:root", "foreground": "p:black", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " \uf0e7 " }, { "type": "path", "background": "p:path", "foreground": "p:white", "powerline_symbol": "\ue0b0", "properties": { "folder_icon": " \uf115 ", "folder_separator_icon": "\ue0b1", "style": "agnoster" }, "style": "powerline", "template": " {{ .Path }} " }, { "type": "battery", "background": "p:battery", "background_templates": [ "{{if eq \"Charging\" .State.String}}p:battery-charging{{end}}", "{{if eq \"Discharging\" .State.String}}p:battery-discharging{{end}}", "{{if eq \"Full\" .State.String}}p:battery-charged{{end}}" ], "foreground": "p:white", "powerline_symbol": "\ue0b0", "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", "discharging_icon": "\ue231 " }, "style": "powerline", "template": " {{ if not .Error }}{{.Icon}}{{.Percentage}}{{ end }}\uf295 " }, { "type": "executiontime", "style": "powerline", "powerline_symbol": "\uE0B0", "background": "p:time", "foreground": "p:white", "properties": { "threshold": 500, "style": "austin" }, "template": " \ufbab{{ .FormattedMs }} " }, { "type": "exit", "background": "p:exit", "background_templates": ["{{ if gt .Code 0 }}p:exit-error{{ end }}"], "foreground": "p:exit-foreground", "powerline_symbol": "\ue0b0", "properties": { "always_enabled": false }, "style": "powerline", "template": " {{ if gt .Code 0 }}\uf00d {{ .Meaning }}{{ else }}\uf42e{{ end }} " } ] } ], "tooltips": [ { "background": "p:aws", "foreground": "p:white", "leading_diamond": "\ue0b6", "style": "diamond", "template": " \ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}} ", "tips": ["aws"], "trailing_diamond": "\ue0b4", "type": "aws" }, { "background": "p:git", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}p:git-modified{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:git-diverged{{ end }}", "{{ if gt .Ahead 0 }}p:git-ahead{{ end }}", "{{ if gt .Behind 0 }}p:git-behind{{ end }}" ], "foreground": "p:blue-grey", "leading_diamond": "\ue0b6", "properties": { "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, "fetch_worktree_count": true }, "style": "diamond", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ", "tips": ["git"], "trailing_diamond": "\ue0b4", "type": "git" }, { "background": "p:gcp", "foreground": "p:white", "leading_diamond": "\ue0b6", "style": "diamond", "tips": ["gcloud"], "trailing_diamond": "\ue0b4", "type": "gcp" }, { "background": "p:go", "foreground": "p:white", "leading_diamond": "\ue0b6", "style": "diamond", "template": " \ufcd1 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "tips": ["go"], "trailing_diamond": "\ue0b4", "type": "go" }, { "background": "p:ipify", "foreground": "p:white", "leading_diamond": "\ue0b6", "properties": { "cache_timeout": 5, "http_timeout": 1000 }, "style": "diamond", "template": " {{ .IP }} ", "tips": ["ip"], "trailing_diamond": "\ue0b4", "type": "ipify" }, { "background": "p:kubectl", "foreground": "p:black", "leading_diamond": "\ue0b6", "style": "diamond", "template": " \ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ", "tips": ["kubectl", "k"], "trailing_diamond": "\ue0b4", "type": "kubectl" }, { "background": "p:node", "foreground": "p:white", "leading_diamond": "\ue0b6", "powerline_symbol": "\ue0b0", "properties": { "fetch_package_manager": true }, "style": "diamond", "template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "tips": ["node", "nvm", "yarn"], "trailing_diamond": "\ue0b4", "type": "node" }, { "background": "p:npm", "foreground": "p:blue-grey", "leading_diamond": "\ue0b6", "style": "diamond", "template": "\ue71e {{ .Full }} ", "tips": ["npm"], "trailing_diamond": "\ue0b4", "type": "npm" }, { "background": "p:npm", "foreground": "p:blue-grey", "leading_diamond": "\ue0b6", "style": "diamond", "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} ", "tips": ["pr"], "trailing_diamond": "\ue0b4", "type": "project" } ] }
What OS are you seeing the problem on?
macOS
Which shell are you using?
zsh
Log output