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

Make boon-toggle-case composable #75

Open
contrapunctus-1 opened this issue Nov 4, 2019 · 3 comments
Open

Make boon-toggle-case composable #75

contrapunctus-1 opened this issue Nov 4, 2019 · 3 comments

Comments

@contrapunctus-1
Copy link
Contributor

IMHO boon-toggle-case should work the same way as boon-take-region/boon-substitute-region/boon-treasure-region - it should accept arguments for words and sentences *, cycling through Mixed Case ("Mixed case." for sentences), lower case, and UPPER CASE (depending on the capitalization of the first word).

  • I haven't actually seen a sentence object so far. It's something I miss in Boon, but that's a matter for another issue.
@jyp
Copy link
Owner

jyp commented Nov 18, 2019

I agree that it'd be more consistent. However, I find that I use this command very often on just the current character. I'd be happy to change this for consistency and locally configure my init.el, but I'm wondering if what is your use-case for changing the behavior.

@contrapunctus-1
Copy link
Contributor Author

contrapunctus-1 commented Nov 18, 2019

I like toggling/cycling the case instead of the standard Emacs/Vim idea of separate commands for upcase and downcase. If toggling case operated on motion and text objects too, it would become a single command for all capitalization situations.

@jyp
Copy link
Owner

jyp commented Feb 12, 2021

If changing case should take an object as argument, then it cannot be a toggle between 3 states, which it is now. I'd be happy to take a patch or make a 3 functions boon-uppercase boon-lowercase boon-capitalize, which you can then bind as appropriate.

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

2 participants