-
Notifications
You must be signed in to change notification settings - Fork 21
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
neuron-insert-zettel-link inserts [[[nil]]] for link with non-ascii letters in filename #74
Comments
I think this is because of the regex that is used to identify links (which is used when selecting a zettel), it only matches characters in |
Thank you, it works now with cyrillic letters. But is there the reason to limit to alphanumerical, I've got the recommendation about |
Neuron does allow whitespace in IDs, along with a number of special characters. See https://github.com/srid/neuron/blob/595f040293d746fc7e036cc872b7e48c1f45c7f1/neuron/src/lib/Neuron/Zettelkasten/ID.hs#L84-L98
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Monday, February 8th, 2021 at 10:29 AM, arkoort ***@***.***> wrote:
Thank you, it works now with cyrillic letters. But is there the reason to limit to alphanumerical, - and _ only? The filename one of my zettels was initially named ZFS_2.0 (it has some my notes about new ZFS version), but I was forced to rename it to ZFS_2 because neuron-mode inserted [[[nil]]] instead of its title too. It seems to me that there can be any symbol except space (because neuron itself doesn't expand titles if the filename contains space). Of course only if it will not break the code.
I've got the recommendation about C.UTF-8 as quick fix just from one of neuron issues, but you're right, I'll discover this situation more carefully, and maybe it really needs to be fixed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [view it on GitHub](#74 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAA7HQF7ERDYII4C7MTVE3S577NZANCNFSM4XBSD2EA).
|
It allows, but doesn't expand links in generated HTMLs. For example, Or I understand wrong? I've got that behaviour in my base at the latest |
If "12345678 qwe.md" exists, then neuron should link to it. See the doc zettelkasten which uses whitespace liberally in zettel IDs: https://github.com/srid/neuron/tree/master/doc/Guide
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Monday, February 8th, 2021 at 12:30 PM, arkoort ***@***.***> wrote:
It allows, but doesn't expand links in generated HTMLs. For example, [[12345678_qwe]] will be shown in HTML as "The qwe link" (if it has # The qwe link title), but [[12345678 qwe]]` will remain "12345678 qwe".
Or I understand wrong? I've got that behaviour in my base at the latest neuron.
—
You are receiving this because you commented.
Reply to this email directly, [view it on GitHub](#74 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAA7HU4MTOC2LKH4MP5QYDS6ANRVANCNFSM4XBSD2EA).
|
Sorry, my English is very poor. I try do say the following:
I've read the Guide and I understand that it is the expected behaviour. But I need the first variant and just it was I tried to say in the original message. It was not the claim against (And, of course, this is the reason why I write about cyrillic letters both in |
Number 2 is not expected behaviour.
Sent from ProtonMail mobile
…-------- Original Message --------
On Feb. 8, 2021, 2:04 p.m., arkoort wrote:
Sorry, my English is very poor. I try do say the following:
- if the file 12345678_qwe.md has the title # The link, and in another note I use see [[12345678_qwe]]., I'll see in HTML: see The link..
- if the file 12345678 qwe.md has the title # The link, and in another note I use see [[12345678 qwe]]., I'll see in HTML: see 12345678 link..
I've read the Guide and I understand that it is the expected behaviour. But I need the first variant and just it was I tried to say in the original message. It was not the claim against neuron, it was the description of my situation. Sorry for not being able to say that on the first try.
(And, of course, this is the reason why I write about cyrillic letters both in neuron repo and here:)
—
You are receiving this because you commented.
Reply to this email directly, [view it on GitHub](#74 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAA7HUQK7YASS5HJPUVULTS6AYSPANCNFSM4XBSD2EA).
|
Sorry, it wasn't clear from documentation (and from site, where almost all spaced filenames have no title, and just one has title natching filename). Should I open an issue, or it may be caused by #543? |
With default settings (I use
LANG=ru_RU.UTF-8
)neuron
executable returns????
instead of non-ascii letters. WithLANG=C.UTF-8
executable returns the correct results (I've tried some queries by hand) andneuron-mode
operates mostly correct, but it cannot insert the link to the zettel file with non-ascii letters in the file name.I admit that my setup is incorrect somewhere, but I cannot find the reason.
The text was updated successfully, but these errors were encountered: