Replies: 3 comments 7 replies
-
Absolutely, and this was partially discussed here: zk-org/zk-nvim#27 (comment) I'll open a dedicated feature request issue to track this, as it's the next most important feature The thing that is holding me back is the flexibility granted by wiki links. Currently a wiki link can match any unique sub-portion of the whole href, which allows for example to use Maybe I could use the |
Beta Was this translation helpful? Give feedback.
-
Hoy Mickael and Srid, I have been mostly staying out of discussions around link name resolution and bulk rename in these tools, mainly because I like to stay light on output-time link resolution magic and instead have my editor exactly resolve relative links at edit time. My take:
I know that a lot of zettel prefer flat repositories, and there are definitely good reasons to go that way, but I like my directories, since they make things like subsetting (ie, "publish my
Likewise, i don't see the value in prefix matching - I would rather resolve exact names at edit time. I get though that the motivation is that it works with zettelkasten-style names where the initial I planning to break ground on a kind of "folkspec" for markdown wiki syntax extensions, in the form of a (nix flake based) test suite that validates and compares the behavior of many different tools, which I hope can help inform many conversations about how we can make our syntax extensions and interpretation rules more consistent and predictable across the ecosystem. Along with this test suite, I want to build a kind of linter/refactoring suite which uses a local description of the desired repository format/invariants for a repository, and reports/converts non-conforming nodes. I know there's a lot of overlap with zk here, and it will undoubtedly act as the backend for some of the functions, but I want a framework that supports a heterogeneous panoply of tools An example of a local repo spec::
Just want to check in with y'all about what I'm planning, because I hope to collaborate a lot going forward. Best |
Beta Was this translation helpful? Give feedback.
-
Btw, the link resolution rules I described above come from Ikiwiki, AFAIK the first tool to embrace the "Git directory of markdown files with wiki links" format, and still today the most cohesive and humanely designed. I just wish I didn't have to interact with CPAN to install it 😨 (I say that knowing it's packaged in both Debian and nixpkgs. It may end up back in my toolbox shortly) |
Beta Was this translation helpful? Give feedback.
-
Would this be in scope for
zk
? Basically:will rename
Foo.md
toBar Qux.md
while taking care of references. By which I mean it will replace all occurrences of[[Foo]]
with[[Bar Qux]]
in the notebook. As well as[[Foo|...]]
with[[Bar Qux|..]]
. This is exactly what the vscode-memo extension does.The replacement can be delegated to
sd
.EDIT: It should probably take directory and relative wiki links too into consideration? eg:
[[Parent/Foo]]
->[[Parent/Bar Qux]]
. Might have to disambiguate multipleFoo.md
as well (in different parents).Beta Was this translation helpful? Give feedback.
All reactions