dvorka / mindforger

Thinking notebook and Markdown editor.
https://www.mindforger.com
GNU General Public License v2.0
2.27k stars 138 forks source link

Mindforger communicating with org-brain in emacs in linux would be very useful #1050

Open michaelsjackson opened 5 years ago

michaelsjackson commented 5 years ago

Emacs has org-mode, then there is org-brain which is using org-mode files, .org, as its file type to organize information. org-mode can export as markdown as well.

Now interesting would be if we could easily link both worlds

(a) org-brain world inside emacs with (b) mindforger with its simple view and all its extras (did not check and test them yet)

In which scenario this could be useful mainly? In lecture scenarios. Since a few versions back org-brain added a new feature where each subdirectory can be its independent brain. This is great for lecture use cases, so for each lecture you can design a brain, thus linking all required concepts visually. Now after finishing this, if we could just take all this data blob and jump over to mindforger, just continuing from there, would be perfect.

So I am trying to combine: org-brain, mind mapping or concept mapping, plus now mindforger.

michaelsjackson commented 5 years ago

Oh, just discovered mindforger has command line options. Then this is possible already. eaglemode > .org files > .md files > mindforger

dvorka commented 5 years ago

This is great idea Michael! As Emacs user I need to try it and document it for others. Thanks :+1:

michaelsjackson commented 5 years ago

While documenting, here is the working command line: emacs /home/you/path/to/lecture/concept.org --batch -l org --eval '(org-md-export-to-markdown)'

Inside a shell script, you could use something like:

# converting $1 which should be an .org file to .md, markdown format
filename=$(basename $1 .org)
path=$(dirname $1)
emacs $1 --batch -l org --eval '(org-md-export-to-markdown)'
mindforger $path/$filename.md
michaelsjackson commented 5 years ago

In case you never checked eaglemode, it is an open system, so it can do whatever you want, it offers only the zoomable user interface (zui), you can hit any key and it could trigger any script, e.g. the above, so you could select any .org file there, hit a key, and it would immediately open as .md inside mindforger, ready to be presented, in a lecture for example.

Have to find out more what else could be useful in a lecture scenario, e.g. the knowledge graph navigator can be useful, has no quick navigation key bindings, but together with a tablet and a pen it could be still useful in its current form, but then we need to find a useful linux tablet first, not everyone wants to buy an ipad 2018 (non-pro). Currently I am using Thinkpad X201 t(ablet), I need only something less heavy and the beamer should work with the pen as well, e.g. in Linux Mint.

Back to eaglemode, e.g. when I select any pdf and hit the key x, a script is triggered which adds a mathematical squared background to the entire pdf, saved as a new pdf and this new pdf is opened inside xournal, so I can immediately start writing with a pen on this document, explaining something there. Only imagination is the limit, you can use it whatever is interesting to you. Having as many command line tools extends this world, like your great mindforger. I liked at first glance mainly the simple, clean view on the right side, something like a clean power point slide, meaning I am seeing mindforger as a presentation interface for .org files. eaglemode has another magic capability, while zooming into a certain file type, e.g. .org files, it can trigger as well any script you want, e.g. the above, so zooming into the file would open that file inside mindforger, zooming back has a great feature as well, it can auto-delete all side effect files (temporary conversion files), like .md file in this case. This is exactly the situation I was wishing, working with .org files, never doing anything with .md files, but on the fly conversion and presentation in mindforger.

michaelsjackson commented 5 years ago

org-brain can be a big picture view to .org concepts. mindforger can be a closer view detail view to .org concepts.

This is how I see it currently. If your .org files have deeper tree structures the knowledge graph navigator can be very useful, for a simplistic view, for a lecture.