Opening CSS, JS etc. Files in Wappler using "Open with"

Hello Wapplers, not a huge deal, but I sometimes need to open an old CSS or JS file that is outside my current project so I try to open on my mac using “Open with”

The option to open in Wappler appears but when I try to open with Wappler, the file doesn’t open. I know I can copy the file to my project and it will open it, but is this feature supposed to work and it’s a bug?

And yes, Coda 2 (now Nova) is long gone but I did a lot of handcoded PHP in that app and just can’t seem to delete it haha. It still works, albeit with bugs.

Thanks in advance,
Twitch

There are a couple of choices

  1. Open a second instance of Wappler
  2. Use another text editor

Microsoft Visual Studio Code is the defacto code editor these days. It has excellent syntax coloring, an enormous community of excellent plug-ins, and AI/MCP support. It understands CSS and JS far better than the Wappler editor and easily supports Open With on Macs (powerbook user here)

Amazing when they both use the Monaco text editor.

The ‘Open with..’ option works with Windows so I would have thought it should work on a Mac.

This reminds of an ancient and forgotten request which might be even more useful: to be able to drag files from File Explorer/Finder into Wappler. I often want to copy images which might be stored in various locations or files from some other Wappler project etc. It would be very convenient to be able to simply drag them into Wappler.

I think this was possible in a very limited way in the past - into the Assets folder. It looks like it should be possible, as ‘+Copy’ appears if you drag a file into File Manager - but it doesn’t work (perhaps it’s a bug).

This request was first made in 2017. Here’s a more ‘recent’ request.

I would settle for an "import from" option in the file manager content menu, probably a lot easier to implement.

But i concur with TomD, "open with" works file with Windows so i assume it's a Mac thing rather than a Wappler thing.

The problem of just opening any file in Wappler is that if that files is not inside the current project folder and it is a html/ejs/php file, Wappler will want to try to fix its include paths and give errors.

So the only possibility might be to just open it in code view and disable all automatic code/include corrections.

At least from my point of view, it would be very useful to be able to drag images into Wappler.

Also, when dragging html/ejs/php files, I think the user would expect that they might have to tidy up paths. In most cases when I copy such files between projects, I don’t need to change any paths because the functionality and file structure etc. is the same (if they were very different, there probably wouldn’t be much point in copying the files).

Interesting, it’s never worked on Mac when I’ve tried, this is just the first time I took the time to ask. Has anyone else gotten “Open With” to work on Mac?

The problem of just opening any file in Wappler is that if that files is not inside the current project folder and it is a html/ejs/php file, Wappler will want to try to fix its include paths and give errors.

@George I see your point, I’m fine with that, as most of the time I’m opening an older Wappler file just so I can copy or reference an old piece of code I’ve written. In most cases these files are css or js files. If it fixes paths that I don’t want, I simply won’t save the file after opening. That said, “Open with” doesn’t seem to work on Mac, but appears to work on Windows.

You got me on that one. However, George's reply below more accurately describes why using Wappler, as compared to VS Code, isn't equivalent...