Hello! I was a big fan of Atom editor, and I’m very glad that Pulsar is continuing the legacy of Atom. My concern/question is, how in the heck do I install plugins? Specifically, plugins for python? And also, is there a terminal/space to run Python code like there is in VSCodium? In VSCodium, there’s a play button and code runs automatically in the built in terminal. Any help is appreciated!

  • Daeraxa@lemmy.mlM
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    There are a couple of ways to install packages on Pulsar, we have a lot of it in the existing documentation (https://pulsar-edit.dev/docs/launch-manual/sections/using-pulsar/#pulsar-packages). The most common way is just to go to the package manager (Packages > Open Package Manager > Install (on left panel of the package manager)) where you can search for packages. Alternatively you can browse packages via the PPR (Pulsar Package Registry) at https://web.pulsar-edit.dev/ and use ppm to install (https://pulsar-edit.dev/docs/launch-manual/sections/using-pulsar/#command-line).

    As for the second part there are a few answers. You can install the x-terminal-reloaded if you simply want to get a terminal pane within Pulsar. However this won’t help run things like Python code “interactively” with a console, it is “just” a terminal. Unfortunately this is where I run out of knowledge a bit, I’ve never been one for trying to run code directly in the editor, I’ve always just used terminal commands, which seems to echo the experience of a lot of the Pulsar team. However I do know somebody a few people have asked this before so we might need to look into this, if for nothing other than to have a good answer.

    There is a package called script-runner which sounds like it would do what you are after and another called script you might also like to have a look at.

    Generally if you are after info about how to “make Pulsar do x” then you can probably find still relevant info using “make Atom do x” but obviously any links or apm commands won’t work and would need to reference the new Pulsar commands and links instead.

    • sinewyshadow@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      So, if I wanted to run python code in Pulsar, I’d have to look up how to run python code in Atom, is what you’re saying?

      • Daeraxa@lemmy.mlM
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        To a degree, yeah. Obviously Atom was a pretty popular project before its decline so there are a lot of guides and help out there for it that go back a very long way but adoption of Pulsar has been much slower in that sense, mostly attracting people who were already using Atom. The changes we have made so far are mostly “under the hood” so really it is still Atom with some changes made. It is also a far newer project so there simply isn’t as much “community” material.

        • sinewyshadow@lemmy.mlOP
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          That’s good to know. I thought it was based on vim, and I had to use special keyboard shortcuts to open things or run code.

          • Daeraxa@lemmy.mlM
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Nah, Atom was basically custom from the ground up (in fact it was Atom that first used, for better or worse, the Electron framework which was written specifically for it) and we just forked Atom before it got sunset. There are a lot of keybdinds but generally any action that would require some kind of special command would be accessible from the command palette (ctrl/cmd + shift + p) which is searchable.

            It is a little more like vim in terms of what you get “out of the box”, you more or less just get a basic editor and language grammars, it is designed to be extensible to be kind of whatever you want it to be via packages which allows you to make it your own.

            • sinewyshadow@lemmy.mlOP
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Okay, so I’m really dumb. I downloaded Visual Studio, because a plugin in Pulsar required Clang, and now when I open Pulsar, it’s still saying the plugin can’t be installed, and then a window showing the installation pops up and I can’t escape the window. It should be installing the plugin now that I have CLang installed, right? What am I doing wrong and how do I install the plugin so I don’t get the popup anymore?

              • Daeraxa@lemmy.mlM
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                What package are you trying to install? Some packages do have native modules which is why you might need the visual studio tools. What window is popping up that you can’t escape from?

                • sinewyshadow@lemmy.mlOP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 year ago

                  I’m trying to install Platformio IDE and it needs CLang to finish installation. It’s an installation window that shows what components have been installed, there are four sections, but it keeps freezing on the Atom dependencies section. Maybe I just need to wait longer for it to install?