Skip to content

feat: convert link to reference#399

Open
bennypowers wants to merge 9 commits intoartempyanykh:mainfrom
bennypowers:feat/convert-to-reference
Open

feat: convert link to reference#399
bennypowers wants to merge 9 commits intoartempyanykh:mainfrom
bennypowers:feat/convert-to-reference

Conversation

@bennypowers
Copy link
Copy Markdown

Closes #104

My f# experience consists entirely of:

  1. this pr

So please review carefully

@bennypowers
Copy link
Copy Markdown
Author

checks and compiles but apparently doesn't run 🤷

@bennypowers bennypowers marked this pull request as ready for review April 27, 2025 12:46
@bennypowers
Copy link
Copy Markdown
Author

Ok, now there are passing tests, but it still doesn't convert link in README. Hoping maintainers can give me some advice here

- Return domain type (MultiEditAction) instead of LSP CodeAction,
  matching the pattern used by tableOfContents and createMissingFile
- Fix unsafe Option.Value call by proper pattern matching
- Fix reference definition range to insert at document end with
  proper newline separation
- Fix range containment check to use ContainsInclusive instead of
  line-only comparison
- Include link title in generated reference definitions
- Add default.marksman.toml entry for link_to_reference config
- Add comprehensive tests: cursor not on link, cursor on reference
  link, link without URL, link with title, multiple links, and
  single-link document

Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bennypowers bennypowers force-pushed the feat/convert-to-reference branch from f69c64c to 28d546e Compare March 17, 2026 15:59
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.

Convert to Reference Link code action

1 participant