When clicking on file preview, only open files on right-click (+ doc fix) (#975)
* When clicking on file preview, only open files on right-click Currently, when mouse is on, I often click on the preview accidentally since it's such a large target. Moreover, there is very little space I can click without having the `lf` state change drastically (since I must click on the current file for the preview to stay the same). This commit prevents that. * (Minor): Change example in docs to work around a bug Currently, the example fails confusingly for newer versions of `tput`. See https://github.com/gokcehan/lf/issues/718.
This commit is contained in:
1 parent
a94015d221
commit
48d1899ec8
4 files changed
+15
-9
No files matched your search
@@ -247,12 +247,12 @@ If the 'mouse' option is enabled, mouse buttons have the following default effec
|
||||
.PP
|
||||
.EX
|
||||
Left mouse button
|
||||
Click on a file or directory to select it. To open a file, click on the preview.
|
||||
Click on a file or directory to select it.
|
||||
.EE
|
||||
.PP
|
||||
.EX
|
||||
Right mouse button
|
||||
Enter a directory or open a file.
|
||||
Enter a directory or open a file. Also works on the preview window.
|
||||
.EE
|
||||
.PP
|
||||
.EX
|
||||
@@ -1435,7 +1435,8 @@ All clients have a unique id number but you may not be aware of the id number wh
|
||||
Since lf does not have control flow syntax, remote commands are used for such needs. For example, you can configure the number of columns in the ui with respect to the terminal width as follows:
|
||||
.PP
|
||||
.EX
|
||||
cmd recol %{{
|
||||
cmd recol ${{
|
||||
# Use ${{ instead of %{{ to work around https://github.com/gokcehan/lf/issues/718.
|
||||
w=$(tput cols)
|
||||
if [ $w -le 80 ]; then
|
||||
lf -remote "send $id set ratios 1:2"
|
||||
|
||||
Reference in new issue
Block a user