generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01c841f
commit d60a0b6
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Release nots for 1.46.0 | ||
--- | ||
|
||
This release contains one little change that was easy to make, but I think that it unlocks a very interesting use case for modal forms. | ||
There is a not very well documented feature in the FormEditor that allows to define a specific (and simple) template linked to that form. | ||
I implemented it partially for fun, because I love coding parsers but also partially because many times I only need very basic templating | ||
functionality and I don't want to have to write another templater template. | ||
Also, I find very appealing the idea of having both the form and the template visible and linked in the same place, which is not the case when you use templater templates. | ||
Up until now, the only thing you can use this templates for was for creating new notes from that template. | ||
You trigger a command, select the form to use, fill it and the template is used to create the note. | ||
|
||
But I find myself many times defining a very simple for for easier the insertion of certain data in an existing note. | ||
However, for that I was forced to first create the form then create a templater template that uses that form (whith all the boilerplate it entails) | ||
and then either tell templater to create a command for that template or use the insert template from templater command. | ||
When I saw how easy is to create commands that insert text in the current note I thought it was a no brainer to not take advantage of that with the form templates. | ||
|
||
So that is the little but big improvement in this release. You can now use the form templates to insert text in the current note at the cursor position. | ||
|
||
To give an example, I have a very simple form for inserting an external link. | ||
While the experience of doing this in the Obsidian desktop app is fine, it is a bit tedious to do on mobile. | ||
|
||
My form looks as simple as this: | ||
![External link form](../media/external-link-form.png) | ||
|
||
And the template is also very simple, just: | ||
|
||
``` | ||
[{{title}}]({{url}}) | ||
``` | ||
|
||
Now, I can trigger a command that will insert the template in the current note at the cursor position after filling and submitting the form. | ||
|
||
Hope you find this useful. I'm already using it a lot. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.