Early implementation of fuzzy completion menu
This commit is contained in:
@@ -2,7 +2,7 @@ use std::{env, os::unix::fs::PermissionsExt, path::Path};
|
||||
|
||||
use ariadne::{Fmt, Span};
|
||||
|
||||
use crate::{builtin::BUILTINS, libsh::error::{ShErr, ShErrKind, ShResult, next_color}, parse::{NdRule, Node, execute::prepare_argv, lex::KEYWORDS}, state::{self, ShAlias, ShFunc, read_logic, read_vars}};
|
||||
use crate::{builtin::BUILTINS, libsh::error::{ShErr, ShErrKind, ShResult, next_color}, parse::{NdRule, Node, execute::prepare_argv, lex::KEYWORDS}, state::{self, ShAlias, ShFunc, read_logic}};
|
||||
|
||||
pub fn type_builtin(node: Node) -> ShResult<()> {
|
||||
let NdRule::Command {
|
||||
|
||||
@@ -80,11 +80,6 @@ pub fn read_builtin(node: Node) -> ShResult<()> {
|
||||
write(borrow_fd(STDOUT_FILENO), prompt.as_bytes())?;
|
||||
}
|
||||
|
||||
log::info!(
|
||||
"read_builtin: starting read with delim={}",
|
||||
read_opts.delim as char
|
||||
);
|
||||
|
||||
let input = if isatty(STDIN_FILENO)? {
|
||||
// Restore default terminal settings
|
||||
RawModeGuard::with_cooked_mode(|| {
|
||||
|
||||
Reference in New Issue
Block a user