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

Edit starting at the beginning of the line #537

Open
miltieIV2 opened this issue Dec 13, 2024 · 2 comments
Open

Edit starting at the beginning of the line #537

miltieIV2 opened this issue Dec 13, 2024 · 2 comments
Labels
NYI/NewFeat Not yet implemented or New Feature

Comments

@miltieIV2
Copy link

I use bash vi mode.
When my muscle memory types k, I expect the cursor to be at the beginning of the line, not the end.

Is there an existing option for this? If not, I would like to have it added.

@akinomyoga
Copy link
Owner

akinomyoga commented Dec 13, 2024

Is there an existing option for this? If not, I would like to have it added.

No, I think bleopt history_preserve_point can be extended to support it.

Currently, it accepts an empty or non-empty string, but it can intead accept preserve, begin, end, auto, etc. The option name should also be changed.

@akinomyoga akinomyoga added the NYI/NewFeat Not yet implemented or New Feature label Dec 13, 2024
@akinomyoga
Copy link
Owner

akinomyoga commented Dec 19, 2024

I added bleopt history_default_point in commit 37291ff. You can update ble.sh by running ble-update and use the following setting:

# blerc

bleopt history_default_point=begin

@miltieIV2 Could you check the behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NYI/NewFeat Not yet implemented or New Feature
Projects
None yet
Development

No branches or pull requests

2 participants