-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
why bat can not enter edit mode? #3051
Comments
When |
This functionality could potentially come as part of #1053 |
@keith-hall |
When you run
I don't think so. You would see the same behavior with |
@keith-hall that means that when you click v key, bat should call $VISUAL or $EDITOR to edit file, just like less does. but now bat actually can not edit any file, right? so I still think this should be a bug for bat, or be a new feature as your opinion when bat open only one file. |
The interactive output you see is provided by #1053, which I'm currently working on an implementation for, could provide such functionality even in cases with multiple files. |
@einfachIrgendwer0815 |
#2763 is related. This comment suggests a possible workaround. |
when I use sudo bat a.sh then enter v, I can not enter edit mode as help document described. my env variable is
echo $VISUAL
nano -m -$
echo $EDITOR
nano -m -$
the status bar show the message as following:
can not edit standard input (press enter)
please help to see this problem, thanks a lot
The text was updated successfully, but these errors were encountered: