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 options for selecting after meow-insert and meow-append. #619

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

okamsn
Copy link
Contributor

@okamsn okamsn commented Aug 4, 2024

  • Add meow-select-on-append, defaulting to nil to maintain previous behavior. Make meow-append set meow--insert-pos when non-nil.

  • Add meow-select-on-insert, defaulting to nil to maintain previous behavior. Make meow-insert set meow--insert-pos when non-nil.

  • Modify meow-change, meow-change-char, and meow-change-save to set meow--insert-pos when meow-select-on-change is non-nil, instead of always setting it.

  • Modify Insert state to also consider the new variables.

I find the behavior of selecting after meow-change very useful, but I don't always remember that it is limited to the change commands. Having that behavior available for meow-insert and meow-append means one less thing to remember when editing in the flow.

- Add `meow-select-on-append`, defaulting to `nil` to
  maintain previous behavior.  Make `meow-append` set
  `meow--insert-pos` when non-nil.

- Add `meow-select-on-insert`, defaulting to `nil` to
  maintain previous behavior. Make `meow-insert` set
  `meow--insert-pos` when non-nil.

- Modify `meow-change`, `meow-change-char`, and `meow-change-save`
  to set `meow--insert-pos` when `meow-select-on-change` is non-nil,
  instead of always setting it.

- Modify Insert state to also consider the new variables.
@eshrh eshrh merged commit 1cf7234 into meow-edit:master Aug 7, 2024
3 checks passed
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.

2 participants