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 to refactored note [enhancement] #24

Closed
seb-mm opened this issue Nov 8, 2020 · 4 comments
Closed

Adding a template to refactored note [enhancement] #24

seb-mm opened this issue Nov 8, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@seb-mm
Copy link

seb-mm commented Nov 8, 2020

Currently I write notes on a subtopic in my topic note and refactor them when I have enough for a subtopic note. Now I have to manually add a template and a link to the topic in the subtopic note.

It would be great if the refactoring could add a template automatically to the refactored note.
In the template I would like to include a placeholder. This placeholder should then be transformed to a link to the note from which I performed the refactoring action. (So more functionality than the standard Obsididan templates.)

Would this be possible?

@seb-mm seb-mm changed the title Adding a template to refactored note Adding a template to refactored note [enhancement] Nov 8, 2020
@lynchjames

This comment has been minimized.

@seb-mm
Copy link
Author

seb-mm commented Nov 12, 2020

# {{title}} <!-- this functionality is already implemented with the "first line of selected text as heading -->

<here is where the refactored text goes in the new note>



<!-- I would like to be able to add a template like under here to the new note automatically -->

&emsp;

---

**↑:**
[[<link to note from which I performed the refactor>]]
**vgl.:**

**Verweis:**

**Status:**
#
**Datum:**
{{date}}
**Links zu dieser Seite:**

This is my template for creating new notes . Under the arrow I always link to the note that is above it in the hierarchy, so in this case where I performed the note refactor. Currently I do this by hand. It would be great if a placeholder could be implemented for the template feature that has this behaviour.

In fact I don't want to add a template to the original note.
The current behaviour of inserting a link to the refactored note is not my optimal workflow, I mostly move it to the end of my original note (that's how I link downwards in the hierarchy).
I'm not sure whether it would be a lot of work to make a toggle for it to either insert the link to where the refactoring happened or to the end of the original note.
@mrjackphil's plugin (https://github.com/mrjackphil/obsidian-crosslink-between-notes) has this behaviour when linking a note up in the hierarchy by pressing a hotkey, that is what I would like to happen when I refactor a note.

edit: I hope I've used the word "refactored note" correctly, when I say this I mean the new note created from the original note.

@lynchjames
Copy link
Owner

Got it, thanks for the additional details. I think I have all I need to implement.

@lynchjames
Copy link
Owner

Available in version 1.5.0.

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