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 request: hotkey to select & insert a template in a note #5

Closed
afokapu opened this issue Nov 15, 2020 · 8 comments
Closed

Feature request: hotkey to select & insert a template in a note #5

afokapu opened this issue Nov 15, 2020 · 8 comments

Comments

@afokapu
Copy link

@afokapu afokapu commented Nov 15, 2020

Hi Argenos, awesome work.

Problem

I have 10 templates among which 3 that I use a regurlaly (more than 10x a day for meeting notes).

Current behavior to insert template using hotkey

1 - Ctrl + Shift + T: open template list
2 - Select template with keyboard or mouse
3 - Template is inserted in note

Expected behavior to insert template using hotkey

1 - Ctrl + Shift + (0-9): insert the template bonded to a number (0-9)

Each template would have a number assigned to it (up to 10 templates)

Best

@afokapu afokapu changed the title Feature request: hotkey to insert a template in a note Feature request: hotkey to select & insert a template in a note Nov 15, 2020
@TonyCr46
Copy link

@TonyCr46 TonyCr46 commented Mar 17, 2021

I think this might be what you are getting at. I was just watching Bryan Jenks' video on YouTube about using templates. At about here, he talks about using a hotkey he set up (Cmd - Shift - I) to bring up a menu of his templates and then insert one of them. Problem is, he doesn't say how to create the hotkey and I'm too new to Obsidian to know how to do it. If anybody knows (or can figure it out), I'd like to know.

Thanks.

Tony

@mambocab
Copy link

@mambocab mambocab commented Mar 20, 2021

@TonyCr46 Open settings, then go to Hotkeys and search for Insert template. From there you can set it to whatever you like.

I understand if this is out of scope for this plugin, but I'd absolutely use this feature.

@TonyCr46
Copy link

@TonyCr46 TonyCr46 commented Mar 21, 2021

@mambocab Thanks for that. I will give it a try.

@Vinzent03
Copy link
Contributor

@Vinzent03 Vinzent03 commented Mar 27, 2021

@argenos I am working on an implementation. To set hotkeys for selected files, it would be needed to set them in a settings pane. Would that be too much for this plugin and I put this in an extra external plugin or is it okay?

@argenos
Copy link
Owner

@argenos argenos commented Mar 27, 2021

@Vinzent03 I could have sworn I there was a plugin already doing this, but I must have dreamt this. Maybe I''m thinking of your starred files plugin. In any case, I think a standalone plugin for inserting templates makes sense and allows for more features around templates to be added in the future.

@Vinzent03
Copy link
Contributor

@Vinzent03 Vinzent03 commented Mar 27, 2021

I agree with you. Makes it easier to find this feature in the Obsidian marketplace too.

@Vinzent03
Copy link
Contributor

@Vinzent03 Vinzent03 commented Apr 1, 2021

My new plugin is now available: https://github.com/Vinzent03/obsidian-hotkeys-for-templates This should fit the author's needs and the issue can be closed.

@argenos
Copy link
Owner

@argenos argenos commented Apr 1, 2021

Thank you, @Vinzent03!

@argenos argenos closed this Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants