MichiSpebach / mammutmap

GNU Affero General Public License v3.0
11 stars 3 forks source link

open files in editor/IDE from browser #17

Open MichiSpebach opened 1 year ago

MichiSpebach commented 1 year ago

When rightClicking on a FileBox there is the option "run code ${filePath}" this opens the file in Visual Studio Code, but this only works on the Electron desktop version.

grafik

Acceptance Criteria / Task:

Make it work for browser version as well.

Approach: Implement BrowserProcessingAdapter.ts and initialize it in src/browserApp/index.ts grafik The implementation for the desktop version src/electronApp/NodeJsProcessingAdapter.ts can be used as inspiration.

It works the way that src/core/contextMenu.ts calls runShellCommand(command: string) of the ProcessingAdapter, maybe there also have to be made some adjustments.

Follow-up: https://github.com/MichiSpebach/mammutmap/issues/19