Skip to content

Commit

Permalink
Add default mouse wheel mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette committed Oct 17, 2022
1 parent 2fd62d0 commit d7e789e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ If the 'mouse' option is enabled, mouse buttons have the following default effec
Right mouse button
Enter a directory or open a file.
Scroll wheel
Scroll up or down.
# Configuration
Configuration files should be located at:
Expand Down
3 changes: 3 additions & 0 deletions docstring.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lf.1
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ If the 'mouse' option is enabled, mouse buttons have the following default effec
Right mouse button
Enter a directory or open a file.
.EE
.PP
.EX
Scroll wheel
Scroll up or down.
.EE
.SH CONFIGURATION
Configuration files should be located at:
.PP
Expand Down
2 changes: 2 additions & 0 deletions opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,14 @@ func init() {

gOpts.keys["k"] = &callExpr{"up", nil, 1}
gOpts.keys["<up>"] = &callExpr{"up", nil, 1}
gOpts.keys["<m-up>"] = &callExpr{"up", nil, 1}
gOpts.keys["<c-u>"] = &callExpr{"half-up", nil, 1}
gOpts.keys["<c-b>"] = &callExpr{"page-up", nil, 1}
gOpts.keys["<pgup>"] = &callExpr{"page-up", nil, 1}
gOpts.keys["<c-y>"] = &callExpr{"scroll-up", nil, 1}
gOpts.keys["j"] = &callExpr{"down", nil, 1}
gOpts.keys["<down>"] = &callExpr{"down", nil, 1}
gOpts.keys["<m-down>"] = &callExpr{"down", nil, 1}
gOpts.keys["<c-d>"] = &callExpr{"half-down", nil, 1}
gOpts.keys["<c-f>"] = &callExpr{"page-down", nil, 1}
gOpts.keys["<pgdn>"] = &callExpr{"page-down", nil, 1}
Expand Down

0 comments on commit d7e789e

Please sign in to comment.