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

"Copy case to clipboard" commands #37

Open
ghost opened this issue Feb 16, 2021 · 2 comments
Open

"Copy case to clipboard" commands #37

ghost opened this issue Feb 16, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 16, 2021

I often find myself wanting to just copy something in a different case without changing it. One use case is for creating files: suppose I have a value named HelloController and I'm going to create the file controllers/hello_controller.ex. I would just copy the name of the value in snake case, leaving it unchanged.

@SAKryukov
Copy link

Good idea!
Thank you.
—SA

@SAKryukov
Copy link

Come to think about it, not only is your idea excellent, but worth implementing.
As a matter of fact, I've just published the solution:
Yet Another Change Case

This implementation is very different from similar extensions. I rationalized the requirements, keeping in mind the life cycle of textual expressions, and how they are converted to programming identifiers and visa versa. For example, I implemented splitting by case, repeating the last operation, and an optional clipboard. This is really what we need to use. Also, the input is more structured and clear.

Also, I looked through several extensions and found a lot of unacceptable bugs. The most typical one is improper tracking of the current UI session state, so the commands remain accessible when there is no active editor, and that leads to an exception. Hopefully, it all works correctly.

Hope you enjoy it. Thank you for the good idea.
—SA

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

No branches or pull requests

1 participant