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

Make :e open up a file dialog if no file name is passed in #1877

Closed
Chillee opened this issue Jun 27, 2017 · 4 comments
Closed

Make :e open up a file dialog if no file name is passed in #1877

Chillee opened this issue Jun 27, 2017 · 4 comments

Comments

@Chillee
Copy link
Member

Chillee commented Jun 27, 2017

As @xelra said on the neovim gitter,

Well, when I specified a filename it did try to open a file based on the current working directory and offered to create it. For that I'd actually expect it to directly create it. And for without specifying a filename I expected a dialogue to browse for a file.

@westim
Copy link
Contributor

westim commented Sep 19, 2017

I believe the API to enable this is not yet implemented in VSCode, but is In-Progress on the September Iteration Plan and should be released early October:

image

After it's promoted to stable, it should be as easy as calling this API in the right place:

vscode.commands.ExecuteCommand('vscode.window.showOpenDialog');

@Saldivarcher
Copy link

Can I try working on this using openTextDocument as suggested by @jpoon?

@jpoon
Copy link
Member

jpoon commented Oct 20, 2017

I haven't seen any updates from @DanEEStar so he may have abandoned the PR? Feel free to take it on though @miguelsaldivar

@DanEEStar
Copy link
Contributor

@miguelsaldivar I updated my pull-request. But I think here

await vscode.commands.executeCommand(
is also a possibility to use openTextDocument ?!

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

5 participants