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 extend_to_first_nonwhitespace #6836

Closed
hadronized opened this issue Apr 21, 2023 · 2 comments · Fixed by #6837
Closed

Add extend_to_first_nonwhitespace #6836

hadronized opened this issue Apr 21, 2023 · 2 comments · Fixed by #6837
Labels
C-enhancement Category: Improvements

Comments

@hadronized
Copy link
Contributor

Kakoune has this nice extend-based workflow that is almost entirely reproducible in Helix. It’s nice because it’s consistent:

  • w select next word; W extends next word.
  • f( select up to next (; F( extends up to next (.
  • gh goes to the line start; Gh extends up to the line start.
  • gi goes to the first nonwhitespace character; Gi extends up to the first nonwhitespace character.

Helix can do all of that already… except Gi, since it doesn’t have extend_to_first_nonwhitespace (but it does have extend_to_line_start!).

I suggest adding extend_to_first_nonwhitespace, and I might work on it if no one else is already working on it.

@hadronized hadronized added the C-enhancement Category: Improvements label Apr 21, 2023
hadronized pushed a commit to hadronized/helix that referenced this issue Apr 21, 2023
hadronized added a commit to hadronized/helix that referenced this issue Apr 21, 2023
@boxbeam
Copy link

boxbeam commented Apr 21, 2023

wouldn't vW do this?

@hadronized
Copy link
Contributor Author

No, because using v means going in select mode first.

@the-mikedavis the-mikedavis linked a pull request Apr 24, 2023 that will close this issue
pascalkuthe pushed a commit that referenced this issue Apr 25, 2023
Triton171 pushed a commit to Triton171/helix that referenced this issue Jun 18, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this issue Jul 4, 2023
smortime pushed a commit to smortime/helix that referenced this issue Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants