Skip to content

vi mode: support increment/decrement of numbers #10704

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

Closed
wants to merge 12 commits into from

Conversation

DevAtDawn
Copy link

Description

use ctrl+x ctrl+a to increase/decrease a number

Fixes issue #8320

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@DevAtDawn DevAtDawn marked this pull request as ready for review September 6, 2024 06:23
@d-e-s-o
Copy link

d-e-s-o commented Sep 6, 2024

For what it's worth, I had also gotten my own version implemented by now, just haven't gotten around to upstreaming it: master...d-e-s-o:fish-shell:topic/increment-decrement

Haven't looked at the changes at hand to judge which one is nicer.

Copy link
Member

@ridiculousfish ridiculousfish left a comment

Choose a reason for hiding this comment

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

Thank you for tackling this. Please add a test if possible to the bind.py tests, in the vi section

@DevAtDawn DevAtDawn closed this Dec 20, 2024
@DevAtDawn DevAtDawn deleted the increment_decrement branch December 20, 2024 21:01
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