emanote icon indicating copy to clipboard operation
emanote copied to clipboard

Refactor Emanote codebase

Open srid opened this issue 1 year ago • 5 comments

I've been meaning to refactor the codebase significantly, since I feel it has become complex to make changes.

Originally posted by @srid in https://github.com/srid/emanote/issues/555#issuecomment-2386472497

srid avatar Oct 01 '24 16:10 srid

In #504 you mentioned https://github.com/sempreviva/ondim which looks pretty neat.

TristanCacqueray avatar Oct 01 '24 18:10 TristanCacqueray

Yea, I've been meaning to switch to that.

Now that I'm back on NixOS, I'm developing an itch to implement a proper task management system on top of Emanote ... so it is time to revisit this project.

srid avatar Oct 23 '24 14:10 srid

That's great to hear @srid! Would you consider improving the support for org-mode, or are you thinking about something else?

I would be happy to help but my time is rather limited. Though I'd like to implement support for denote #551 at some point.

TristanCacqueray avatar Oct 23 '24 14:10 TristanCacqueray

I don't use Emacs anymore (I use neovim), so either the task system would be tied to Markdown, or it would be done at an abstract level (so org-mode gets supported indirectly). Basically extend on top of what we already have, is what I'm thinking: https://emanote.srid.ca/-/tasks

But I'm open to suggestions. Perhaps I should explore https://github.com/nvim-orgmode/orgmode - then we would inherit the flexibility of org-mode's data model ...

srid avatar Oct 23 '24 14:10 srid

Ha interesting, today I learn I also have a /-/tasks :-) I guess it's mostly missing links to the notes.

I would not recommend org outside of emacs, but I guess the org heading with a todo keyword could be collected in the tasks page.

TristanCacqueray avatar Oct 23 '24 14:10 TristanCacqueray

Just having access to org's TODO's in the task list would be fantastic. I use emanote as an easy way to communicate to people what I am working on, so them being able to view the TODOs in a task list would be huge.

I've given nvim's org mode a try and it worked pretty well! You of course don't get the ability to run arbitrary elisp code, but they got code runners (babel) and an agenda working.

There is also https://github.com/nvim-neorg/neorg which uses an org-like syntax.

IllustratedMan-code avatar Sep 15 '25 16:09 IllustratedMan-code