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

Some keys are ignored when used from WSL #109

Open
mdentremont opened this issue Dec 23, 2020 · 3 comments
Open

Some keys are ignored when used from WSL #109

mdentremont opened this issue Dec 23, 2020 · 3 comments

Comments

@mdentremont
Copy link

mdentremont commented Dec 23, 2020

Per Delta's recommendations, I've replaced git's less.exe with this version (from here).

The reason I'm using Window's git, is that my git repository is checked out on the Windows filesystem, so using git.exe is much faster than the WSL git.

Everything works great, except that some keys are ignored in less. The most noticeable is the lowercase "L" key. Other keys which are ignored are ";", and "=".

My workaround is to chain those keys with "alt", and they work fine. It's not a major issue, but it is kind of annoying and most of the time I do a search in less, wonder why it didn't work, then go back and realize a character was ignored.

To reproduce, install WSL (I'm using v1, this may not be an issue in v2), download less.exe from here, then run less.exe some file, and try to search. You should see that the above keys are ignored.

I tried to see if this was reproducible in Git Bash - but this version of less just seems to dump to stdout when ran from there (the regular less.exe which comes with git behaves properly).

@gwsw
Copy link
Owner

gwsw commented Dec 31, 2020

First, I don't know what WSL is, can you elaborate?

Second, building from the less github source is not recommended except for developers who are working on less itself. You should be downloading the "recommended" less source from http://greenwoodsoftware.com/less/download.html. If there is a beta release posted there which has a particular feature you want, you could also download the beta release. But the intermediate versions checked in to github are not guaranteed to be working at all. Can you confirm whether you see this issue when building from less-563 downloaded from the greenwoodsoftware site?

@gwsw gwsw added the question label Jan 3, 2021
@mdentremont
Copy link
Author

@gwsw I did use the latest version from http://greenwoodsoftware.com/less/download.html (563).

The link @jftuga posted is what I'm using (specifically I'm on WSL 1).

I completely understand if this is outside the scope of what you care to look into, I just figured I'd post here just in case anything came to mind -- I do have a workaround of pressing alt+l, alt+; and alt+= so it's not the end of the word if I just need to live with the issue 👍

@gwsw gwsw removed the question label Jan 14, 2021
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

3 participants