Skip to content
Myr

Add 'insert' key for --bind

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #1744

authored by Junegunn Choi · committed by Junegunn Choi · parent ec75d16 · Browse files · 5 files+12 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+12 added−2 removed

  • other:+12 added−2 removed

5 files+12 added−2 removed

modified:man/man1/fzf.1+3 added-1 removed
19 unmodified lines
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN22THE SOFTWARE.23..24.TH fzf 1 "Dec 2019" "fzf 0.20.0" "fzf - a command-line fuzzy finder"24.TH fzf 1 "Feb 2020" "fzf 0.21.0" "fzf - a command-line fuzzy finder"2526.SH NAME27fzf - a command-line fuzzy finder28
570 unmodified lines
599\fIhome\fR600.br601\fIend\fR602.br603\fIinsert\fR604.br605\fIpgup\fR (\fIpage-up\fR)606.br607\fIpgdn\fR (\fIpage-down\fR)608.br
170 unmodified lines
modified:src/tui/light.go+4 added-1 removed
451 unmodified lines
452 }453 *sz = 4454 switch r.buffer[2] {455 case 50:456 if r.buffer[3] == 126 {457 return Event{Insert, 0, nil}458 }456 if len(r.buffer) == 5 && r.buffer[4] == 126 {459 if len(r.buffer) > 4 && r.buffer[4] == 126 {460 *sz = 5461 switch r.buffer[3] {462 case 48:463 return Event{F9, 0, nil}
504 unmodified lines
modified:src/tui/tcell.go+2 added
316 unmodified lines
317 return Event{AltRight, 0, nil}318 }319 return Event{Right, 0, nil}320321 case tcell.KeyInsert:322 return Event{Insert, 0, nil}323 case tcell.KeyHome:324 return Event{Home, 0, nil}325 case tcell.KeyDelete:326 return Event{Del, 0, nil}
293 unmodified lines
modified:src/tui/tui.go+1 added
64 unmodified lines
65 Left66 Right67 Home68 End69 Insert7071 SUp72 SDown73 SLeft
437 unmodified lines
modified:src/options.go+2 added
470 unmodified lines
471 case "home":472 chord = tui.Home473 case "end":474 chord = tui.End475 case "insert":476 chord = tui.Insert477 case "pgup", "page-up":478 chord = tui.PgUp479 case "pgdn", "page-down":480 chord = tui.PgDn
964 unmodified lines