@@ -107,10 +107,8 @@ function get_commit_type() {
107
107
108
108
local commitTypes=(" feat" " fix" " perf" " refactor" " test" " style" " docs" " build" " ci" " cd" )
109
109
110
- local previewVisibility=" nohidden"
111
110
[ " ${isBreakingChange} " == " false" ] && {
112
111
commitTypes=(" ${commitTypes[@]} " " BREAKING-CHANGE" )
113
- previewVisibility=" hidden"
114
112
}
115
113
116
114
local GCOMMIT_TYPE_HEADER=" $( __type_header) "
@@ -120,7 +118,6 @@ function get_commit_type() {
120
118
--info=hidden\
121
119
--header " ${GCOMMIT_TYPE_HEADER} " \
122
120
--bind ' ?:toggle-preview' \
123
- --preview-window ${previewVisibility} \
124
121
--preview " source $__CUSTOM_GIT_UTIL /fzf_previews/gcommit/__type_preview;
125
122
__type_preview {} ${isBreakingChange} " ) "
126
123
@@ -144,7 +141,6 @@ function get_commit_scope() {
144
141
fzf --height=65% --preview-window :35%\
145
142
--header " ${GCOMMIT_SCOPE_HEADER} " \
146
143
--bind ' ?:toggle-preview' \
147
- --preview-window hidden\
148
144
--preview " source $__CUSTOM_GIT_UTIL /fzf_previews/gcommit/__scope_preview;
149
145
__scope_preview ${isBreakingChange} " ) "
150
146
@@ -188,7 +184,6 @@ function get_commit_description() {
188
184
--bind ' enter:print-query' \
189
185
--header " ${GCOMMIT_DESCRIPTION_HEADER} " \
190
186
--bind ' ?:toggle-preview' \
191
- --preview-window hidden\
192
187
--preview " source $__CUSTOM_GIT_UTIL /fzf_previews/gcommit/__description_preview;
193
188
__description_preview ${isBreakingChange} " ) "
194
189
echo " ${commitDescription} "
0 commit comments