Yeah, index cards are a perfect way to think of them, especially as they’re the origin of the ZK method.

When I say line, I’m referring to my understanding of a line in markdown (ie text until you use a line brake) which for me tend to be a single thought.

But yeah, everything you highlighted to “extract”.

So if you’re changing the title of the note from the text that will be pasted in (the text you’re wanting to embed), how will you be able to confidently search for them later if they don’t match? Also currently you can’'t change the display text of an embed.

Eg: ![ [changed title | the text that is on the first line] ]
doesn’t work

Sorry if I didn’t communicate it clearly. The way I imagine it goes something like this: I’m reading through some notes I just wrote and I see a section or paragraph (or individual line or word I suppose, although that’s not how I’d use it) that I think is important or reusable enough to get its own ‘card’. I highlight that section, hit the ‘embed’ button, and the program pops up a text box to enter the name for the new note. I enter ‘My new note’ or whatever and hit enter. Obsidian copies the text I’ve selected from my current note to My new note.md, and replaces it in the source with ![[My new note]]
Because it’s embedded, the preview looks almost the same, but now anywhere else in my vault I can easily reference or embed that idea. I’m not sure what you mean about changing the display text of the embed - it’s embedded, so what displays is the full content of the note.

We don’t just name the note as the source text for a couple reasons:

  1. If the section you select is longer than a few words, the note titles become very difficult to parse or work with,
  2. It doesn’t matter all that much what the note title is. My inclination is that it’s better to have short easily parsable note titles that don’t give much information, since the actual good stuff is in the file itself. All the title has to be able to do is direct me back to the note - it should be the name of the idea, not the idea itself. Especially if we have a good full-text search, where I can easily find something that’s in the text of the file if the name isn’t helping me. I think of the titles more like a subject line of an email, rather than the whole body - if I’m skimming the list of files, I get get an idea what I’ll see if I open the note, and I don’t really need any more than that.
  3. It doesn’t matter whether the title matches the text because I’m not going to remember the text later. If I have an idea about something, and I want to reference it later, I’m not going to want to, or likely be able to, memorize all my thoughts and reasoning I’ve written down. All I need to be able to do is remember what the idea was about, and I can probably find it, so for me at least, it’s better to call the note ‘ideas about x’ or ‘why x is y’ and make it something easily findable, rather than writing out my whole thought process in the title.

Note titles should be as compressed as possible - I’m not going to be reading through my file explorer to understand my notes, all the title has to be able to do is direct me to the file, and doesn’t really need to be able to convey any information beyond what’s in side - it should be a subject line, not the actual body. I titled this post Note Extractor because that’s enough that you can a) get some idea what it is without opening it and b) if you’re looking for similar ideas, it will come up. I didn’t feel the need to title it

This is something that I’ve seen discussed in discord but I don’t think it’s gotten a request card yet so figured I’d put it up for official discussion over here. The idea is that in order to relieve the inability to link directly to blocks, while still facilitating quick note taking without careful formatting of headings and such, you can easily ‘pull out’ any chunk of text to its own note so you can easily link to it, replacing it with an embed in the original. That is, if I write a paragraph that I think I will want to link to or reuse, I can select it, click ‘extract’, enter a name for the new note, and Obsidian will a) create a new note with that title, b) copy the selected text into that note, and c) delete the text from the original note, replacing it with a ![[new note]] embed. This helps alleviate one of the big issues for people used to outliners, namely that lines aren’t first-class entities, while allowing you to write naturally without thinking about note structure as you go - ideas can be easily pulled out into their own atomic notes as needed, so you don’t have to decide as you go whether it needs its own file or not

because you can’t even read it just scrolling by and it’s not really necessary - the title is for organization, the body is for information

1 Like

I see. Perhaps I’m thinking about the title being associated to the note because 1) emending displays the title currently 2) it requires mental processing to properly title it and you may not know what to call it

Perhaps the text is pasted in the note as a header and it’s a header embed? This would display just the text you copied.

I like the idea. Personally I’d definitely want an option to have UIDs automatically be generated in the title to help keep the notes unique & baked context/info in it regardless of what I name it.

If Obsidian could have a toggle to filter out the UIDs in the file explorer it could keep things legible.

That’s what the existing ZK UID plugin does, isn’t it? I don’t use it but I think it’s the same idea- put an id in the title of every note to guarantee uniqueness

Currently it’s manual, when you press the button it just makes (and opens) a blank note with a ZK UID as the title. If I could have an option to have all new notes automatically have a UID be added (to the begging or after “my text”) that’d solve it.

这个问题我在处理中。用Quicker软件就可以轻松解决。

I already do this by paragraph, not necessarily line thought, that seems a bit excessive. ( :sweat_smile: those are all lines, lol. I swear I have paragraphs too!)

An example of another program that does this is TiddlyWiki.

Those top 3 embeds on the page on the right all look like paragraph embeds without a header. What’s your method for that?

.markdown-embed h3, .markdown-embed h2, .markdown-embed h1 {
display:none !important;
}

If I want a title to display in my embed, then i just use h4

I can see this feature being very useful for myself, although I think I would want a couple of variations of this; one where the selected text is just replaced with a link to the new note and one where the selected text remains in the original note AND a new note is created with the selected text (perhaps with the option of including a link).

As also mentioned it would be useful to be able to show where the selected text came from if this was desired.

1 Like

For me the typical workflow is, that I add consecutively informations to a topic in a md. File and organize them there.
When the file gets to big, or a subtopic stands out, I create for it its own file with an link pointing to it.
In this way the notes grow organically and new notes are created when necessary.

To make this workflow even faster, the plug-in would convert the selected section (beginning with a heading and the hierarchy being conserved) to its own md. And creates a link pointing to the file at the place of the previous heading.

3 Likes

oh, man, your first-time explanation makes me confused, in fact, you want make selected words a new file that you will name, and use the “quote” like “![[” to keep the contents of the original document unchanged in order to “quote” the selected words easier?

The thought is good , I think. may be useful.

请问你是如何解决的?处理情况如何了?

Thanks to user @randulfr for providing a way to do this with Obsidian right now via Keyboard Maestro (macOS only):

Windows users can try this autohotkey script : https://github.com/cannibalox/Obsdn-Autosnipp

it requires autohotkey ANSI or now. description in the link & here :Block reference

2 Likes

A plugin is now available for this with Obsidian v0.9.7 (currently insider’s build).

I have include a couple of commands for different note extraction behaviours and a setting to include a heading in the new note.

I could also add a config setting for automatic ZK UID generation for new note file names if that would be useful.

6 Likes

@J_L: I have installed your plug-in, refreshed Obs, but it only works halfway. The new note is created but the content is not transferred, even though the content is taken away from the source note.

@Klaas Is that using the command for the first line as the file name or the content only option with the modal to enter the file name?

Could you post a copy of some example content I can try and replicate the issue with?

Thanks for this very useful plugin @J_L! It automates a process I do very often and makes it a breeze.