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

Accept "file:line:col" argument format #68

Open
diversys opened this issue Mar 2, 2021 · 3 comments · May be fixed by #91
Open

Accept "file:line:col" argument format #68

diversys opened this issue Mar 2, 2021 · 3 comments · May be fixed by #91

Comments

@diversys
Copy link
Member

diversys commented Mar 2, 2021

Many tools like g++, grep, etc. print file locations as file:line:col, for example configure:89:15.

Many editors like QtCreator, Geany, or CLion understand this format, and open the file with the text cursor ready to go at the desired location.

In a nutshell, it should be able to lpe configure:89:15.

@OscarL
Copy link
Contributor

OscarL commented Mar 5, 2024

Hey there @diversys! Did my best (yeah... doesn't amounts to much :-D), and got something that seems to work on my tests.

If you find the time, would be nice to know if #91 works well enough for you. Thanks in advance.

@OscarL
Copy link
Contributor

OscarL commented Mar 6, 2024

Ok, I see that /bin/open uses a B_REFS_RECEIVED BMessage with two fields: be:line and be:column.

I need to make sure Pe also accepts that (not only my first attempt with lpe as in #91), as it is what Terminal uses, after all.

Will let you know when I have something I'm happier with.

OscarL added a commit to OscarL/Pe that referenced this issue Mar 6, 2024
The latter is what Terminal uses when "hyperlinking" to filenames.

Fixes HaikuArchives#68.
@OscarL
Copy link
Contributor

OscarL commented Mar 6, 2024

Ok, that took less time than what I expected. PR ready for review/testing.

OscarL added a commit to OscarL/Pe that referenced this issue Mar 16, 2024
The latter is what Terminal uses when "hyperlinking" to filenames.

Fixes HaikuArchives#68.
OscarL added a commit to OscarL/Pe that referenced this issue Mar 16, 2024
The latter is what Terminal uses when "hyperlinking" to filenames.

Fixes HaikuArchives#68.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants