-
Notifications
You must be signed in to change notification settings - Fork 85
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
Allow ESC-e to invoke the sequence "g|$$EDITOR -" #66
Comments
This would work only when the editor supports editing stdin, and uses the "-" syntax to do it. Since this is not universal (for example, my version of emacs does not support it), it's probably not appropriate for a general release. However you can get the same effect by putting this line in your lesskey file: |
Ah! Cool. TIL -- there's a lesskey file Thank you, by the way for so much |
While wandering the internet, I saw an interesting workaround to being able to edit STDIN while using less.
I would like to propose adding an ESC-e command (which doesn't appear to be in use as of version 458) to stuff the keyboard with the sequence:
g|$$EDITOR -
Or, maybe even:
g|$${VISUAL:-$EDITOR} -
which I'm amazed I was able to get correct the first time I typed it...The text was updated successfully, but these errors were encountered: