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

Add option to suggest words in different cases #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vE5li
Copy link

@vE5li vE5li commented Jan 10, 2023

This is a feature I wanted for a long time and after posting my fork on Reddit many people have expressed their interest in having this feature upstream.

The design right now is that you can add this to your options cases = { "snake", "pascal" } to get suggestions of the words in your buffer in those cases. Out of the box I implemented snake case, camel case, pascal case, kebab case, and macro case. Users can also provide functions that take a sequence of strings and return a string to add custom cases.

Here is a screenshot of it working as intended:
suggestions_working

I am relatively new to vim plugins so I was unsure about things like error messages and validation. For example, if the user specifies an incorrect case or provides a function that does not return a string there is currently no error message, it will simply not show the suggestion. If that is desirable I can add extra validation in those places.

@vE5li
Copy link
Author

vE5li commented Oct 15, 2023

@hrsh7th I would really appreciate if you could take a look at this

@vE5li
Copy link
Author

vE5li commented Jan 18, 2024

@hrsh7th ping

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.

None yet

1 participant