Feature request: Add orgmode support
I really like lem, I'm slowly migrating to it completely, but the only thing today that stops me from using lem as my main editor is the lack of support for orgmode, and I think this happens to a lot of people, I've already talked to about 4 on reddit who are in the same situation... I just don't make a plugin for lem that adds support for orgmode because I don't know enough about common lisp, but I'd love to help if any of you maintainers decide to help us on this journey.
We talked about org-mode with metnal on Discord. They are working on an org parser, with the goal additional goals to have a CLI and even extend the syntax.
There are other (unfinished) parsers out there, earlier we also discussed the possibility to use Emacs in the background.
So, as big the task is, someone is working on it : D
i have actually been writing a parser in common lisp for org-mode and it now handles most of org's syntax, and i am planning on porting it to lem in the long run, but i will be busy with uni work, so that wont be anytime soon.. i might just work on it every now and then
(obviously you need more than just a "parser" to get org-mode-like fucntionality, but im planning on actually replicating org-agenda and org-babel in the long run)
and:
built from scratch, its actually more than an "org" parser, i plan to make it a superset of org but still /almost/ fully support the original org-mode syntax. no i havent released it or anything, i doubt it would be of any use to others at this point, its a relatively new thing i began working on not even a few weeks ago but atm it can parse org files and convert them to latex (i plan on getting it to export to html too, this is like org-mode's ox functionality where you export to different formats) the code is here https://github.com/mahmoodsh36/cltpt (but again i doubt its useful to anyone at this stage) an example of what i want the extended format to be like is here https://github.com/mahmoodsh36/cltpt/blob/main/test.txt i thought maybe while at it i could improve the syntax to be lisp-like, but im not sure how it will turn out yet (although i do like the idea), also the idea is to make the syntax fully extensible and modifiable so you can introduce your own elements etc (by inheriting from a class and defining your custom functionality there) i also want it to support org-roam like functionality by default, like navigating files and cross-file links with "id's" (and maybe backlinks) etc
me:
great plans. Maybe if you set up some guidelines on the repo, motivated lispers could offer to help on specific tasks. I understand sometimes it's too early to accept any contributions, but there's a middle ground surely (like don't accept feature requests yet, you could even close the issue tracker until ready).
them:
i will make sure to have a readme soon 🙂
just as a small follow-up, current work (not much) is present at
https://github.com/mahmoodsh36/organ-mode
https://github.com/mahmoodsh36/cltpt
Don't implement Org mode. Org Mode is huge, and any incomplete implementation will be a disappointment – Org Mode is what it is because considerable time went into it. Most people speak Markdown – pick up the users where they come from: help them to wrangle markdown instead, and implement something like Org Mode, but based on Markdown. As a heavy Org user myself (static blog generator and publishing system), I know Markdown as a language is inferior to Org the language in many ways. I understand there went considerable some time into that, but I'd write it off as sunken costs and/or try to re-use the code if possible for a Markdown-based approach.
I agree with the substance of the comment, but found the tone somewhat overly directive ( ˘ω˘ )☁️
@cxxxr Sorry for that. I meant to be concise, but it landed too forcefully instead 🙏
Please, do implement Org Mode. Org Mode is wonderful as a markup language and I hate to see it being gatekeeped as specific editor ecosystem rather than a living standard. Sooner or later, we're gonna have to face it - Emacs will not be there forever. As a heavy Emacs user I do understand that Emacs is barely afloat regarding modern tendencies and PGTK implementation does us no favor - same could be said about current Elisp ecosystem where not even config distributions can help new users to navigate through this mess. This is opensource - there will always be a room for some snob's disappointment, and org-mode indeed is huge... if you treat it like one. And that is up to you.
"The /beauty/ of org *must* be shared." - Org index page.
Just please, don't break syntax compatibility with original implementation.
I have been using LaTeX for fifteen years. Markdown is too limited in its capabilities to meet my needs. When I started to think about org-mode as a wrapper around LaTeX last summer (I know, org-mode is much more than that), I changed my attitude towards org-mode and started using org-mode for preparing documents more frequently in the past year. The ease with which you can prepare tables in org-mode is the killer feature for me. Nonetheless, LaTeX has two decades of development on org-mode and can handle all kinds of edge cases that 'modern' typsetting systems like typst have never considered. May the plan for an org-mode clone for lem include exporting to LaTeX.
Oops! I posted too soon. There is already support for LaTeX in organ-mode https://github.com/mahmoodsh36/organ-mode?tab=readme-ov-file#roadmap. Now, I can start using lem!