Skip to content

Allow opening a specific line / page in an external program #38

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

Open
Tracked by #39
luleyleo opened this issue Nov 15, 2024 · 2 comments
Open
Tracked by #39

Allow opening a specific line / page in an external program #38

luleyleo opened this issue Nov 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@luleyleo
Copy link
Owner

I'm not sure, how to approach this with Flatpak and what the UI should look like.

@luleyleo luleyleo added the enhancement New feature or request label Nov 15, 2024
@luleyleo luleyleo mentioned this issue Nov 15, 2024
20 tasks
@luleyleo luleyleo changed the title Allow opening a specific line / file in an external program Allow opening a specific line / page in an external program Feb 20, 2025
@luleyleo
Copy link
Owner Author

luleyleo commented Feb 21, 2025

https://gitlab.gnome.org/GNOME/Incubator/papers/-/blob/main/shell/src/application.rs?ref_type=heads#L135

For PDFs (Gnome Papers and KDE Okular) the page can be passed as part of the file URI:

file:///path/to/file.pdf#page=x

For text files (KDE Kate, not Gnome TextEditor) this works:

file:///path/to/file.rs?line=40

@luleyleo
Copy link
Owner Author

The OpenURI Portal apparently does not support file URIs for some reason. This will probably only be possible with a host service which directly launches the applications with appropriate arguments.

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

No branches or pull requests

1 participant