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

Explorer Focus keyboard shortcuts #21

Closed
waderyan opened this issue Nov 4, 2016 · 2 comments
Closed

Explorer Focus keyboard shortcuts #21

waderyan opened this issue Nov 4, 2016 · 2 comments
Assignees
Milestone

Comments

@waderyan
Copy link

waderyan commented Nov 4, 2016

Copied from #4 (comment). OP = @pmbenjamin

Also, Atom supports adding new files/directories in their explorer via keyboard shortcuts.
For example:

  • In Atom, when File Explorer is in focus, key a will prompt the user to type a file name (similar to how > Files: New File currently operates in VS Code).
  • In Atom, when File Explorer is in focus, key A (or shift+a) will prompt the user to type a directory name (similar to how > Files: New Folder currently operates in VS Code).

I would love to see these shortcuts ported over to VSCode as well.
Since this is currently possible with the Command Palette in VSCode (see screenshot), I think this should be as simple as binding keyboard shortcuts to skip the Command Palette.
screen shot 2016-11-02 at 3 36 58 pm

I foresee an implementation looking something like:

{
    "mac": "a",
    "win": "a",
    "linux": "a",
    "key": "a",
    "command": "workbench.files.action.createNewFile",
    "when": "explorerFocus"
},
{
    "mac": "shift+a",
    "win": "shift+a",
    "linux": "shift+a",
    "key": "shift+a",
    "command": "workbench.files.action.createNewFolder",
    "when": "explorerFocus"
}

Possible Challenges/Concerns with proposed implementation:

  • I don't think VSCode supports explorerFocus
  • I don't know what is the command used by the Command Palette to create new files and folders.

If the maintainers feel like this should be a separate GitHub Issue, I'd be glad to create a separate GitHub Issue.

@waderyan
Copy link
Author

waderyan commented Nov 4, 2016

Created this issue in VS Code for explorerFocus request. microsoft/vscode#15002

@waderyan
Copy link
Author

This issue has now been fixed microsoft/vscode#4557

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant