Closed 0x6b closed 10 months ago
Looks like this line disables the backspace key to work if Ctrl is not pressed in all cases:
KeyCode::Backspace | KeyCode::Char('h')
if modifiers == KeyModifiers::CONTROL =>
To avoid this, we have to capture the modifiers like this:
match (code, modifiers) {
(KeyCode::Esc, KeyModifiers::NONE) => {
go_to_info_line_and_reset();
hide_cursor();
state.move_cursor(state.layout.y);
break 'zoxide;
}
...
(KeyCode::Backspace, KeyModifiers::NONE)
| (KeyCode::Char('h'), KeyModifiers::CONTROL) => {
Could you fix this?
Ah thanks @kyoheiu for catching that! I'll revisit the PR with your suggestion. Please note that it'll be next month as I'm far away from my laptop recently.
I see. Thank you for your time, I will be waiting:smile:
@kyoheiu I updated the branch with commits to address your comment. Can you please review the changes. Thanks!
Thank you! There were some conflicts made by #255, so I resolved them and merged this PR.
Realized that command line mode (:
) did not implement this feature, so I added that in https://github.com/kyoheiu/felix/commit/1e2d0625343baae205cd7ec9675f0ce75975f3a3 .
Good catch @kyoheiu. Thanks for you help and release a new!
This PR will allow users to use Ctrl-h as an alternative for the backspace key for the following commands:
z
(zoxide jump)i
/I
(insert mode)c
(rename)/
(search mode)Closes #252