Okamsn via "General discussions about Org-mode." <emacs-orgmode@gnu.org> writes:
> Texinfo allows one to create new named indices using `@defindex NAME`, > which can then be used via `@NAMEindex`. I have been experimenting with > different ways of supporting this. Looks like a reasonable addition. CCing the new ox-texinfo maintainer. He might have better insight. > ... > After thinking about it, I wonder whether it would be better to have a > dual-valued keyword like `#+INDEX[name]: text`, which would avoid > needing to convert between letter cases and restricting users. However, > it looks like secondary values are restricted to keywords affiliated > with other Org structures. In my testing, it looks like > `org-element-keyword-parser` includes the dual value as part of the key > name. > > Would it be possible to allow un-affiliated keywords to also have dual > values? Maybe. However, this would be a breaking change in Org syntax. I am not sure if the proposed feature is sufficient to justify such a change. A much simpler approach would be using a special value syntax like #+INDEX: [name] text We might end up adding dual values to keywords in future (there are other reasons to do it), but I'd like to wait until we prove that such change is justified more. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>