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

[Feature] Smart(er) URL parsing #3

Merged
merged 8 commits into from
May 11, 2024
Merged

[Feature] Smart(er) URL parsing #3

merged 8 commits into from
May 11, 2024

Conversation

moyiz
Copy link
Owner

@moyiz moyiz commented May 9, 2024

Experimental URL parsing support.

The previous parsing engine was simple:

  1. If it contains ://, pass along as is.
  2. Otherwise, apply default organization and base URI if needed.

This PR adds much more capabilities to how git-dev.nvim treats URIs, where the main focus is to accepts any URL from the web browser (for selected Git providers).

It will try to extract branch / tag / commit ID and the currently viewed file inside the repository.

closes: #2

@moyiz moyiz added documentation Improvements or additions to documentation enhancement New feature or request labels May 9, 2024
@moyiz moyiz self-assigned this May 9, 2024
@moyiz moyiz changed the title [Feature] Smart URL parsing [Feature] Smart(er) URL parsing May 9, 2024
@moyiz moyiz force-pushed the url-parsing branch 2 times, most recently from d82e1f6 to 26d4876 Compare May 11, 2024 12:45
@moyiz moyiz marked this pull request as ready for review May 11, 2024 13:14
@moyiz moyiz merged commit 037740a into master May 11, 2024
2 checks passed
@moyiz moyiz deleted the url-parsing branch May 11, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Idea: Advanced Git Parsing
1 participant