Skip to content

Open file from command-line #455

@mrjbq7

Description

@mrjbq7

I would like to be able to open a file into the Athas editor from the command-line.

Ideally, it would be able to open to a specific line number.

I can't seem to get that to work on macOS.

// open the foo.txt file
$ open -a "Athas" foo.txt

// open the foo.txt file to line 10
$ open -a "Athas" foo.txt:10

$ /Applications/Athas.app/Contents/MacOS/athas-code foo.txt
[10:02:09AM] [INFO] [athas_code]: Starting app!
[10:02:09AM] [INFO] [athas_code::commands::extensions]: Bundled extensions path: "/Applications/Athas.app/Contents/Resources/bundled"
[10:02:09AM] [INFO] [athas_code::menu]: Menu rebuilt with dynamic themes
[10:02:09AM] [INFO] [athas_code::commands::extensions]: Listing installed extensions
[10:02:09AM] [INFO] [athas_code::extensions::installer]: Listing installed extensions
[10:02:10AM] [INFO] [athas_code::claude_bridge]: Starting interceptor as embedded service...
[10:02:10AM] [INFO] [interceptor::server]: Claude Code Proxy with WebSocket running on http://localhost:50291
[10:02:10AM] [INFO] [interceptor::server]: WebSocket endpoint: ws://localhost:50291/ws
[10:02:10AM] [INFO] [athas_code::claude_bridge]: Interceptor started successfully on port 50291
[10:02:10AM] [INFO] [athas_code]: Interceptor auto-started successfully
...

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions