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

howto remap ctrl h to delete previous character? #1077

Closed
digika-ding opened this issue Jun 26, 2023 · 5 comments
Closed

howto remap ctrl h to delete previous character? #1077

digika-ding opened this issue Jun 26, 2023 · 5 comments

Comments

@digika-ding
Copy link

howto remap ctrl h to delete previous character?

@kohane27
Copy link

kohane27 commented Jul 10, 2023

I'm trying to do the same and found your issue.

A quick search and I found #636 which led to https://github.com/ellie/atuin/blob/6c6f5f8187c1aa6c0b19879a717c538ced65bfb5/atuin/src/command/client/search/interactive.rs#L133

You can simply change the line and then compile the binary yourself.

Maybe we have have a flag to config this as well?

@kohane27
Copy link

As mentioned form the talk atuin: magical shell history with Rust, atuin has a command-line interface, as documented in atuin history list. I am also used to the fzf's key-bindings-for-command-line.

I found #68 (comment) and it works perfect for me. Since we're using fzf interface, C-h to delete a character works.

@collinvandyck
Copy link

I'm also looking for a way for ctrl-h to delete the previous char instead of moving the cursor to the left (I'm not using fzf for reverse histo search).

@ompugao
Copy link

ompugao commented Jan 4, 2024

you may use my fork:

cargo install --force --git https://github.com/ompugao/atuin --branch feat/backspace-with-ctrl-h

diff:
main...ompugao:atuin:feat/backspace-with-ctrl-h

@ellie
Copy link
Member

ellie commented Jan 4, 2024

closed in favour of #193

it's on my list to address key bindings fairly soon 🙏

@ellie ellie closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
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

No branches or pull requests

5 participants