Skip to content

Restructuring #15

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

Merged
merged 3 commits into from
May 21, 2024
Merged

Restructuring #15

merged 3 commits into from
May 21, 2024

Conversation

seflue
Copy link
Collaborator

@seflue seflue commented May 21, 2024

To make it easier to work with the code and add additional functions, I restructured the code according to the recommendations in Telescopes developer guideline.
I also restructured refile_heading.lua a little bit, so it is easier to digest.

Sebastian Flügge added 2 commits May 21, 2024 01:49
Move the actual code from telescope/_extension folder into the actual
plugin folder.
To remove variable shadowing and make the code easier to work with,
migrate the local methods into a class and return a callback, which only
contains the picker itself.
@seflue
Copy link
Collaborator Author

seflue commented May 21, 2024

While working on a feature to insert links (see PR #16) I drove the refactoring a little further. I was able to reuse most of the code from refile_heading for my new feature, so I moved it into utils. To make the development a bit more easy and reliable, I created a module typehints, which contains the typehint definitions of the used data structures and api methods from nvim-orgmode.
@lyz-code Please merge this PR first and let me rebase before merging PR #16.

To prepare an upcoming feature, methods from refile_heading are moved
into utils to make them reusable.

Because all files were touched, the code is also reformatted according
to the stylua.conf.
@lyz-code
Copy link
Collaborator

Thanks @seflue for the contribution, it's really well written <3

I feel unable to maintain the plugin on my own, would you like to become a maintainer?

@lyz-code lyz-code merged commit 0ece91e into nvim-orgmode:main May 21, 2024
@seflue seflue deleted the restructuring branch May 21, 2024 20:49
@seflue
Copy link
Collaborator Author

seflue commented May 21, 2024

Sure, actually I would like to contribute as a maintainer of the plugin.

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