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

adding a template at the focus location (idea) #124

Closed
MrOxMasTer opened this issue Dec 31, 2023 · 2 comments
Closed

adding a template at the focus location (idea) #124

MrOxMasTer opened this issue Dec 31, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@MrOxMasTer
Copy link

I want to get rid of the influence of a computer mouse as much as possible, and therefore I would like to create templates using a keyboard shortcut.

Templates can either be created by PCM by folder and "create New Template folder", or you can configure a keyboard shortcut.

But the keyboard shortcut can be directed to one action such as "FT.createFolderStructure" and the problem is that when my focus goes to explorer and I try to create a template, it does not determine where I am and I have to write the path every time to the point where I need to create a template when using keyboard shortcuts.

I think it would be a cool idea if extensions would determine where the focus is and create where I have focus now, like the keyboard shortcuts built into vs code: "ctrl + N" - create a new file, "ctrl + shift + N" - create a new folder

@Huuums
Copy link
Owner

Huuums commented Dec 31, 2023

Hey, thanks for reaching out. This is something I wanted to add for a while but I didn't find any API to implement this.
However as I just googled around a bit more i finally found something that might get it to work.

I will try to implement this when I find the time.

Reminder for myself: microsoft/vscode#3553 (comment)

@Huuums Huuums added the enhancement New feature or request label Dec 31, 2023
@MrOxMasTer
Copy link
Author

MrOxMasTer commented Dec 31, 2023

Hey, thanks for reaching out. This is something I wanted to add for a while but I didn't find any API to implement this. However as I just googled around a bit more i finally found something that might get it to work.

I will try to implement this when I find the time.

Reminder for myself: microsoft/vscode#3553 (comment)

Wow, great, thanks a lot! Happy New Year)

@Huuums Huuums closed this as completed in 067ada6 Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants