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
+4
-3
@@ -223,10 +223,10 @@ If the 'mouse' option is enabled, mouse buttons have the following default
|
||||
effects:
|
||||
|
||||
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.
|
||||
|
||||
Right mouse button
|
||||
Enter a directory or open a file.
|
||||
Enter a directory or open a file. Also works on the preview window.
|
||||
|
||||
Scroll wheel
|
||||
Scroll up or down.
|
||||
@@ -1286,7 +1286,8 @@ 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:
|
||||
|
||||
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