Skip to content

server: open file URI ranges#35

Closed
aikins01 wants to merge 1 commit into
ampcode:mainfrom
aikins01:server/open-uri-ranges
Closed

server: open file URI ranges#35
aikins01 wants to merge 1 commit into
ampcode:mainfrom
aikins01:server/open-uri-ranges

Conversation

@aikins01

@aikins01 aikins01 commented Jul 4, 2026

Copy link
Copy Markdown

Amp.nvim now honors line fragments on file:// URIs from the CLI, so clicking an Amp file or range link opens the file at the requested location instead of treating the fragment as part of the path.

  • parses #L10, #L10C3, #L10:3, and #L10-L12 fragments before converting the URI to a filename
  • jumps to the requested line/column and centers it in the window
  • briefly highlights the target line range with an extmark that clears per buffer

@aikins01

aikins01 commented Jul 4, 2026

Copy link
Copy Markdown
Author

Closing duplicate PR; keeping #34 as the canonical PR for this branch.

1 similar comment
@aikins01

aikins01 commented Jul 4, 2026

Copy link
Copy Markdown
Author

Closing duplicate PR; keeping #34 as the canonical PR for this branch.

@aikins01 aikins01 closed this Jul 4, 2026
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

Successfully merging this pull request may close these issues.

1 participant