nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

This (simple) PR makes it possible to BackTab (shift+tab) while in completion mode. #10

Closed xanderificnl closed 3 years ago

xanderificnl commented 3 years ago

Hi.

While tabbing my way through completions, I was unable to shift back (back tab) as I'm used to. This PR adds the keybinding shift+tab in completion_mode.

As I understand it, the guard 'if self.completion_mode()' is repeated for both patterns, but I might be wrong. I have very little experience with Rust and low-level languages in general. I glanced the manual regarding match expression, but I found it a bit confusing, so I'm hoping you can confirm that this PR causes no side effects.

nuta commented 3 years ago

Thanks!

nuta commented 3 years ago

Your assumption is right: if self.completion_mode() applies to both patterns :)