-
As part of section extraction, the extracted content is added to a new file. In the current state, the file name is generated randomly using a combination of alpha-numeric characters. However, some users may prefer to have custom file name templates. The purpose of this discussion is to determine the necessary parameters for the new file name template. It could include date components and the title of the extracted section. +1 this discussion to prioritize this. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Suppose a section called "My Section" is extracted to a newfile. Perhaps the template could have elements like date, title, and id; so you can make a template like |
Beta Was this translation helpful? Give feedback.
-
I made two issues related to this before I saw this discussion: The second suggests a more thorough frontmatter, I cite my own metadata yaml format and zora's toml frontmatter (zora is a static site generator written in rust). Finally I propose a new frontmatter template for IWE. |
Beta Was this translation helpful? Give feedback.
-
I may be a luddite for using directories instead of one flat folder, but as I go through and experiment with reformatting some of my notes to have extractions, even if all of the extracts followed "Parent-ExtractedHeader.md" naming, my file list will be a mile long by the end of the day. Not so big a deal in the end, I am sure I can get used to it. However, I would not be opposed to IWE mkdir new folders for large extracts. For example, I just tested extracing-subsections on a document with 25 subsections. It worked (like magic!) but it doubled the number of files in my root folder for a book in progress. I can re-architect my notes, reconsider my hygeine practices, start with folders to begin with for example, which all are probably much simpler than trying to get IWE to fix my not-clever note hierarchy. What would you do? I have a folder called THEMES and inside of it notes for all the different themes "DEATH," "LOVE" , etc. In order to make use of IWE auto-extraction I would have to make DEATH, LOVE etc Folders instead of .md notes. Which may work just fine and is quite easy to implement moving forward. If the generated file names follow "Parent-ExtractedHeading.md" as I suggest above, no problem re-organizing them after ward into seperate directories (good luck with the random character names!). Would running iwe normalize fix all of the relative paths of my moved notes? additional 2c: I don't care about dates in my note titles generally. current project doesnt benefit from it, though I could imagine it being useful in the future for different types of projects or personal diary. |
Beta Was this translation helpful? Give feedback.
-
Custom templates for generated file names are added, the details can be found here: https://github.com/iwe-org/iwe/blob/master/docs/feature-extract.md |
Beta Was this translation helpful? Give feedback.
Custom templates for generated file names are added, the details can be found here:
https://github.com/iwe-org/iwe/blob/master/docs/feature-extract.md