Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Open a file to a line number #376

Open
mrjbq7 opened this issue Jun 5, 2024 · 3 comments
Open

[Feature Request] Open a file to a line number #376

mrjbq7 opened this issue Jun 5, 2024 · 3 comments

Comments

@mrjbq7
Copy link

mrjbq7 commented Jun 5, 2024

Is there a way, or perhaps can we get one, to open a file to a specific line number?

Ideally from the command-line to open into the Focus.app on macOS.

@focus-editor
Copy link
Owner

There's no way to do it when opening, but it's a valid request so we'll do it (but we're busy, so we'll accept a PR if someone does it before we do).

Right now the only way to jump to line is via the go to line dialog on an already open file

@focus-editor
Copy link
Owner

This is done in the latest nightly, will be released with the next release.

When you pass a path to the executable saying /path/to/file:<line_number> should work.

@mrjbq7
Copy link
Author

mrjbq7 commented Oct 5, 2024

Awesome, added support in factor/factor@9d2f151.

I still have to get our editor integration working with Linux and Windows, will look at that in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants