GithubHelp home page GithubHelp logo

Comments (6)

jubnzv avatar jubnzv commented on May 18, 2024

Hi Michael,

Initially, I didn't plan to make a separate plugin. I was preparing to technical interviews and my language of choice was too tricky, so I decided to start writing some notes in markdown, describing some border cases of the language. These notes, of course, usually include some pieces of source code.

In the past, I was a big fan of Emacs's org-mode, and I remember the feature of evaluating code blocks inside org documents. It could be really useful to me, because I need to a way to have executable code blocks, like Jupiter notebooks, so that I can experiment with them and make some notes in the same document.

So I created several functions in my Lua configuration file that implemented evaluation of code blocks. Then I saw that they could be separated as a plugin, and created this repository.

Answering your questions about Sniprun, I found it interesting. You've implemented much more functionality and already have some users.

I didn't know about it when I started working on my plugin. But probably, I'd create my own plugin anyway, because I needed a simple tool for a single use case described in the README. And also I'm not very familiar with Rust.

Anyway, I solved my task and I'm not planning to add more functionality to this plugin. So I won't compete with Sniprun in any way.

from mdeval.nvim.

michaelb avatar michaelb commented on May 18, 2024

So I won't compete with Sniprun in any way.

That wasn't a concern (nice 'competition' like this is fun anyway). I mostly wanted to inquire (without looking at the code for too long) whether there was some fundamental difference between our projects

The way you display the result is nice though, do you mind if I do something similar ?

from mdeval.nvim.

jubnzv avatar jubnzv commented on May 18, 2024

Ah, well, of course I don't mind if you'll implement something similar. Moreover, you can use this code according to MIT license, if it could be useful.

But I personally recommend you to take a look at this section of the documentation of org-mode first. This tool is fascinating, I believe you can get much more ideas there.

from mdeval.nvim.

michaelb avatar michaelb commented on May 18, 2024

Thanks! Have a good day

from mdeval.nvim.

jubnzv avatar jubnzv commented on May 18, 2024

Good luck with your project :)
I also mentioned sniprun in README.

from mdeval.nvim.

michaelb avatar michaelb commented on May 18, 2024

Wow! Thanks!

I'll ping here if I decide to support Orgmode files one day :-)

from mdeval.nvim.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.