Skip to content

server: open file URI ranges#34

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

server: open file URI ranges#34
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

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