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

Support opening files with file:line:col style arguments. #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OscarL
Copy link
Contributor

@OscarL OscarL commented Mar 5, 2024

Fixes #68.

@OscarL OscarL marked this pull request as draft March 6, 2024 12:54
@OscarL OscarL changed the title Implement lpe file:line:col Implement lpe file:line:col and /bin/open file:line:col. Mar 6, 2024
@OscarL OscarL marked this pull request as ready for review March 6, 2024 13:45
@OscarL OscarL force-pushed the issue-68 branch 2 times, most recently from 4a2f0a3 to 20c13a9 Compare March 16, 2024 16:03
@OscarL OscarL requested a review from waddlesplash March 19, 2024 05:23
@OscarL
Copy link
Contributor Author

OscarL commented Nov 16, 2024

Sorry to bother you @korli, but maybe you can take a look at this and my two other pending PRs for Pe, and see if they can be merged (or tell me what I should improve)?

@korli
Copy link
Contributor

korli commented Nov 16, 2024

@OscarL recommended is strtol() instead of atoi(). Error returned by strtol() should also be checked and handled.

@OscarL OscarL changed the title Implement lpe file:line:col and /bin/open file:line:col. Support opening files with file:line:col style arguments. Nov 18, 2024
(support for ":col" is what's new)

lpe uses a custom message, while `/bin/open file:line:col` (what Terminal uses when
"hyperlinking" to filenames, for example) uses a B_REFS_RECEIVED message.

We support both.

Fixes HaikuArchives#68.
@OscarL
Copy link
Contributor Author

OscarL commented Nov 26, 2024

Tried to follow @korli's leads (btw, korli, anything you can do about the broken workflows/CI?).

@waddlesplash, anything fundamentally wrong with this that prevents merging?

(just trying to keep my list of custom patches to a minumum)

lpe/lpe.cpp Outdated Show resolved Hide resolved
lpe/lpe.cpp Outdated Show resolved Hide resolved
lpe/lpe.cpp Outdated Show resolved Hide resolved
@korli
Copy link
Contributor

korli commented Nov 26, 2024

Tried to follow @korli's leads (btw, korli, anything you can do about the broken workflows/CI?).

some follow-up comments from me.
Yeah the broken CI is difficult to solve (it's a PCI/Virtio issue)

@OscarL
Copy link
Contributor Author

OscarL commented Nov 26, 2024

Understood. Not a big deal, at least after I went and disabled email notifications about failing workflows on Github. May be reasonable to consider disabling such CI's till they work properly again?

Co-authored-by: Jérôme Duval <jerome.duval@gmail.com>
@korli
Copy link
Contributor

korli commented Nov 27, 2024

Understood. Not a big deal, at least after I went and disabled email notifications about failing workflows on Github. May be reasonable to consider disabling such CI's till they work properly again?

I disabled on this repository, but it's possible that it is still enabled on forks.

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

Successfully merging this pull request may close these issues.

Accept "file:line:col" argument format
3 participants