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

Support wiki links #60

Closed
srid opened this issue Aug 24, 2020 · 7 comments
Closed

Support wiki links #60

srid opened this issue Aug 24, 2020 · 7 comments
Labels
neuron-change A new neuron feature should be integrated into neuron-mode

Comments

@srid
Copy link
Contributor

srid commented Aug 24, 2020

Syntax is documented here: https://neuron.zettel.page/2011504.html

Basically <...> is deprecated (still supported) in favour of the new default: [[...]] as well as [[[...]]].

@felko felko added the neuron-change A new neuron feature should be integrated into neuron-mode label Aug 24, 2020
@srid
Copy link
Contributor Author

srid commented Sep 18, 2020

[[Some note, with puctuation]] is now a valid link in neuron.

cf.

@vizziv
Copy link

vizziv commented Oct 4, 2020

I'm totally new to elisp, but I'm willing to have a go at this. Can anyone give me a few pointers to places in the code that would need to change?

@srid
Copy link
Contributor Author

srid commented Oct 4, 2020

@vizziv Probably neuron-link-regex:

neuron-mode/neuron-mode.el

Lines 796 to 799 in 6042cb8

(defconst neuron-link-regex
(concat "<\\(z:" thing-at-point-url-path-regexp "\\|[A-Za-z0-9-_]+\\(?:\?[^][\t\n\\ {}]*\\)?\\)>")
"Regex matching zettel links like <URL> or <ID>.
Group 1 is the matched ID or URL.")

@TheKK
Copy link

TheKK commented Oct 25, 2020

Hi @vizziv, are you working on this? If not then I'd like to help as well :)

@vizziv
Copy link

vizziv commented Oct 25, 2020

By all means, go ahead! (I never managed to get started on this.)

@sudeepdino008
Copy link
Contributor

sudeepdino008 commented Nov 19, 2020

WIP here - sudeepdino008@6455f03.
It supports folgezettel and ordinary links ( ids containing spaces might not work yet).
It still needs to support tag wikilinks (see tag trees here).

EDIT:

pull request here: #67
Company mode is still not supported. I'd appreciate some help there as I don't use company mode.

@felko
Copy link
Owner

felko commented Dec 4, 2020

Closing since #67 was merged

@felko felko closed this as completed Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
neuron-change A new neuron feature should be integrated into neuron-mode
Projects
None yet
Development

No branches or pull requests

5 participants