Separating title from file name #56
Replies: 11 comments 34 replies
-
I have used vimwiki quite a bit but never vim-zettel. I think these ideas all have merit. I'm missing some of the vimwiki features you've mentioned. Not sure how difficult it would be to implement any of it. I'm a lua noob. |
Beta Was this translation helpful? Give feedback.
-
In terms of implementing this, two features that would make a big difference I think:
Then maybe later could do something with titles, templates and the ability to prefill them or copy a zettel and have it grab the link in |
Beta Was this translation helpful? Give feedback.
-
In previous projects I have dealt quite a bit with ID-based Zettelkasten notes. With telekasten I wanted to make it easier - as many requests were "please support [[wiki style]] links". Having wiki style links even now gives you the possibility of only working with I am explicitly NOT a fan of putting titles in the yaml-block and have telekasten grep for the title in yaml-blocks when trying to resolve a link by title. This is bound to lead to worse performance than just searching for files with the given name. However, ignoring parts of the link to get to the filename, so that As a side-note: parts of my notes still are ID-based - and work fine with telekasten. Because: telekasten does a filename search on the IDs - and finds notes starting with the ID as well as notes having only the ID as filename. I agree, a The other option would be: to cut the filename extension off: Regarding the misc stuff:
Implementing ID stuff and have it optional requires a bit of thought and work. One thing comes to mind: timestamp-based IDs. When I had second-based IDs there were people that were creating multiple notes per second. So we had to support millisecond-based IDs. I will come up with something. I see I prefer Let's discuss - but I think I can support
relatively easily - it will just be an option "nightmare" - something to consider for the README, too. |
Beta Was this translation helpful? Give feedback.
-
BTW title changes: Obsidian can rename the file and update all links. This is also something to consider, while at the same time appearing a bit dangerous to me. It would probably need to be done in a transaction .... But let's not go down that route. |
Beta Was this translation helpful? Give feedback.
-
Oh: no hypens in IDs or else telekasten might get confused: do you want to link to a daily note or a regular one.... |
Beta Was this translation helpful? Give feedback.
-
Excellent, this works for me for now vs something like The only missing thing then would be an option to automatically make new zettels created with a timestamped/unique ID (vs asking for the title and using that for the filename like it does now). I tried making an insert mode shortcut to automatically insert a formatted timestamp by pressing
It's wild that people are creating multiple notes a second; vim-zettel does it down to the minute, with a letter (a, b, etc...) if you create more than one. Personally I don't have strong feelings on the format of the timestamped files, I wouldn't care if they weren't even timestamped, just as long as they're unique. In my view, the ID/filename itself is just so telekasten can link to the correct files. Ideally we probably wouldn't even have to see them. That's why I like the If it looks like the id is going to be showing up a lot in notes (e.g. the hide filename part is a long way off/never happens) i guess I'd prefer a shorter unique id, vs something really long and down to millisecond.
This seems like a good option to me, seems reasonable for telekasten to treat links without extensions as its own. |
Beta Was this translation helpful? Give feedback.
-
I guess the only other related issue with all this, is it'd be nice to be able to get the links (when using |
Beta Was this translation helpful? Give feedback.
-
Regarding ID prefixes: a quick fix would be to define a prefix-format in the config that However, links generated would be: What do you guys think? Would that be a liveable quick-fix until we have something better? Regarding naming the files, here I'd suggest going with the entire string: |
Beta Was this translation helpful? Give feedback.
-
I find it increasingly difficult to use these discussions - and not miss a new addition to a thread. I actually open my gmail to check for new entries, then go back to GitHub and search for the reply within the browser. Should we try to go somewhere else? Discourse seems to be pretty hyped these days. But TBH 100$ per month is not worth the odd discussion or two. Any opinions / suggestions? Maybe there's a cool option in GitHub that I'm missing that enables a more sane thread-based view? |
Beta Was this translation helpful? Give feedback.
-
@lambtho12, could you please share your custom snippets regarding zettel note creation? I'm now going to try out build my nvim config in lua from scratch and finally switch the tables in favor of telekasten instead vim-zettel. Vim-zettel had just a simple function for creating a new zettel.. So could you please show, how you are doing it basically? Kind regards from Germany :) |
Beta Was this translation helpful? Give feedback.
-
This has covered a couple different topics, and there's been some confusion from all the reply nesting, so I'm just going to drop a new top level here. On the subject of titles, I do think some configurability would be beneficial. I can understand not wanting to overly complicate the configuration, but I think a lot of that can be avoided by choosing sensible defaults that will match what a majority of users want. Many will probably be fine with just about any default system, but some will have their own preferences, and even just a few swappable options could go a long way. The templates system also already gives people a handful of defined tags or markers that users can use to define their own custom file name formats. I saw some discussion of supporting markdown style links. A lot of this discussion is over a year old, and I only just recently started using this plugin, so I'm not 100% clear on if it has been implemented yet, but this is definitely something I think would be a good idea. I prefer to avoid working in custom and wiki formats because it makes it easy to export content that needs to be shared through something like pandoc. Introducing a new format and restricting users to it breaks this potential functionality. There was also mention that hyphens in IDs, I assume particularly IDs that include dates, may confuse Telekasten since it might not be able to differentiate between a daily note and a regular one. Since Telekasten sets a designated location for daily and weekly journal entries, shouldn't this be a relatively trivial distinction? If the note is located in the journal folders, treat it as a journal entry, and if it's not, treat it as a standard note. I take it this means that multiple journal entries for a single day might lead to conflicts, then, too? The dated nature of journal files is useful for some content I intend to share, so I'd thought to use journal entries for it, but there's a nonzero possibility I may eventually need to make multiple distinct notes on the same date. |
Beta Was this translation helpful? Give feedback.
-
Just found this plugin today, great work!
I think I'm going to switch over to it from my current solution (vimwki + vim-zettel), the only thing it'd really be missing is the ability to separate file names from titles.
For example, in vim-zettel, each file is named with a timestamp (with letters if you create two notes in the same minute) so everything is unique, e.g.
220103-1159.md
. Separately, each note has a title ("renerocksai on how to take good notes") that you can change. I find this reduces friction taking notes because you don't have to worry about coming up with a perfect filename (and title) that you never will be able to change.Then to link to a note from another you use the
[text to display](link)
format, e.g.[renerocksai on how to take good notes](22013-1159.md)
. vimwiki hides the actual link and just displays thetext to display
, but you can follow the link etc.Misc stuff:
Any thoughts? Cheers!
Beta Was this translation helpful? Give feedback.
All reactions