mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-12 12:01:14 -03:00
Add command to temporarily suppress the autosuggestion feature
Autosuggestion will be automatically re-enabled next time a character is inserted. An alternative implementation would require another command to explicitly re-enable it. Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
2b24eab26a
commit
c8f86d94c9
@@ -3247,7 +3247,13 @@ const wchar_t *reader_readline()
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case R_SUPPRESS_AUTOSUGGESTION:
|
||||
{
|
||||
data->suppress_autosuggestion = true;
|
||||
data->autosuggestion.clear();
|
||||
reader_repaint();
|
||||
}
|
||||
|
||||
/* Other, if a normal character, we add it to the command */
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user