Skip to content

[Bug]: #56

@HenriqueDelben

Description

@HenriqueDelben

Description

Harnss doesn't respect default editor settings when opening a file through Open Files or Project Files Panel on MacOS

Problem

When going into Settings > General > Default Editor and setting to "Zed" and clicking on a file to open in editor, the file gets opened by whatever the application Finder/MacOS has configured as default

Fix proposal

Make it so that the configured editor is opened using "open" CLI utility passing the file path as argument. Example:
open -a zed /Users/rckdelben/Programs/my-project/src/main.ts
open -a antigravity /Users/rckdelben/Programs/my-project/src/main.ts

Steps to Reproduce

  1. Open Harnss
  2. Go to Settings > General > Default Editor > (set to your editor of preference - must have two code editors/IDE installed to reproduce)
  3. Go back to main screen > Open Files panel > file > Select "Open in editor"

Expected Behavior

The configured editor of preference was supposed to be opened in the current file selected

Actual Behavior

MacOS / Finder auto-select application that was set for that file was opened instead

AI Engine

Not engine-specific

Operating System

macOS (Intel)

Harnss Version

0.21.5

Area

Browser Panel, File Panel

Logs / Error Output


Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus: needs-triageNeeds initial review and categorization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions