mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
4a1aa2a7b4
commit
6f30788a16
|
@ -190,6 +190,15 @@ function _omp_create_widget() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function enable_poshtooltips() {
|
||||||
|
widget=${$(bindkey " "):2}
|
||||||
|
|
||||||
|
if [[ -z $widget ]]; then
|
||||||
|
widget=self-insert
|
||||||
|
fi
|
||||||
|
|
||||||
|
_omp_create_widget $widget _omp_render_tooltip
|
||||||
|
}
|
||||||
|
|
||||||
# legacy functions
|
# legacy functions
|
||||||
function enable_poshtooltips() {}
|
|
||||||
function enable_poshtransientprompt() {}
|
function enable_poshtransientprompt() {}
|
||||||
|
|
|
@ -12,7 +12,7 @@ func (f Feature) Zsh() Code {
|
||||||
case CursorPositioning:
|
case CursorPositioning:
|
||||||
return "_omp_cursor_positioning=1"
|
return "_omp_cursor_positioning=1"
|
||||||
case Tooltips:
|
case Tooltips:
|
||||||
return "_omp_create_widget self-insert _omp_render_tooltip"
|
return "enable_poshtooltips"
|
||||||
case Transient:
|
case Transient:
|
||||||
return "_omp_create_widget zle-line-init _omp_zle-line-init"
|
return "_omp_create_widget zle-line-init _omp_zle-line-init"
|
||||||
case FTCSMarks:
|
case FTCSMarks:
|
||||||
|
|
Loading…
Reference in a new issue