helix icon indicating copy to clipboard operation
helix copied to clipboard

Org mode plugin

Open txtyash opened this issue 3 years ago • 5 comments

Org mode in helix would be great for note taking. If not built-in then as a separate plugin would also do the job.

txtyash avatar Jun 19 '22 18:06 txtyash

yessssss!!!!!

Niedzwiedzw avatar Jul 03 '22 00:07 Niedzwiedzw

If this feature is ever implemented could Neorg be considered in place of Org mode.

kodesoul avatar Sep 13 '22 12:09 kodesoul

@codesaf1 I don't think org mode would take a very long time. Devs seem to be very busy with a lot of other stuff.

Yes, neorg is nice too.

txtyash avatar Sep 13 '22 12:09 txtyash

Using helix as a notes taking app / organizer is currently my main blocker for moving away from vim/neovim where there is the Vimwiki plugin. It's not exactly an equivalent to org-mode, but it can be thought as a markdown editor on steroid.

It might be possible to avoid the need for a plugin entirely by relying on a markdown language server but it's unclear to me yet if that would be enough.

The bare features I would be expecting from such a system would just be:

  • pressing <enter> transforms the word under the cursor (or the current selection) into a link to a page of that word/selection (and pressing again jumps to that file):
  • creating nested lists of checkable entries, with appropriate bindings to control their progress
  • helper to create tables

I think this would cover about 90% of my notes usage. The rest is more specific to notes taking app (typically diary files management) while I believe these features remain in the editing realm.

Here is a demo of vimwiki with these 3 features:

https://user-images.githubusercontent.com/34467/201099154-ece4c011-1f07-436e-a1c7-775a60aaa612.mp4

I believe these are not so far-fetched for a general purpose markdown file support.

ubitux avatar Nov 10 '22 13:11 ubitux

Org mode in helix

This isn't very actionable. Org mode has been under continuous development for 20 years and has a vast feature set built using Emacs Lisp. Let's focus on specific functionality we'd like to see in Helix.

  • Support is already present (https://github.com/helix-editor/helix/pull/1845) for highlighting, although the queries could be expanded, eg to support "todo keywords". Not all themes look good with org files. everforest _dark and _light look nice.
  • As @ubitux noted, a language server can be a nice way to add language-specific functionality, but org mode currently lacks any LSP server. See ORG-Mode LSP : r/emacs, tecosaur/org-lsp (just an idea at present, :wave: @tecosaur), Emacs as an Org LSP server : list.orgmode.org.
  • Features not useful across languages are unlikely to be included in core. The path to getting these features will be either to figure out how to generalize them nicely across languages, or get the needed foundational enhancements into core to enable them. Examples: #3806, https://github.com/helix-editor/helix/issues/1840#issuecomment-147035330, #5737, #3134. https://github.com/helix-editor/helix/pull/5420 was a huge step forward, and more foundational stuff is in the pipeline.

neorg

This issue is specifically about improving Org mode language support in Helix. Support for other languages could be added independently.

markdown wiki

@ubitux also OT, but I'm with you. Let's continue Markdown wiki usability discussion elsewhere.

edrex avatar May 17 '23 16:05 edrex