diff options
author | rabite <rabite@posteo.de> | 2019-03-11 12:33:17 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-03-11 12:33:17 +0100 |
commit | 9cc1ce1a44850f65f84db1c6fd9356013d53e5ea (patch) | |
tree | c64b4cbffff55b11614751e399a93e111044e574 /src/minibuffer.rs | |
parent | e63c65ab7d944fb3a80f6c40bd0d98ec50b054c6 (diff) |
switch tabs with f keys
Diffstat (limited to 'src/minibuffer.rs')
-rw-r--r-- | src/minibuffer.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/minibuffer.rs b/src/minibuffer.rs index 33ccf3d..02f235e 100644 --- a/src/minibuffer.rs +++ b/src/minibuffer.rs @@ -44,7 +44,7 @@ impl MiniBuffer { self.completions.clear(); self.last_completion = None; - self.get_core()?.screen.lock()?.cursor_hide(); + self.get_core()?.screen.lock()?.cursor_hide().log(); self.popup()?; @@ -316,6 +316,11 @@ impl Widget for MiniBuffer { Key::Char('\t') => { self.complete()?; } + Key::F(n) => { + let fnstr = format!("${}", n-1); + self.input.insert_str(self.position, &fnstr); + self.position += 2; + } Key::Backspace => { if self.position != 0 { self.input.remove(self.position - 1); |