manateelazycat / sdcv

Emacs interface for sdcv (Stardict console version)
73 stars 14 forks source link

Suggestion: change outline to ewoc #27

Closed xFA25E closed 2 years ago

xFA25E commented 3 years ago

I noticed that sdcv command provides a --json flag. I think that we could drop outline and make a better and more extensible interface with ewoc library.

Since, there is already a json package, we could use it to parse json output of sdcv. This will be much easier to work with and would eliminate problems with regexp matching of heading. Sometimes, font-locking fails to recognize heading. Like here:

sdcv font lock failure

I can submit a PR

Of course, this means that a lot of code should be rewritten, but the functionality would remain the same.

manateelazycat commented 3 years ago

PR are welcome!