Skip to content

General Editor Module #1

Open
Open

Description

@andre-dietrich

Hi, I think it would be great to have something like a general Editor module, without any additional functionality at all.
The idea is, that the editor module can be configured to publish on different topics, when the "run-button" is hit. Another module can be configured also, to listen this topic in promiscuity-mode, which then releases some kind of action.

I did this, within the following module, which will execute the code, that is published from other modules:

https://github.com/Cross-Lab-Project/pyxtermjs

This way one editor module could be used for different purposes, even within the same classroom.

Activity

  1. edrysorg commented on May 24, 2022

    @edrysorg
    Contributor

    I like this idea, this way we can separate all the editors from all the runners. I'm thinking I'll make this module into purely a code editor and separate code-running into a separate one.

  2. andre-dietrich commented on May 24, 2022

    @andre-dietrich
    Author

    Hi, yesterday I added one 🙈 ...

    https://github.com/Cross-Lab-Project/edrys_module-editor

    It should already appear in your module-overview ... probably this could also be extended to something more project-based, which allows to define projects with different files in different tabs...

    I think, something like this could be configured like:

    {
      "project": {
         "main.cpp": "some code",
         "class.h": "header code",
         "class.cpp": "some class code"
      }
    }

    ... Just thinking aloud ...

  3. edrysorg commented on May 27, 2022

    @edrysorg
    Contributor

    That is a great start, I think we can keep this one as-is (someone might find a all-in-one module useful) and continue developing the other one as well. Perhaps we can allow creating "files" in the editor and switching between them, similar to VS Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions