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

Feature suggestion: do not create new file (and parent folders) until save #155

Open
ggets opened this issue May 26, 2016 · 3 comments
Open

Comments

@ggets
Copy link

ggets commented May 26, 2016

Title pretty much explains it. Right now the moment you hit enter on the "Enter a path for a new file" bar
the file is created and this is the only available behavior (to my knowledge at least).

@skuroda
Copy link
Collaborator

skuroda commented Jun 23, 2016

You're correct, that is the only behavior. Storing the directory and creating the file on save is an interesting point. Short of overriding the built in save function (which would simply be creating a new keymap for cmd/ctrl + s), I don't know how I'd do it. I think it would be doable though, from a technical perspective. Effectively, if the file already exists on disk, use the original save function. If it does not, check some saved "view" property to do the save.

@ggets
Copy link
Author

ggets commented Jun 28, 2016

or a pre-save event? (if there is one, of course - i am not aware) but if there is, that would be a better choice, probably imo.

@FichteFoll
Copy link
Member

Just for clarification, there is a pre-save event. Maybe not 6 years ago, but certainly now.

As for the actual feature itself, I'd probably make this configurable and also a global option, because I can see workflows where either behavior would be appreciated but in order not to mix it too much (for example by providing two commands), I'd rather make this an explicit choice for the user for all situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants