-
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
:e needs to create nonexistent files automatically #2274
Comments
It's a debate between behaving like pure-vanilla VIM or leveraging some niceties from VS Code. I feel like the current behaviour is a bit more friendly, but I'll leave it up to community to decide. |
Well, the whole point of using a VIM emulator is not having to use the mouse and staying on the home row as much as possible. I'm not sure if there's a keyboard shortcut I don't know of to actually confirm this dialog, but even then it's most likely one that doesn't fit into the VIM scheme. I mean typing :e to open/create a file isn't something someone without a VIM background would guess anyway, so why not stick to the original behaviour. I personally have used VIM only for a few months now and it already bothers me to a point where I considered installing extra addons just to create files that way... EDIT: The user should at least be given the option to use the original approach, unless the new approach is somehow guaranteed to be more efficient. Another option would be a popup asking to undo the file creation which disappears after a few seconds. It doesn't matter if you click "cancel" or "undo" for the GUI-user and at the same time a traditional VIM-user just has to ignore the popup for a few seconds. |
By the way: are there any plans to add the ability to change the current working directory like |
I forgot to ask: Is there at least a way to confirm the currently used pop-up with keyboard only? |
I was also wondering why ":e example.txt" did not create the new file just then, as soon as I typed it in. It would make so much more sense, because normally, when I type it in, I am already sure that I want a new file to be created. Also VIM is about doing everything a tiny bit faster, by just using the keyboard, why bring in an element, that is not controllable via the keyboard, this is just disturbing the workflow. |
While I would love |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST
What happened:
Typing ":e example.txt" opens a popup asking whether I want to create a new file.
What did you expect to happen:
I expect the new file to be created automatically, especially cause the popup cannot be controlled via keyboard.
How to reproduce it (as minimally and precisely as possible):
Enter a file name that doesn't exist in that path.
Environment: Windows
The text was updated successfully, but these errors were encountered: