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

Shorten embedded command descriptions #3070

Merged

Conversation

sudormrfbin
Copy link
Member

@sudormrfbin sudormrfbin commented Jul 14, 2022

This mainly gives us more compact descriptions that will fit better with the command palette and the infobox.

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

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

These all look great to me!

Other than that typo :P

repeat_last_motion, "repeat last motion(extend_next_char, extend_till_char, find_next_char, find_till_char...)",
repeat_last_motion, "Repeat last motion",
Copy link
Member

Choose a reason for hiding this comment

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

Somewhat unrelated to the change here, this tends to be a source of confusion that A-. doesn't work on motions like w, just on these find-type motions (same behavior as Kakoune). Maybe we should have a different word for those kinds of motions?

Copy link
Member Author

Choose a reason for hiding this comment

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

There seems to be some inconsistency in the implementation though, since it works with shrink/expand syntax node selection and all textobjects in addition to the find type motions. Shouldn't repeat_last_motion repeat any kind of motion, including w, b, etc? Is there any particular reason kakoune chose to go that way?

helix-term/src/commands.rs Outdated Show resolved Hide resolved
@archseer archseer merged commit de8ade8 into helix-editor:master Jul 26, 2022
@sudormrfbin sudormrfbin deleted the shorten-command-descriptions branch July 26, 2022 03:27
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
* Shorten embedded command descriptions

- Compact descriptions in command palette and infobox

* Shorten typed command descriptions

* Fix typo in decrement command description
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.

3 participants