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
(feat) Support "lite" syntax for aliases #43
Comments
I'd like to see this support as well especially the second option. Currently I use emacs and logseq. it seems logseq parse |
What would you really like? The second option is this: Have you already tried the syntax you would like to use? And what is the syntax you would like to use? |
No, I mean this |
My setup currently something like this: title: title
id: id
roam_aliases: [ "alias1", "alias2" ] # emacs (md-roam) alias
aliases: alias1 # Obsidian alias
alias:: alias1 # Logseq alias |
OK. I see. I don't think I'll be changing the code any time soon. You can achieve the following by two minor changes as below. You can already omit quotation marks.
For 1, override the definition of function (defun md-roam--yaml-seq-to-list ()
(let ((regexp "\\(\s*\\)\\(.*\\)\\(\s*\\)") ;; this line is the only difference
(separator ",\s*"))
(when (string-match regexp seq)
(let ((items (split-string-and-unquote
(match-string-no-properties 2 seq) separator)))
(mapcar #'md-roam--remove-single-quotes items))))) For 2 above, change the value of (setq md-roam-regex-aliases
;; Assumed to be case insensitive
"\\(^.*ALIASES:[ \t]*\\)\\(.*\\)") |
This advice about the aliases key would be useful to see in README, it helps when integrating with Obsidian. |
@gambhiro 👍 thank you |
This is the current syntax to define aliases. Compliant with YAML syntax, and works great.
I feel that I would like to have an option to also support
and/or
The latter is compatible with gatsby-themes-brain
Let's how far this idea can be implemented.
The text was updated successfully, but these errors were encountered: