Skip to content

Large refactoring of URL handlers and resolvers#304

Merged
lervag merged 6 commits intomasterfrom
feat/handlers-and-resolvers
May 15, 2023
Merged

Large refactoring of URL handlers and resolvers#304
lervag merged 6 commits intomasterfrom
feat/handlers-and-resolvers

Conversation

@lervag
Copy link
Copy Markdown
Owner

@lervag lervag commented May 12, 2023

See #302 for the design discussion.

This is ready for review and test by anyone willing and able.

@lervag lervag force-pushed the feat/handlers-and-resolvers branch from a2d6966 to 3fe7aba Compare May 12, 2023 22:37
@lervag lervag force-pushed the feat/handlers-and-resolvers branch 5 times, most recently from 1bc6dd9 to c67387b Compare May 14, 2023 11:58
lervag added 5 commits May 14, 2023 22:28
This changes the implementation of how URLs are resolved and handled.
The old style was somewhat convoluted in that the URLs were
unnecessarily entwined with the link concept. The new implementation
more properly separates the concepts. This is a major step towards
allowing more flexibility for users to define their own URL resolvers
and handlers.

In the process, the g:wiki_resolver option was removed. This will
temporarily _remove_ some flexibility. However, the idea is that the
new ideas should allow much more flexibility.

refer: #302
The new g:wiki_link_schemes now covers this in a much more general
manner.

refer: #302
Also, wiki.vim is no longer considered "simple". It should be simple and
easy to use, and it should preferably be easy to read the code and
understand it.
@lervag lervag force-pushed the feat/handlers-and-resolvers branch from 35105db to b29cc1b Compare May 14, 2023 20:31
@lervag
Copy link
Copy Markdown
Owner Author

lervag commented May 14, 2023

The PR now delivers beyond its promise and includes a very big update of the docs as well.

I will merge this within a couple of days unless I get feedback that advices not to merge.

@saccarosium
Copy link
Copy Markdown
Contributor

I think this is a really good feature. I've tested briefly an I think is all good.

@lervag lervag merged commit c04b6b0 into master May 15, 2023
@lervag lervag deleted the feat/handlers-and-resolvers branch May 15, 2023 07:31
@lervag
Copy link
Copy Markdown
Owner Author

lervag commented May 15, 2023

Thanks! As there was a bug on the master branch I decided to juts merge this now. I'm using it for my daily work and it seems to work as expected. Of course, if you should see any big problems, please let me know!

Copy link
Copy Markdown
Contributor

@saccarosium saccarosium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the code, looks good.

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.

2 participants