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

Trouble enabling mouse in the "/etc/lfrc" sample file #997

Closed
Jeff-411 opened this issue Nov 8, 2022 · 4 comments
Closed

Trouble enabling mouse in the "/etc/lfrc" sample file #997

Jeff-411 opened this issue Nov 8, 2022 · 4 comments

Comments

@Jeff-411
Copy link

Jeff-411 commented Nov 8, 2022

I'm using the r27 release for Windows. I'm running C:\\Program Files\\Git\\bin\\bash.exe in Windows Terminal.

I'm new to LF, and really liking it. I've copied the /etc/lfrc example file to ~AppsData/local/lf/ and:

  1. Changed: set shell sh to set shell bash.
  2. Added: set dropbox to make sure things were working.
  3. Tried: left & right mouse clicks => no results.
  4. Tried: adding set mouse => "unknown mapping: " errors <m-1> <m-2> <m-up> <m-down>.
  5. Tried: adding set mouse! => same "unknown mapping: " errors.

I'm obviously missing some (mapping?) step here. Could somebody point me in the right direction to get LF's mouse features working?

TIA ~ Jeff

@p-ouellette
Copy link
Contributor

Full mouse support was added in #963 and hasn't made it into a release yet. If you want to use it you can build lf from source.

@Jeff-411
Copy link
Author

Jeff-411 commented Nov 9, 2022

Thanks p-ouellette.

@Susensio
Copy link

Hi @p-ouellette , how can I manually map the same behaviour as #963 while I wait for an official release?

@p-ouellette
Copy link
Contributor

@Susensio you can't get the same behavior, but you can create mappings for mouse buttons (there's no click position information).
See this section of the documentation:

lf/doc.go

Lines 1066 to 1082 in aa78b26

Mouse buttons are prefixed with 'm' character:
map <m-1> down # primary
map <m-2> down # secondary
map <m-3> down # middle
map <m-4> down
map <m-5> down
map <m-6> down
map <m-7> down
map <m-8> down
Mouse wheel events are also prefixed with 'm' character:
map <m-up> down
map <m-down> down
map <m-left> down
map <m-right> down

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

No branches or pull requests

4 participants