Add toggle-preview-wrap action
This commit is contained in:
parent
309e1d8619
commit
c82fb3c9b9
@ -1,6 +1,11 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.16.5
|
||||||
|
------
|
||||||
|
- Minor bug fixes
|
||||||
|
- Added `toggle-preview-wrap` action
|
||||||
|
|
||||||
0.16.4
|
0.16.4
|
||||||
------
|
------
|
||||||
- Added `--border` option to draw border above and below the finder
|
- Added `--border` option to draw border above and below the finder
|
||||||
|
@ -500,6 +500,7 @@ e.g. \fBfzf --bind=ctrl-j:accept,ctrl-k:kill-line\fR
|
|||||||
\fBtoggle-in\fR (\fB--reverse\fR ? \fBtoggle+up\fR : \fBtoggle+down\fR)
|
\fBtoggle-in\fR (\fB--reverse\fR ? \fBtoggle+up\fR : \fBtoggle+down\fR)
|
||||||
\fBtoggle-out\fR (\fB--reverse\fR ? \fBtoggle+down\fR : \fBtoggle+up\fR)
|
\fBtoggle-out\fR (\fB--reverse\fR ? \fBtoggle+down\fR : \fBtoggle+up\fR)
|
||||||
\fBtoggle-preview\fR
|
\fBtoggle-preview\fR
|
||||||
|
\fBtoggle-preview-wrap\fR
|
||||||
\fBtoggle-sort\fR
|
\fBtoggle-sort\fR
|
||||||
\fBtoggle+up\fR \fIbtab (shift-tab)\fR
|
\fBtoggle+up\fR \fIbtab (shift-tab)\fR
|
||||||
\fBunix-line-discard\fR \fIctrl-u\fR
|
\fBunix-line-discard\fR \fIctrl-u\fR
|
||||||
|
@ -723,6 +723,8 @@ func parseKeymap(keymap map[int][]action, str string) {
|
|||||||
appendAction(actNextHistory)
|
appendAction(actNextHistory)
|
||||||
case "toggle-preview":
|
case "toggle-preview":
|
||||||
appendAction(actTogglePreview)
|
appendAction(actTogglePreview)
|
||||||
|
case "toggle-preview-wrap":
|
||||||
|
appendAction(actTogglePreviewWrap)
|
||||||
case "toggle-sort":
|
case "toggle-sort":
|
||||||
appendAction(actToggleSort)
|
appendAction(actToggleSort)
|
||||||
case "preview-up":
|
case "preview-up":
|
||||||
|
@ -199,6 +199,7 @@ const (
|
|||||||
actPrintQuery
|
actPrintQuery
|
||||||
actToggleSort
|
actToggleSort
|
||||||
actTogglePreview
|
actTogglePreview
|
||||||
|
actTogglePreviewWrap
|
||||||
actPreviewUp
|
actPreviewUp
|
||||||
actPreviewDown
|
actPreviewDown
|
||||||
actPreviewPageUp
|
actPreviewPageUp
|
||||||
@ -1459,6 +1460,11 @@ func (t *Terminal) Loop() {
|
|||||||
}
|
}
|
||||||
req(reqList, reqInfo, reqHeader)
|
req(reqList, reqInfo, reqHeader)
|
||||||
}
|
}
|
||||||
|
case actTogglePreviewWrap:
|
||||||
|
if t.hasPreviewWindow() {
|
||||||
|
t.preview.wrap = !t.preview.wrap
|
||||||
|
req(reqPreviewRefresh)
|
||||||
|
}
|
||||||
case actToggleSort:
|
case actToggleSort:
|
||||||
t.sort = !t.sort
|
t.sort = !t.sort
|
||||||
t.eventBox.Set(EvtSearchNew, t.sort)
|
t.eventBox.Set(EvtSearchNew, t.sort)
|
||||||
|
@ -596,7 +596,7 @@ func (r *LightRenderer) MaxY() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *LightRenderer) DoesAutoWrap() bool {
|
func (r *LightRenderer) DoesAutoWrap() bool {
|
||||||
return true
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *LightRenderer) IsOptimized() bool {
|
func (r *LightRenderer) IsOptimized() bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user