Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select item on mouse click #919

Closed
DeeGeeMan opened this issue Aug 28, 2022 · 4 comments · Fixed by #963
Closed

Select item on mouse click #919

DeeGeeMan opened this issue Aug 28, 2022 · 4 comments · Fixed by #963

Comments

@DeeGeeMan
Copy link

Is there a way to select a file or directory with the mouse similar to ranger?

map <m-1> ???

@ilyagr
Copy link
Collaborator

ilyagr commented Aug 28, 2022

From #268 (comment) and the code, it looks like the answer is no. The location of the mouse isn't being checked anywhere.

p-ouellette added a commit to p-ouellette/lf that referenced this issue Oct 14, 2022
Left click to select, right click to open, similar to ranger.
Closes gokcehan#919.
p-ouellette added a commit to p-ouellette/lf that referenced this issue Oct 14, 2022
Left click to select, right click to open, similar to ranger.
Closes gokcehan#919.
p-ouellette added a commit to p-ouellette/lf that referenced this issue Oct 15, 2022
Left click to select, right click to open, similar to ranger.
Closes gokcehan#919.
p-ouellette added a commit to p-ouellette/lf that referenced this issue Oct 17, 2022
Left click to select, right click to open, similar to ranger.
Closes gokcehan#919.
p-ouellette added a commit to p-ouellette/lf that referenced this issue Oct 17, 2022
Left click to select, right click to open, similar to ranger.
Closes gokcehan#919.
gokcehan pushed a commit that referenced this issue Oct 19, 2022
* Add mouse support for selecting and opening files

Left click to select, right click to open, similar to ranger.
Closes #919.

* Add default mouse wheel mappings

* Update tcell to d3cbfcf

Commit d3cbfcf fixes a bug where mouse wheel events were misdelivered as
button events.
@p-ouellette
Copy link
Contributor

#963 is not in a released version yet. Did you build from the latest code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@ilyagr @p-ouellette @DeeGeeMan and others